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.CompareToTheory;
25
26
27
28
29 @Category(ObjectBasics.class)
30 @Uut(type = ApplicationId.class)
31 public class ApplicationIdCompareToTest extends CompareToTheory<ApplicationId>
32 {
33 @DataPoint
34 public static final ApplicationId DEFAULT = new ApplicationId("group1",
35 "artifactId", "1.0");
36
37 @DataPoint
38 public static final ApplicationId IDENTICAL = new ApplicationId("group1",
39 "artifactId", "1.0");
40
41 @DataPoint
42 public static final ApplicationId OTHER_GROUP = new ApplicationId("group2",
43 "artifactId2", "1.0");
44
45 @DataPoint
46 public static final ApplicationId OTHER_ARTIFACT = new ApplicationId(
47 "group1", "artifactId2", "1.0");
48
49 @DataPoint
50 public static final ApplicationId OTHER_VERSION = new ApplicationId("group1",
51 "artifactId", "1.0.1");
52
53 @DataPoint
54 public static final ApplicationId NULL_VERSION = new ApplicationId("group1",
55 "artifactId", null);
56 }