src/test/java/org/thegalactic/context/constraint/categorical/CategoricalAttributeTest.java
@Test
    public void testSize() {
        CategoricalAttribute attribute = CategoricalModel.create().addAttribute();
        assertEquals(0, attribute.size());
        attribute.addValue("Test1");
        assertEquals(1, attribute.size());
        attribute.addValue("Test2");
        assertEquals(2, attribute.size());
        attribute.addValue("Test3");
        assertEquals(3, attribute.size());
    }
/**
     * Test of size method, of class CategoricalAttribute.
     */
Test of size method, of class CategoricalAttribute.
Test of size method of class CategoricalAttribute .
@Test
    public void testSize() {
        CategoricalAttribute attribute = CategoricalModel.create().addAttribute();
        assertEquals(0, attribute.size());
        attribute.addValue("Test1");
        assertEquals(1, attribute.size());
        attribute.addValue("Test2");
        assertEquals(2, attribute.size());
        attribute.addValue("Test3");
        assertEquals(3, attribute.size());
    }
@ Test public void testSize ( ) { CategoricalAttribute attribute = CategoricalModel . create ( ) . addAttribute ( ) ; assertEquals ( 0 , attribute . size ( ) ) ; attribute . addValue ( "Test1" ) ; assertEquals ( 1 , attribute . size ( ) ) ; attribute . addValue ( "Test2" ) ; assertEquals ( 2 , attribute . size ( ) ) ; attribute . addValue ( "Test3" ) ; assertEquals ( 3 , attribute . size ( ) ) ; }
Test of size method, of class CategoricalAttribute.
Test of size method of class CategoricalAttribute .