name-parser-api/src/test/java/org/gbif/nameparser/NameParserTest.java
/**
   * Test all names in unparsable.txt and makes sure they are not parsable.
   */
Test all names in unparsable.txt and makes sure they are not parsable.
Test all names in unparsable . txt and makes sure they are not parsable .
@Test
  public void unparsableFile() throws Exception {
    for (String name : iterResource("unparsable.txt")) {
      try {
        parser.parse(name);
        fail("Expected " + name + " to be unparsable");
      } catch (UnparsableNameException ex) {
        assertEquals(name, ex.getName());
      }
    }
  }
@ Test public void unparsableFile ( ) throws Exception { for ( String name : iterResource ( "unparsable.txt" ) ) { try { parser . parse ( name ) ; fail ( "Expected " + name + " to be unparsable" ) ; } catch ( UnparsableNameException ex ) { assertEquals ( name , ex . getName ( ) ) ; } } }
Test all names in unparsable.txt and makes sure they are not parsable.
Test all names in unparsable . txt and makes sure they are not parsable .