src/test/java/org/thegalactic/context/constraint/categorical/CategoricalModelTest.java
@Test
    public void testGetAttributes() {
        ArrayList<CategoricalAttribute> attributes = new ArrayList<CategoricalAttribute>();
        CategoricalModel model = CategoricalModel.create();
        attributes.add(model.addAttribute());
        attributes.add(model.addAttribute());
        attributes.add(model.addAttribute());
        int i = 0;
        for (CategoricalAttribute attribute : model.getAttributes()) {
            assertEquals(attributes.get(i), attribute);
            i++;
        }
    }
/**
     * Test of getAttributes method, of class CategoricalModel.
     */
Test of getAttributes method, of class CategoricalModel.
Test of getAttributes method of class CategoricalModel .
@Test
    public void testGetAttributes() {
        ArrayList<CategoricalAttribute> attributes = new ArrayList<CategoricalAttribute>();
        CategoricalModel model = CategoricalModel.create();
        attributes.add(model.addAttribute());
        attributes.add(model.addAttribute());
        attributes.add(model.addAttribute());
        int i = 0;
        for (CategoricalAttribute attribute : model.getAttributes()) {
            assertEquals(attributes.get(i), attribute);
            i++;
        }
    }
@ Test public void testGetAttributes ( ) { ArrayList < CategoricalAttribute > attributes = new ArrayList < CategoricalAttribute > ( ) ; CategoricalModel model = CategoricalModel . create ( ) ; attributes . add ( model . addAttribute ( ) ) ; attributes . add ( model . addAttribute ( ) ) ; attributes . add ( model . addAttribute ( ) ) ; int i = 0 ; for ( CategoricalAttribute attribute : model . getAttributes ( ) ) { assertEquals ( attributes . get ( i ) , attribute ) ; i ++ ; } }
Test of getAttributes method, of class CategoricalModel.
Test of getAttributes method of class CategoricalModel .