fail("Unexpectedly found factory for protocol " + protocol); //$NON-NLS-1$
}
}
public void helpTestGetDefaultFactory( final IDGenerator gen, final String protocolOrNull ) {
final ObjectIDFactory factory = gen.getDefaultFactory();
if ( factory == null && protocolOrNull != null ) {
fail("Unable to find default factory"); //$NON-NLS-1$
}
if ( factory != null && protocolOrNull == null ) {
fail("Unexpectedly found default factory"); //$NON-NLS-1$
}
if ( factory != null && !factory.getProtocol().equals(protocolOrNull) ) {
fail("Default factory had protocol " + factory.getProtocol() + //$NON-NLS-1$
" but should have been " + protocolOrNull); //$NON-NLS-1$
}
}