@@ -0,0 +1,2684 @@
+package org.monospark.spongematchers.parser.element;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport org.junit.Test;%0Aimport org.monospark.spongematchers.parser.SpongeMatcherParseException;%0Aimport org.monospark.spongematchers.parser.element.PatternElementParser.Type;%0A%0Apublic class PatternElementParserTest %7B%0A%0A    @Test%0A    public void parseElements_ListMatchAnyType_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22any:'test'%22;%0A        %0A        verifyPatternElement(input, Type.LIST_MATCH_ANY);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ListMatchAnyTypeWithSpaces_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22 any :   'test' %22;%0A        %0A        verifyPatternElement(input, Type.LIST_MATCH_ANY);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ListMatchAllType_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22all:'test'%22;%0A        %0A        verifyPatternElement(input, Type.LIST_MATCH_ALL);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ListMatchAllTypeWithSpaces_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22 all  :  'test' %22;%0A        %0A        verifyPatternElement(input, Type.LIST_MATCH_ALL);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_NotType_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22!'test'%22;%0A        %0A        verifyPatternElement(input, Type.NOT);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_NotTypeWithSpaces_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22    ! 'test' %22;%0A        %0A        verifyPatternElement(input, Type.NOT);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ParanthesesType_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22('test')%22;%0A        %0A        verifyPatternElement(input, Type.PARANTHESES);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ParanthesesTypeWithSpaces_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22 (  'test' ) %22;%0A        %0A        verifyPatternElement(input, Type.PARANTHESES);%0A    %7D%0A    %0A    private void verifyPatternElement(String input, Type type) throws SpongeMatcherParseException %7B%0A        StringElement element = StringElementParser.parseStringElement(input);%0A        %0A        PatternElement pattern = (PatternElement) element;%0A        assertThat(pattern.getType(), equalTo(type));%0A    %7D%0A%7D%0A

Add unit tests for parsing pattern elements