diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/files/GPXImporterTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/files/GPXImporterTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/files/GPXImporterTest.java b/tests/src/cgeo/geocaching/files/GPXImporterTest.java index ead52f0..66334d7 100644 --- a/tests/src/cgeo/geocaching/files/GPXImporterTest.java +++ b/tests/src/cgeo/geocaching/files/GPXImporterTest.java @@ -119,10 +119,10 @@ public class GPXImporterTest extends AbstractResourceInstrumentationTestCase { } private void assertImportStepMessages(int... importSteps) { - assertEquals(importSteps.length, importStepHandler.messages.size()); - for (int i = 0; i < importSteps.length; i++) { + for (int i = 0; i < Math.min(importSteps.length, importStepHandler.messages.size()); i++) { assertEquals(importSteps[i], importStepHandler.messages.get(i).what); } + assertEquals(importSteps.length, importStepHandler.messages.size()); } public void testImportLoc() throws IOException { |
