@@ -0,0 +1,1576 @@
+/**%0A * %0A */%0Apackage mathsquared.resultswizard2;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.util.Arrays;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * @author MathSquared%0A * %0A */%0Apublic class SyntaxParserTest %7B%0A%0A    /**%0A     * Test method for %7B@link mathsquared.resultswizard2.SyntaxParser#parseQuotedSyntax(java.lang.String)%7D.%0A     * %0A     * Tests the String %3Ccode%3E%22a%22 %22b%22 %22c%22%22d%22%3C/code%3E.%0A     */%0A    @Test%0A    public void testParseQuotedSyntax () %7B%0A        String%5B%5D parsed = SyntaxParser.parseQuotedSyntax(%22%5C%22a%5C%22 %5C%22b%5C%22 %5C%22c%5C%22%5C%22d%5C%22%22);%0A        assertTrue(%22quoted syntax: space-separated with one quote escape%22, Arrays.equals(parsed, new String%5B%5D %7B%22a%22, %22b%22, %22c%5C%22d%22%7D));%0A    %7D%0A%0A    /**%0A     * Test method for %7B@link mathsquared.resultswizard2.SyntaxParser#createPairwiseMap(T%5B%5D)%7D.%0A     */%0A    @Test%0A    public void testCreatePairwiseMap () %7B%0A        Map%3CInteger, Integer%3E pairs = SyntaxParser.createPairwiseMap(new Integer%5B%5D %7B1, 2, 3, 4, 5%7D);%0A        Map%3CInteger, Integer%3E expected = new HashMap%3CInteger, Integer%3E();%0A        expected.put(1, 2);%0A        expected.put(3, 4);%0A        assertTrue(%22pairwise: five integers%22, pairs.equals(expected));%0A    %7D%0A%0A    /**%0A     * Test method for %7B@link mathsquared.resultswizard2.SyntaxParser#parseIntegerList(java.lang.String)%7D.%0A     */%0A    @Test%0A    public void testParseIntegerList () %7B%0A        int%5B%5D parsed = SyntaxParser.parseIntegerList(%221 2,3 4.5$%22);%0A        assertTrue(%22integer list: five integers, various separators, trailing%22, Arrays.equals(parsed, new int%5B%5D %7B1, 2, 3, 4, 5%7D));%0A    %7D%0A%0A%7D%0A

Add JUnit test folder and test cases for SyntaxParser