@@ -0,0 +1,1832 @@
+package notpure.antlr4.macro;%0A%0Aimport notpure.antlr4.macro.model.lang.Statement;%0Aimport notpure.antlr4.macro.model.lang.StatementType;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertTrue;%0Aimport static org.junit.Assert.assertFalse;%0A%0A/**%0A * A set of tests for %7B@link notpure.antlr4.macro.model.lang.Statement%7D.%0A */%0Apublic final class StatementTest %7B%0A%0A    @Test%0A    public void statementEqualsTest() %7B%0A        // Statement with identifier=null%0A        final Statement statement1 = new Statement(StatementType.GRAMMAR_NAME, %22hello%22);%0A%0A        assertTrue(statement1.equals(new Statement(StatementType.GRAMMAR_NAME, %22hello%22)));%0A        assertFalse(statement1.equals(new Statement(StatementType.GRAMMAR_NAME, %22raw%22, %22hello%22)));%0A        assertFalse(new Statement(StatementType.GRAMMAR_NAME, %22raw%22, %22hello%22).equals(statement1));%0A        assertFalse(statement1.equals(null));%0A%0A        // Statement with identifier!=null%0A        final Statement statement2 = new Statement(StatementType.LEXER_RULE, %22H%22, %22R%22);%0A%0A        assertTrue(statement2.equals(new Statement(StatementType.LEXER_RULE, %22H%22, %22R%22)));%0A        assertFalse(new Statement(StatementType.LEXER_RULE, %22H%22).equals(statement2));%0A        assertFalse(statement2.equals(new Statement(StatementType.LEXER_RULE, %22H%22)));%0A        assertFalse(statement2.equals(new Statement(StatementType.LEXER_RULE, %22H=R%22)));%0A        assertFalse(statement2.equals(null));%0A    %7D%0A%0A    @Test%0A    public void statementToStringTest() %7B%0A        final Statement statement1 = new Statement(StatementType.GRAMMAR_NAME, %22hello%22);%0A        final Statement statement2 = new Statement(StatementType.LEXER_RULE, %22H%22, %22R%22);%0A%0A        assertEquals(%22GRAMMAR_NAME(hello)%22, statement1.toString());%0A        assertEquals(%22LEXER_RULE(H=R)%22, statement2.toString());%0A    %7D%0A%7D%0A

Add statement tests