src/test/java/org/thegalactic/context/constraint/categorical/CategoricalValueTest.java
@Test
    public void testToString() {
        CategoricalAttribute attribute = CategoricalModel.create().addAttribute();
        CategoricalValue value = attribute.addValue("Test");
        assertEquals("Test", value.toString());
        value = attribute.addValue("Test with spaces");
        assertEquals("\"Test with spaces\"", value.toString());
        value = attribute.addValue("Test\"quotes");
        assertEquals("\"Test\\\"quotes\"", value.toString());
    }
/**
     * Test of toString method, of class CategoricalValue.
     */
Test of toString method, of class CategoricalValue.
Test of toString method of class CategoricalValue .
@Test
    public void testToString() {
        CategoricalAttribute attribute = CategoricalModel.create().addAttribute();
        CategoricalValue value = attribute.addValue("Test");
        assertEquals("Test", value.toString());
        value = attribute.addValue("Test with spaces");
        assertEquals("\"Test with spaces\"", value.toString());
        value = attribute.addValue("Test\"quotes");
        assertEquals("\"Test\\\"quotes\"", value.toString());
    }
@ Test public void testToString ( ) { CategoricalAttribute attribute = CategoricalModel . create ( ) . addAttribute ( ) ; CategoricalValue value = attribute . addValue ( "Test" ) ; assertEquals ( "Test" , value . toString ( ) ) ; value = attribute . addValue ( "Test with spaces" ) ; assertEquals ( "\"Test with spaces\"" , value . toString ( ) ) ; value = attribute . addValue ( "Test\"quotes" ) ; assertEquals ( "\"Test\\\"quotes\"" , value . toString ( ) ) ; }
Test of toString method, of class CategoricalValue.
Test of toString method of class CategoricalValue .