@Test public void testGetById() throws Exception { AttributeGroupType[] groupTypes = AttributeGroupType.values(); for (AttributeGroupType groupType : groupTypes) { assertSame(groupType, AttributeGroupType.valueOf(groupType.getId())); } }
@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)); }