@@ -0,0 +1,2006 @@
+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.ConnectedElement.Operator;%0A%0Apublic class ConnectedElementParserTest %7B%0A%0A    @Test%0A    public void parseElements_ConnectedElementsWithOr_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22'test1'%7C'test2'%22;%0A        %0A        verifyConnectedElement(input, Operator.OR);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ConnectedElementsWithOrWithSpaces_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22    'test1' %7C   'test2' %22;%0A        %0A        verifyConnectedElement(input, Operator.OR);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ConnectedElementsWithAnd_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22'test1'&'test2'%22;%0A        %0A        verifyConnectedElement(input, Operator.AND);%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ConnectedElementsWithAndWithSpaces_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22    'test1' &   'test2' %22;%0A        %0A        verifyConnectedElement(input, Operator.AND);%0A    %7D%0A    %0A    private void verifyConnectedElement(String input, Operator op) throws SpongeMatcherParseException %7B%0A        StringElement element = StringElementParser.parseStringElement(input);%0A        %0A        ConnectedElement con = (ConnectedElement) element;%0A        assertThat(con.getOperator(), equalTo(op));%0A        BaseElement%3C?%3E base1 = (BaseElement%3C?%3E) con.getFirstElement();%0A        BaseElement%3C?%3E base2 = (BaseElement%3C?%3E) con.getSecondElement();%0A        assertThat(base1.getString(), equalTo(%22'test1'%22));%0A        assertThat(base2.getString(), equalTo(%22'test2'%22));%0A    %7D%0A%7D%0A

Add unit tests for connected element parsing