public void testHasTypedPropertyObject() { final Object z = new Object(); final Resource r = model.createResource(); r.addLiteral(RDF.value, z); Assert.assertTrue(r.hasLiteral(RDF.value, z)); }
public void testHasTypedPropertyLong() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1L); Assert.assertTrue(r.hasLiteral(RDF.value, 1L)); }
public void testHasTypedPropertyDouble() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1.0d); Assert.assertTrue(r.hasLiteral(RDF.value, 1.0d)); }
public void testHasTypedPropertyDouble() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1.0d); Assert.assertTrue(r.hasLiteral(RDF.value, 1.0d)); }
public void testHasTypedPropertyInt() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1); Assert.assertTrue(r.hasLiteral(RDF.value, 1)); }
public void testHasTypedPropertyBoolean() { final Resource r = model.createResource(); r.addLiteral(RDF.value, false); Assert.assertTrue(r.hasLiteral(RDF.value, false)); }
public void testHasTypedPropertyChar() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 'x'); Assert.assertTrue(r.hasLiteral(RDF.value, 'x')); }
public void testHasTypedPropertyFloat() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1.0f); Assert.assertTrue(r.hasLiteral(RDF.value, 1.0f)); }
public void testHasTypedPropertyChar() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 'x'); Assert.assertTrue(r.hasLiteral(RDF.value, 'x')); }
public void testHasTypedPropertyLong() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1L); Assert.assertTrue(r.hasLiteral(RDF.value, 1L)); }
public void testAddTypedPropertyObject() { final Object z = new Object(); final Resource r = model.createResource(); r.addLiteral(RDF.value, z); Assert.assertEquals(model.createTypedLiteral(z), r.getProperty(RDF.value).getLiteral()); }
public void testAddLiteralPassesLiteralUnmodified() { final Resource r = model.createResource(); final Literal lit = model.createLiteral("spoo"); r.addLiteral(RDF.value, lit); Assert.assertTrue("model should contain unmodified literal", model.contains(null, RDF.value, lit)); }
public void testAddLiteralPassesLiteralUnmodified() { final Resource r = model.createResource(); final Literal lit = model.createLiteral("spoo"); r.addLiteral(RDF.value, lit); Assert.assertTrue("model should contain unmodified literal", model.contains(null, RDF.value, lit)); }
public void testAddTypedPropertyLong() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1L); Assert.assertEquals(model.createTypedLiteral(1L), r.getProperty(RDF.value).getLiteral()); }
public void testAddTypedPropertyLong() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1L); Assert.assertEquals(model.createTypedLiteral(1L), r.getProperty(RDF.value).getLiteral()); }
public void testAddTypedPropertyBoolean() { final Resource r = model.createResource(); r.addLiteral(RDF.value, true); Assert.assertEquals(model.createTypedLiteral(true), r.getProperty(RDF.value).getLiteral()); }
public void testAddTypedPropertyChar() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 'x'); Assert.assertEquals(model.createTypedLiteral('x'), r.getProperty(RDF.value).getLiteral()); }
public void testAddTypedPropertyDouble() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1.0d); Assert.assertEquals(model.createTypedLiteral(1.0d), r.getProperty(RDF.value).getLiteral()); }
public void testAddTypedPropertyFloat() { final Resource r = model.createResource(); r.addLiteral(RDF.value, 1.0f); Assert.assertEquals(model.createTypedLiteral(1.0f), r.getProperty(RDF.value).getLiteral()); }
public void testAddTypedPropertyBoolean() { final Resource r = model.createResource(); r.addLiteral(RDF.value, true); Assert.assertEquals(model.createTypedLiteral(true), r.getProperty(RDF.value).getLiteral()); }