|
@@ -0,0 +1,28 @@
|
|
1
|
+package com.zipcodewilmington.generic.group;
|
|
2
|
+
|
|
3
|
+import com.zipcodewilmington.generic.identifiables.ActionFigure;
|
|
4
|
+import com.zipcodewilmington.generic.identifiables.Person;
|
|
5
|
+import org.junit.Assert;
|
|
6
|
+import org.junit.Test;
|
|
7
|
+
|
|
8
|
+/**
|
|
9
|
+ * @author leon on 06/12/2018.
|
|
10
|
+ * there is meaning to the madness
|
|
11
|
+ * ( ͡☉ ͜ʖ ͡☉)
|
|
12
|
+ */
|
|
13
|
+public class GetIdentityTypeTest {
|
|
14
|
+ private Group<String, Person> personGroup = new Group<>();
|
|
15
|
+ private Group<Long, ActionFigure> actionFigureGroup = new Group<>();
|
|
16
|
+
|
|
17
|
+ @Test
|
|
18
|
+ public void testGetIdentityType() { // ༼∵༽ ༼⍨༽ ༼⍢༽ ༼⍤༽
|
|
19
|
+ Assert.assertEquals(personGroup.getIdentityType(), String.class);
|
|
20
|
+ Assert.assertEquals(actionFigureGroup.getIdentityType(), Long.class);
|
|
21
|
+ }
|
|
22
|
+
|
|
23
|
+ @Test
|
|
24
|
+ public void testGetIdentifiableType() { // ヽ༼ ಠ益ಠ ༽ノ
|
|
25
|
+ Assert.assertEquals(personGroup.getIdentifiableType(), Person.class);
|
|
26
|
+ Assert.assertEquals(actionFigureGroup.getIdentifiableType(), ActionFigure.class);
|
|
27
|
+ }
|
|
28
|
+}
|