Remove test method, escaping at EOF is already tested through testEscapingAtEOF()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1460365 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a1806ba26
commit
9e3f3cccb2
|
@ -206,23 +206,6 @@ public class CSVLexerTest {
|
|||
assertTokenEquals(EOF, "e", parser.nextToken(new Token()));
|
||||
}
|
||||
|
||||
// simple token with escaping enabled
|
||||
@Test
|
||||
public void testNextToken3BadEscaping() throws IOException {
|
||||
final String code = "a,b,c\\";
|
||||
final CSVFormat format = CSVFormat.newBuilder().withEscape('\\').build();
|
||||
assertTrue(format.isEscaping());
|
||||
final Lexer parser = getLexer(code, format);
|
||||
|
||||
assertTokenEquals(TOKEN, "a", parser.nextToken(new Token()));
|
||||
assertTokenEquals(TOKEN, "b", parser.nextToken(new Token()));
|
||||
try {
|
||||
final Token tkn = parser.nextToken(new Token());
|
||||
fail("Expected IOE, found "+tkn);
|
||||
} catch (final IOException e) {
|
||||
}
|
||||
}
|
||||
|
||||
// encapsulator tokenizer (single line)
|
||||
@Test
|
||||
public void testNextToken4() throws IOException {
|
||||
|
|
Loading…
Reference in New Issue