commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1460365 - /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java
Date Sun, 24 Mar 2013 13:30:32 GMT
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 {



Mime
View raw message