Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/TestCallContext.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 |
parents | 4939236c2dc9 |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.artifacts; | |
5 | |
6 import de.intevation.artifacts.ArtifactDatabase; | |
7 import de.intevation.artifacts.ArtifactFactory; | |
8 import de.intevation.artifacts.CallContext; | |
9 import de.intevation.artifacts.CallMeta; | |
10 | |
11 /** | |
12 * @author Tim Englich <tim.englich@intevation.de> | |
13 * | |
14 */ | |
15 public class TestCallContext implements CallContext { | |
16 | |
17 | |
18 | |
19 private Object globalContext = null; | |
20 private CallMeta callMeta = null; | |
21 private ArtifactFactory artifactFactory = null; | |
22 private ArtifactDatabase artifactDatabase = null; | |
23 /** | |
24 * Constructor | |
25 */ | |
26 public TestCallContext(Object globalContext, | |
27 CallMeta callMeta, | |
28 ArtifactFactory artifactFactory) { | |
29 this.globalContext = globalContext; | |
30 this.callMeta = callMeta; | |
31 this.artifactDatabase = new TestArtifactDatabase(artifactFactory); | |
32 } | |
33 | |
34 /** | |
35 * @see de.intevation.artifacts.CallContext#afterBackground(int) | |
36 */ | |
37 public void afterBackground(int action) { | |
38 } | |
39 | |
40 /** | |
41 * @see de.intevation.artifacts.CallContext#afterCall(int) | |
42 */ | |
43 public void afterCall(int action) { | |
44 } | |
45 | |
46 /** | |
47 * @see de.intevation.artifacts.CallContext#globalContext() | |
48 */ | |
49 public Object globalContext() { | |
50 return this.globalContext; | |
51 } | |
52 | |
53 public CallMeta getMeta() { | |
54 return this.callMeta; | |
55 } | |
56 | |
57 public Object getContextValue(Object key) { | |
58 return null; | |
59 } | |
60 | |
61 public Object putContextValue(Object key, Object value) { | |
62 return null; | |
63 } | |
64 | |
65 public ArtifactDatabase getDatabase() { | |
66 return this.artifactDatabase; | |
67 } | |
68 } |