src/test/java/org/thegalactic/context/constraint/categorical/CategoricalModelTest.java
@Test
    public void testToString() {
        CategoricalModel model = CategoricalModel.create();
        CategoricalAttribute attribute1 = model.addAttribute();
        attribute1.addValue("Test");
        attribute1.addValue("Test with spaces");
        attribute1.addValue("Test\"quotes");
        CategoricalAttribute attribute2 = model.addAttribute();
        attribute2.addValue("Test2");
        assertEquals("[[Test, \"Test with spaces\", \"Test\\\"quotes\"], [Test2]]", model.toString());
    }
/**
     * Test of toString method, of class CategoricalModel.
     */
Test of toString method, of class CategoricalModel.
Test of toString method of class CategoricalModel .
@Test
    public void testToString() {
        CategoricalModel model = CategoricalModel.create();
        CategoricalAttribute attribute1 = model.addAttribute();
        attribute1.addValue("Test");
        attribute1.addValue("Test with spaces");
        attribute1.addValue("Test\"quotes");
        CategoricalAttribute attribute2 = model.addAttribute();
        attribute2.addValue("Test2");
        assertEquals("[[Test, \"Test with spaces\", \"Test\\\"quotes\"], [Test2]]", model.toString());
    }
@ Test public void testToString ( ) { CategoricalModel model = CategoricalModel . create ( ) ; CategoricalAttribute attribute1 = model . addAttribute ( ) ; attribute1 . addValue ( "Test" ) ; attribute1 . addValue ( "Test with spaces" ) ; attribute1 . addValue ( "Test\"quotes" ) ; CategoricalAttribute attribute2 = model . addAttribute ( ) ; attribute2 . addValue ( "Test2" ) ; assertEquals ( "[[Test, \"Test with spaces\", \"Test\\\"quotes\"], [Test2]]" , model . toString ( ) ) ; }
Test of toString method, of class CategoricalModel.
Test of toString method of class CategoricalModel .