1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package test.de.smartics.properties.api.config.domain.key;
17
18 import org.junit.experimental.categories.Category;
19 import org.junit.experimental.theories.DataPoint;
20
21 import de.smartics.properties.api.config.domain.key.ApplicationId;
22 import de.smartics.properties.api.config.domain.key.ConfigurationKey;
23 import de.smartics.properties.api.config.domain.key.EnvironmentId;
24 import de.smartics.testdoc.annotations.Uut;
25 import de.smartics.testdoc.categories.type.ObjectBasics;
26 import de.smartics.util.test.theories.ObjectTheories;
27
28
29
30
31 @Category(ObjectBasics.class)
32 @Uut(type = ConfigurationKey.class)
33 public class ConfigurationKeyObjectTest extends ObjectTheories
34 {
35 public static final EnvironmentId ENV_MIN = new EnvironmentId("test1");
36
37 public static final EnvironmentId ENV_MAX = new EnvironmentId("test2");
38
39 public static final ApplicationId APP_MIN = new ApplicationId("group",
40 "artifactId", "1.0");
41
42 public static final ApplicationId APP_MAX = new ApplicationId("group",
43 "artifactId", "2.0");
44
45 @DataPoint
46 public static final ConfigurationKey DEFAULT = new ConfigurationKey(ENV_MIN,
47 APP_MIN);
48
49 @DataPoint
50 public static final ConfigurationKey SAME = DEFAULT;
51
52 @DataPoint
53 public static final ConfigurationKey EQUAL = new ConfigurationKey(ENV_MIN,
54 APP_MIN);
55
56 @DataPoint
57 public static final ConfigurationKey KEY_ENV_MAX = new ConfigurationKey(
58 ENV_MAX, APP_MIN);
59
60 @DataPoint
61 public static final ConfigurationKey KEY_APP_MAX = new ConfigurationKey(
62 ENV_MIN, APP_MAX);
63
64 @DataPoint
65 public static final ConfigurationKey KEY_MAX = new ConfigurationKey(ENV_MAX,
66 APP_MAX);
67
68 @DataPoint
69 public static final String STRING = "OTHER_CLASS";
70
71 @DataPoint
72 public static final ConfigurationKey NULL = null;
73 }