name-parser-api/src/test/java/org/gbif/nameparser/NameAssertion.java
/**
   * @param partQuals list of part/value pairs
   */
@param partQuals list of part/value pairs
@param partQuals list of part / value pairs
NameAssertion qualifiers(Object... partQuals) {
    for (int idx = 0; idx < partQuals.length; idx+=2) {
      NamePart part = (NamePart) partQuals[idx];
      String qualifier = (String) partQuals[idx+1];
      assertEquals(qualifier, n.getEpithetQualifier().get(part));
    }
    assertEquals(partQuals.length/2, n.getEpithetQualifier().size());
    return add(NP.QUALIFIERS);
  }
NameAssertion qualifiers ( Object ... partQuals ) { for ( int idx = 0 ; idx < partQuals . length ; idx += 2 ) { NamePart part = ( NamePart ) partQuals [ idx ] ; String qualifier = ( String ) partQuals [ idx + 1 ] ; assertEquals ( qualifier , n . getEpithetQualifier ( ) . get ( part ) ) ; } assertEquals ( partQuals . length / 2 , n . getEpithetQualifier ( ) . size ( ) ) ; return add ( NP . QUALIFIERS ) ; }
@param partQuals list of part/value pairs
@param partQuals list of part / value pairs