use of com.orientechnologies.orient.test.domain.business.Address in project orientdb by orientechnologies.
the class CRUDObjectPhysicalTest method createLinked.
@Test(dependsOnMethods = "testUpdate")
public void createLinked() {
long profiles = database.countClass("Profile");
Profile neo = new Profile("Neo").setValue("test").setLocation(new Address("residence", new City(new Country("Spain"), "Madrid"), "Rio de Castilla"));
neo.addFollowing(new Profile("Morpheus"));
neo.addFollowing(new Profile("Trinity"));
database.save(neo);
Assert.assertEquals(database.countClass("Profile"), profiles + 3);
}
Aggregations