ParserConfig extends RioConfig implements Serializable { public boolean isPreserveBNodeIDs() { return this.get(BasicParserSettings.PRESERVE_BNODE_IDS); } ParserConfig(); @Deprecated  ParserConfig(boolean verifyData, boolean stopAtFirstError, boolean preserveBNodeIDs,
			DatatypeHandling datatypeHandling); ParserConfig setNonFatalErrors(Set<RioSetting<?>> nonFatalErrors); ParserConfig addNonFatalError(RioSetting<?> nextNonFatalError); boolean isNonFatalError(RioSetting<?> errorToCheck); Set<RioSetting<?>> getNonFatalErrors(); @Deprecated boolean verifyData(); @Deprecated boolean stopAtFirstError(); boolean isPreserveBNodeIDs(); @Deprecated DatatypeHandling datatypeHandling(); @Override ParserConfig useDefaults(); @Override ParserConfig set(RioSetting<T> setting, T value);  }
@Test public final void testParserConfigSameAsDefaults() { ParserConfig testConfig = new ParserConfig(true, true, false, DatatypeHandling.VERIFY); assertTrue(testConfig.isSet(BasicParserSettings.PRESERVE_BNODE_IDS)); assertFalse(testConfig.get(BasicParserSettings.PRESERVE_BNODE_IDS)); assertFalse(testConfig.isPreserveBNodeIDs()); }
@Test public final void testParserConfigNonDefaults() { ParserConfig testConfig = new ParserConfig(false, false, true, DatatypeHandling.IGNORE); assertTrue(testConfig.isSet(BasicParserSettings.PRESERVE_BNODE_IDS)); assertTrue(testConfig.get(BasicParserSettings.PRESERVE_BNODE_IDS)); assertTrue(testConfig.isPreserveBNodeIDs()); }
@Test public final void testIsPreserveBNodeIDs() { ParserConfig testConfig = new ParserConfig(); assertFalse(testConfig.isPreserveBNodeIDs()); testConfig.set(BasicParserSettings.PRESERVE_BNODE_IDS, true); assertTrue(testConfig.isPreserveBNodeIDs()); }