예제 #1
0
 @Test
 public void testGetById() throws Exception {
   AttributeGroupType[] groupTypes = AttributeGroupType.values();
   for (AttributeGroupType groupType : groupTypes) {
     assertSame(groupType, AttributeGroupType.valueOf(groupType.getId()));
   }
 }
예제 #2
0
 @Test
 public void testAll() throws Exception {
   List<AttributeGroupType> allTypes = Arrays.asList(AttributeGroupType.values());
   assertEquals(3, allTypes.size());
   assertTrue(allTypes.contains(AttributeGroupType.Mental));
   assertTrue(allTypes.contains(AttributeGroupType.Social));
   assertTrue(allTypes.contains(AttributeGroupType.Physical));
 }