src/test/java/org/thegalactic/context/constraint/categorical/CategoricalAttributeTest.java
@Test
    public void testGetValues() {
        CategoricalAttribute attribute = CategoricalModel.create().addAttribute();
        ArrayList<CategoricalValue> values = new ArrayList<CategoricalValue>();
        values.add(attribute.addValue("Test1"));
        values.add(attribute.addValue("Test2"));
        values.add(attribute.addValue("Test3"));
        int i = 0;
        for (CategoricalValue value : attribute.getValues()) {
            assertEquals(values.get(i), value);
            i++;
        }
    }
/**
     * Test of getValues method, of class CategoricalAttribute.
     */
Test of getValues method, of class CategoricalAttribute.
Test of getValues method of class CategoricalAttribute .
@Test
    public void testGetValues() {
        CategoricalAttribute attribute = CategoricalModel.create().addAttribute();
        ArrayList<CategoricalValue> values = new ArrayList<CategoricalValue>();
        values.add(attribute.addValue("Test1"));
        values.add(attribute.addValue("Test2"));
        values.add(attribute.addValue("Test3"));
        int i = 0;
        for (CategoricalValue value : attribute.getValues()) {
            assertEquals(values.get(i), value);
            i++;
        }
    }
@ Test public void testGetValues ( ) { CategoricalAttribute attribute = CategoricalModel . create ( ) . addAttribute ( ) ; ArrayList < CategoricalValue > values = new ArrayList < CategoricalValue > ( ) ; values . add ( attribute . addValue ( "Test1" ) ) ; values . add ( attribute . addValue ( "Test2" ) ) ; values . add ( attribute . addValue ( "Test3" ) ) ; int i = 0 ; for ( CategoricalValue value : attribute . getValues ( ) ) { assertEquals ( values . get ( i ) , value ) ; i ++ ; } }
Test of getValues method, of class CategoricalAttribute.
Test of getValues method of class CategoricalAttribute .