Package com.orientechnologies.orient.test.domain.base

Examples of com.orientechnologies.orient.test.domain.base.Animal


  }

  @Test(dependsOnMethods = "simpleEntiySetEquals")
  public void complicatedEntityEquals() {
    Set<Animal> animals = new HashSet<Animal>();
    animals.add(new Animal("cat"));
    animals.add(new Animal("dog"));
    animals.add(new Animal("sneake"));
    ComplicatedPerson person = new ComplicatedPerson("John", animals);
    ComplicatedPerson proxy = database.save(person);

    Assert.assertEquals(person, proxy);
    Assert.assertEquals(proxy, person);
View Full Code Here


  }

  @Test(dependsOnMethods = "complicatedEntityEquals")
  public void complicatedEntitiesSetEquals() {
    Set<Animal> animals = new HashSet<Animal>();
    animals.add(new Animal("cat"));
    animals.add(new Animal("dog"));
    animals.add(new Animal("sneake"));
    ComplicatedPerson person = new ComplicatedPerson("John", animals);
    ComplicatedPerson proxy = database.save(person);

    Assert.assertTrue(proxy.getAnimals().equals(person.getAnimals()));
    Assert.assertTrue(person.getAnimals().equals(proxy.getAnimals()));
View Full Code Here

  }

  @Test(dependsOnMethods = "simpleProxySetsSelfEquals")
  public void complicatedProxySelfEquals() {
    Set<Animal> animals = new HashSet<Animal>();
    animals.add(new Animal("cat"));
    animals.add(new Animal("dog"));
    animals.add(new Animal("sneake"));
    ComplicatedPerson proxy = database.save(new ComplicatedPerson("John", animals));

    Assert.assertEquals(proxy, proxy);
    database.delete(proxy);
  }
View Full Code Here

  }

  @Test(dependsOnMethods = "complicatedProxySelfEquals")
  public void complicatedProxySetsSelfEquals() {
    Set<Animal> animals = new HashSet<Animal>();
    animals.add(new Animal("cat"));
    animals.add(new Animal("dog"));
    animals.add(new Animal("sneake"));
    ComplicatedPerson proxy = database.save(new ComplicatedPerson("John", animals));

    Assert.assertEquals(proxy.getAnimals(), proxy.getAnimals());
    database.delete(proxy);
  }
View Full Code Here

  }

  @Test(dependsOnMethods = "simpleEntiySetEquals")
  public void complicatedEntityEquals() {
    Set<Animal> animals = new HashSet<Animal>();
    animals.add(new Animal("cat"));
    animals.add(new Animal("dog"));
    animals.add(new Animal("sneake"));
    ComplicatedPerson person = new ComplicatedPerson("John", animals);
    ComplicatedPerson proxy = database.save(person);

    Assert.assertEquals(person, proxy);
    Assert.assertEquals(proxy, person);
View Full Code Here

  }

  @Test(dependsOnMethods = "complicatedEntityEquals")
  public void complicatedEntitiesSetEquals() {
    Set<Animal> animals = new HashSet<Animal>();
    animals.add(new Animal("cat"));
    animals.add(new Animal("dog"));
    animals.add(new Animal("sneake"));
    ComplicatedPerson person = new ComplicatedPerson("John", animals);
    ComplicatedPerson proxy = database.save(person);

    Assert.assertTrue(proxy.getAnimals().equals(person.getAnimals()));
    Assert.assertTrue(person.getAnimals().equals(proxy.getAnimals()));
View Full Code Here

  }

  @Test(dependsOnMethods = "simpleProxySetsSelfEquals")
  public void complicatedProxySelfEquals() {
    Set<Animal> animals = new HashSet<Animal>();
    animals.add(new Animal("cat"));
    animals.add(new Animal("dog"));
    animals.add(new Animal("sneake"));
    ComplicatedPerson proxy = database.save(new ComplicatedPerson("John", animals));

    Assert.assertEquals(proxy, proxy);
    database.delete(proxy);
  }
View Full Code Here

  }

  @Test(dependsOnMethods = "complicatedProxySelfEquals")
  public void complicatedProxySetsSelfEquals() {
    Set<Animal> animals = new HashSet<Animal>();
    animals.add(new Animal("cat"));
    animals.add(new Animal("dog"));
    animals.add(new Animal("sneake"));
    ComplicatedPerson proxy = database.save(new ComplicatedPerson("John", animals));

    Assert.assertEquals(proxy.getAnimals(), proxy.getAnimals());
    database.delete(proxy);
  }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.test.domain.base.Animal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.