@Test public void testCreatesManagedIndividualIfItDoesNotExist() throws Exception { DataSet dataSet = exampleDataSet(); DataSetUtils. newHelper(dataSet). managedIndividual(name("other"),MANAGER_ID); Individual<?,?> individual = dataSet. individualOfId(managedIndividualId("other", MANAGER_ID)); assertThat(individual,notNullValue()); }
public abstract IndividualHelper managedIndividual(Name<?> name, String managerId);
DataSetHelper { public abstract IndividualHelper managedIndividual(Name<?> name, String managerId); }
DataSetHelper { public abstract IndividualHelper managedIndividual(Name<?> name, String managerId); DataSetHelper(); }
DataSetHelper { public abstract IndividualHelper managedIndividual(Name<?> name, String managerId); DataSetHelper(); abstract S replace(Serializable from, T to, Class<? extends S> clazz); abstract ManagedIndividual manage(ManagedIndividualId id); abstract T self(); abstract T relative(URI path); abstract IndividualHelper externalIndividual(URI uri); abstract IndividualHelper managedIndividual(Name<?> name, String managerId); abstract IndividualHelper relativeIndividual(Name<?> name, String managerId, URI path); abstract IndividualHelper localIndividual(Name<?> name); }
DataSetHelper { public abstract IndividualHelper managedIndividual(Name<?> name, String managerId); DataSetHelper(); abstract S replace(Serializable from, T to, Class<? extends S> clazz); abstract ManagedIndividual manage(ManagedIndividualId id); abstract T self(); abstract T relative(URI path); abstract IndividualHelper externalIndividual(URI uri); abstract IndividualHelper managedIndividual(Name<?> name, String managerId); abstract IndividualHelper relativeIndividual(Name<?> name, String managerId, URI path); abstract IndividualHelper localIndividual(Name<?> name); static final URI SELF; }