1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package test.de.smartics.properties.api.config;
17
18 import org.junit.experimental.categories.Category;
19 import org.junit.experimental.theories.DataPoint;
20
21 import de.smartics.properties.api.config.domain.Property;
22 import de.smartics.properties.api.config.domain.PropertyLocation;
23 import de.smartics.testdoc.annotations.Uut;
24 import de.smartics.testdoc.categories.type.ObjectBasics;
25 import de.smartics.util.test.theories.CompareToTheory;
26
27
28
29
30 @Category(ObjectBasics.class)
31 @Uut(type = Property.class)
32 public class PropertyCompareToTest extends CompareToTheory<Property>
33 {
34 private static final PropertyLocation SOURCE_ID =
35 new PropertyLocation("test");
36
37 private static final String KEY_1 = "key1";
38
39 private static final String VALUE_1 = "value1";
40
41 private static final String KEY_2 = "key2";
42
43 private static final String VALUE_2 = "value2";
44
45 @DataPoint
46 public static final Property DEFAULT =
47 new Property(SOURCE_ID, KEY_1, VALUE_1);
48
49 @DataPoint
50 public static final Property IDENTICAL = new Property(SOURCE_ID, KEY_1,
51 VALUE_1);
52
53 @DataPoint
54 public static final Property MAX_KEY =
55 new Property(SOURCE_ID, KEY_2, VALUE_1);
56
57 @DataPoint
58 public static final Property MAX_VALUE = new Property(SOURCE_ID, KEY_1,
59 VALUE_2);
60
61 @DataPoint
62 public static final Property NULL_VALUE =
63 new Property(SOURCE_ID, KEY_1, null);
64 }