name-parser-api/src/test/java/org/gbif/nameparser/NameParserTest.java
/**
   * Test all names in doubtful.txt and make sure they parse without exception,
   * but have a doubtful flag set.
   * This test does not verify if the parsed name was correct in all its pieces,
   * so only use this as a quick way to add names to tests.
   * <p>
   * Exceptional cases should better be tested in a test on its own!
   */
Test all names in doubtful.txt and make sure they parse without exception,
but have a doubtful flag set.
This test does not verify if the parsed name was correct in all its pieces,
so only use this as a quick way to add names to tests.

Exceptional cases should better be tested in a test on its own!
Test all names in doubtful . txt and make sure they parse without exception but have a doubtful flag set . This test does not verify if the parsed name was correct in all its pieces so only use this as a quick way to add names to tests . Exceptional cases should better be tested in a test on its own!
@Test
  public void doubtfulFile() throws Exception {
    for (String name : iterResource("doubtful.txt")) {
      ParsedName n = parser.parse(name, null);
      assertTrue(name, n.isDoubtful());
      assertTrue(name, n.getState().isParsed());
      assertTrue(name, n.getType().isParsable());
    }
  }
@ Test public void doubtfulFile ( ) throws Exception { for ( String name : iterResource ( "doubtful.txt" ) ) { ParsedName n = parser . parse ( name , null ) ; assertTrue ( name , n . isDoubtful ( ) ) ; assertTrue ( name , n . getState ( ) . isParsed ( ) ) ; assertTrue ( name , n . getType ( ) . isParsable ( ) ) ; } }
Test all names in doubtful.txt and make sure they parse without exception,
 but have a doubtful flag set.
Test all names in doubtful . txt and make sure they parse without exception but have a doubtful flag set .