1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package test.de.smartics.properties.api.core.domain;
17
18 import org.junit.experimental.categories.Category;
19 import org.junit.experimental.theories.DataPoint;
20
21 import de.smartics.properties.api.core.domain.PropertyKey;
22 import de.smartics.testdoc.annotations.Uut;
23 import de.smartics.testdoc.categories.type.ObjectBasics;
24 import de.smartics.util.test.theories.ObjectTheories;
25
26
27
28
29 @Category(ObjectBasics.class)
30 @Uut(type = PropertyKey.class)
31 public class PropertyKeyObjectTest extends ObjectTheories
32 {
33 @DataPoint
34 public static final PropertyKey DEFAULT = new PropertyKey("component",
35 "my.name");
36
37 @DataPoint
38 public static final PropertyKey SAME = DEFAULT;
39
40 @DataPoint
41 public static final PropertyKey EQUAL = new PropertyKey("component",
42 "my.name");
43
44 @DataPoint
45 public static final PropertyKey MIN = new PropertyKey(null, "name");
46
47 @DataPoint
48 public static final PropertyKey MAX = new PropertyKey("other.component",
49 "my.long.name");
50
51 @DataPoint
52 public static final PropertyKey OTHER = new PropertyKey("other.component",
53 "my.long.other");
54
55 @DataPoint
56 public static final String STRING = "OTHER_CLASS";
57
58 @DataPoint
59 public static final PropertyKey NULL = null;
60 }