core/src/test/java/org/owasp/dependencycheck/reporting/EscapeToolTest.java
/**
     * Test of json method, of class EscapeTool.
     */
Test of json method, of class EscapeTool.
Test of json method of class EscapeTool .
@Test
    public void testJson() {
        String text = null;
        EscapeTool instance = new EscapeTool();
        String expResult = null;
        String result = instance.json(text);
        assertEquals(expResult, result);
        text = "";
        expResult = "";
        result = instance.json(text);
        assertEquals(expResult, result);
        text = "test \"quote\"\"";
        expResult = "test \\\"quote\\\"\\\"";
        result = instance.json(text);
        assertEquals(expResult, result);
    }
@ Test public void testJson ( ) { String text = null ; EscapeTool instance = new EscapeTool ( ) ; String expResult = null ; String result = instance . json ( text ) ; assertEquals ( expResult , result ) ; text = "" ; expResult = "" ; result = instance . json ( text ) ; assertEquals ( expResult , result ) ; text = "test \"quote\"\"" ; expResult = "test \\\"quote\\\"\\\"" ; result = instance . json ( text ) ; assertEquals ( expResult , result ) ; }
Test of json method, of class EscapeTool.
Test of json method of class EscapeTool .