File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,27 +60,27 @@ public void testGetString() {
6060 assertEquals (values [2 ], recordWithHeader .get ("third" ));
6161 }
6262
63- @ Test (expected = IllegalStateException .class )
64- public void testGetStringNoHeader () {
65- record .get ("first" );
66- }
67-
6863 @ Test (expected = IllegalArgumentException .class )
6964 public void testGetStringInconsistentRecord () {
7065 header .put ("fourth" , Integer .valueOf (4 ));
7166 recordWithHeader .get ("fourth" );
7267 }
7368
74- @ Test (expected = IllegalArgumentException .class )
75- public void testGetUnmappedName () {
76- assertNull ( recordWithHeader .get ("fourth" ) );
69+ @ Test (expected = IllegalStateException .class )
70+ public void testGetStringNoHeader () {
71+ record .get ("first" );
7772 }
7873
7974 @ Test (expected = IllegalArgumentException .class )
8075 public void testGetUnmappedEnum () {
8176 assertNull (recordWithHeader .get (EnumFixture .UNKNOWN_COLUMN ));
8277 }
8378
79+ @ Test (expected = IllegalArgumentException .class )
80+ public void testGetUnmappedName () {
81+ assertNull (recordWithHeader .get ("fourth" ));
82+ }
83+
8484 @ Test (expected = ArrayIndexOutOfBoundsException .class )
8585 public void testGetUnmappedNegativeInt () {
8686 assertNull (recordWithHeader .get (Integer .MIN_VALUE ));
You can’t perform that action at this time.
0 commit comments