You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2014/01/21 02:55:23 UTC
svn commit: r1559898 -
/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVRecordTest.java
Author: ggregory
Date: Tue Jan 21 01:55:23 2014
New Revision: 1559898
URL: http://svn.apache.org/r1559898
Log:
Sort members.
Modified:
commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVRecordTest.java
Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVRecordTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVRecordTest.java?rev=1559898&r1=1559897&r2=1559898&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVRecordTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVRecordTest.java Tue Jan 21 01:55:23 2014
@@ -60,20 +60,15 @@ public class CSVRecordTest {
assertEquals(values[2], recordWithHeader.get("third"));
}
- @Test(expected = IllegalStateException.class)
- public void testGetStringNoHeader() {
- record.get("first");
- }
-
@Test(expected = IllegalArgumentException.class)
public void testGetStringInconsistentRecord() {
header.put("fourth", Integer.valueOf(4));
recordWithHeader.get("fourth");
}
- @Test(expected = IllegalArgumentException.class)
- public void testGetUnmappedName() {
- assertNull(recordWithHeader.get("fourth"));
+ @Test(expected = IllegalStateException.class)
+ public void testGetStringNoHeader() {
+ record.get("first");
}
@Test(expected = IllegalArgumentException.class)
@@ -81,6 +76,11 @@ public class CSVRecordTest {
assertNull(recordWithHeader.get(EnumFixture.UNKNOWN_COLUMN));
}
+ @Test(expected = IllegalArgumentException.class)
+ public void testGetUnmappedName() {
+ assertNull(recordWithHeader.get("fourth"));
+ }
+
@Test(expected = ArrayIndexOutOfBoundsException.class)
public void testGetUnmappedNegativeInt() {
assertNull(recordWithHeader.get(Integer.MIN_VALUE));