Sort members.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1559898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-01-21 01:55:23 +00:00
parent 5ec59afdda
commit 64de57a0bc
1 changed files with 8 additions and 8 deletions

View File

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