ThreeTieredValueDictionary extends ValueDictionaryBase { @Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value != null && !(value instanceof URI)) { _bNodesAndLiterals.removeValue(value, p); } } ThreeTieredValueDictionary(
			final String id,
			final IDictionary<String> namespaces,
			final IDictionary<String> localNames,
			final ITopLevelDictionary bNodesAndLiterals); @Override void removeValue(final Value value, final boolean p); @Override boolean isBNode(final byte[] id); @Override boolean isLiteral(final byte[] id); @Override boolean isResource(final byte[] id);  }
@Test public void removeURI() throws Exception { final boolean isPredicate = RANDOMIZER.nextBoolean(); _cut.removeValue(_aURI, isPredicate); }
@Test public void removeBNode() throws Exception { final boolean isPredicate = RANDOMIZER.nextBoolean(); _cut.removeValue(_aBNode, isPredicate); verify(_namespacesDictionary, times(0)).removeValue(anyString(), eq(isPredicate)); verify(_localNamesDictionary, times(0)).removeValue(anyString(), eq(isPredicate)); verify(_bnodesAndLiteralsDictionary).removeValue(_aBNode, isPredicate); }
@Test public void removeLiteral() throws Exception { final boolean isPredicate = RANDOMIZER.nextBoolean(); _cut.removeValue(_aLiteral, isPredicate); verify(_namespacesDictionary, times(0)).removeValue(anyString(), eq(isPredicate)); verify(_localNamesDictionary, times(0)).removeValue(anyString(), eq(isPredicate)); verify(_bnodesAndLiteralsDictionary).removeValue(_aLiteral, isPredicate); }