public void testCreateTrueFromString() throws ValueFormatException, RepositoryException { QValue v = factory.create(Boolean.TRUE.toString(), PropertyType.STRING); assertEquals("Boolean value must be true", true, v.getBoolean()); }
public void testCreateTrueFromString() throws ValueFormatException, RepositoryException { QValue v = factory.create(Boolean.TRUE.toString(), PropertyType.STRING); assertEquals("Boolean value must be true", true, v.getBoolean()); }
public void testCreateFalseFromString() throws ValueFormatException, RepositoryException { QValue v = factory.create("any", PropertyType.STRING); assertEquals("Boolean value must be false", false, v.getBoolean()); }
public void testCreateFalseFromString() throws ValueFormatException, RepositoryException { QValue v = factory.create("any", PropertyType.STRING); assertEquals("Boolean value must be false", false, v.getBoolean()); }
public void testCreateTrueBooleanValue() throws RepositoryException { QValue v = factory.create(true); assertEquals("Boolean value must be true", Boolean.TRUE.toString(), v.getString()); assertEquals("Boolean value must be true", true, v.getBoolean()); }
public void testCreateFalseBooleanValue() throws RepositoryException { QValue v = factory.create(false); assertEquals("Boolean value must be false", Boolean.FALSE.toString(), v.getString()); assertEquals("Boolean value must be false", false, v.getBoolean()); }
public void testCreateTrueBooleanValue() throws RepositoryException { QValue v = factory.create(true); assertEquals("Boolean value must be true", Boolean.TRUE.toString(), v.getString()); assertEquals("Boolean value must be true", true, v.getBoolean()); }
public void testCreateFalseBooleanValue() throws RepositoryException { QValue v = factory.create(false); assertEquals("Boolean value must be false", Boolean.FALSE.toString(), v.getString()); assertEquals("Boolean value must be false", false, v.getBoolean()); }
return new InternalValue(value.getBoolean()); case PropertyType.DATE: return new InternalValue(value.getCalendar());
return new InternalValue(value.getBoolean()); case PropertyType.DATE: return new InternalValue(value.getCalendar());
public void testSetBooleanValue() throws RepositoryException { NodeId nid = getNodeId(testPath); Name propName = resolver.getQName("booleanProp"); QValue v = rs.getQValueFactory().create(false); Batch b = rs.createBatch(si, nid); b.addProperty(nid, propName, v); rs.submit(b); PropertyInfo pi = rs.getPropertyInfo(si, getPropertyId(nid, propName)); assertFalse(pi.isMultiValued()); assertFalse(pi.getValues()[0].getBoolean()); assertEquals(PropertyType.BOOLEAN, pi.getType()); pi = getPropertyInfo(nid, propName); assertFalse(pi.getValues()[0].getBoolean()); assertEquals(PropertyType.BOOLEAN, pi.getType()); }
break; case PropertyType.BOOLEAN: jcrValue = factory.createValue(value.getBoolean()); break; case PropertyType.BINARY:
break; case PropertyType.BOOLEAN: jcrValue = factory.createValue(value.getBoolean()); break; case PropertyType.BINARY: