You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2013/03/24 14:30:32 UTC

svn commit: r1460365 - /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java

Author: britter
Date: Sun Mar 24 13:30:32 2013
New Revision: 1460365

URL: http://svn.apache.org/r1460365
Log:
Remove test method, escaping at EOF is already tested through testEscapingAtEOF()

Modified:
    commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java

Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java?rev=1460365&r1=1460364&r2=1460365&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java Sun Mar 24 13:30:32 2013
@@ -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 {