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));


Reply via email to