@Test public void testMultiLineEqualsSingleLineStatements() throws IOException { List<String> oneLiners = readStatements(ONE_LINE); List<String> multiLiners = readStatements(MULTI_LINE); assertEquals(oneLiners, multiLiners); }
@Test public void testMultiLineEqualsSingleLineCount() throws IOException { List<String> oneLiners = readStatements(ONE_LINE); List<String> multiLiners = readStatements(MULTI_LINE); assertEquals(oneLiners.size(), multiLiners.size()); }
@Test(expected = IOException.class) public void testIncompleteLastStatementDetection() throws IOException { readStatements(MISSING_LAST_SEMICOLON); }