src/test/java/org/thegalactic/context/constraint/categorical/CategoricalValueTest.java
@Test
    public void testSetData() {
        String object = "Test2";
        CategoricalValue value = CategoricalModel.create().addAttribute().addValue("Test");
        assertEquals(value, value.setData(object));
        assertEquals(object, value.getData());
    }
/**
     * Test of setData method, of class CategoricalValue.
     */
Test of setData method, of class CategoricalValue.
Test of setData method of class CategoricalValue .
@Test
    public void testSetData() {
        String object = "Test2";
        CategoricalValue value = CategoricalModel.create().addAttribute().addValue("Test");
        assertEquals(value, value.setData(object));
        assertEquals(object, value.getData());
    }
@ Test public void testSetData ( ) { String object = "Test2" ; CategoricalValue value = CategoricalModel . create ( ) . addAttribute ( ) . addValue ( "Test" ) ; assertEquals ( value , value . setData ( object ) ) ; assertEquals ( object , value . getData ( ) ) ; }
Test of setData method, of class CategoricalValue.
Test of setData method of class CategoricalValue .