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.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 = ApplicationId.class)
31 public class ApplicationIdObjectTest extends ObjectTheories
32 {
33 @DataPoint
34 public static final ApplicationId DEFAULT = new ApplicationId("group1",
35 "artifactId", "1.0");
36
37 @DataPoint
38 public static final ApplicationId SAME = DEFAULT;
39
40 @DataPoint
41 public static final ApplicationId EQUAL = new ApplicationId("group1",
42 "artifactId", "1.0");
43
44 @DataPoint
45 public static final ApplicationId OTHER_GROUP = new ApplicationId("group2",
46 "artifactId2", "1.0");
47
48 @DataPoint
49 public static final ApplicationId OTHER_ARTIFACT = new ApplicationId(
50 "group1", "artifactId2", "1.0");
51
52 @DataPoint
53 public static final ApplicationId OTHER_VERSION = new ApplicationId("group1",
54 "artifactId", "1.0.1");
55
56 @DataPoint
57 public static final ApplicationId NULL_VERSION = new ApplicationId("group1",
58 "artifactId", null);
59
60 @DataPoint
61 public static final String STRING = "OTHER_CLASS";
62
63 @DataPoint
64 public static final ApplicationId NULL = null;
65 }