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

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


  public void simpleEntiyEquals() {
    Set<String> animals = new HashSet<String>();
    animals.add("cat");
    animals.add("dog");
    animals.add("sneake");
    SimplePerson person = new SimplePerson("John", animals);
    SimplePerson proxy = database.save(person);

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


  public void simpleEntiySetEquals() {
    Set<String> animals = new HashSet<String>();
    animals.add("cat");
    animals.add("dog");
    animals.add("sneake");
    SimplePerson person = new SimplePerson("John", animals);
    SimplePerson proxy = database.save(person);

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

  public void simpleProxySelfEquals() {
    Set<String> animals = new HashSet<String>();
    animals.add("cat");
    animals.add("dog");
    animals.add("sneake");
    SimplePerson proxy = database.save(new SimplePerson("John", animals));

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

  public void simpleProxySetsSelfEquals() {
    Set<String> animals = new HashSet<String>();
    animals.add("cat");
    animals.add("dog");
    animals.add("sneake");
    SimplePerson proxy = database.save(new SimplePerson("John", animals));

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

  public void simpleEntiyEquals() {
    Set<String> animals = new HashSet<String>();
    animals.add("cat");
    animals.add("dog");
    animals.add("sneake");
    SimplePerson person = new SimplePerson("John", animals);
    SimplePerson proxy = database.save(person);

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

  public void simpleEntiySetEquals() {
    Set<String> animals = new HashSet<String>();
    animals.add("cat");
    animals.add("dog");
    animals.add("sneake");
    SimplePerson person = new SimplePerson("John", animals);
    SimplePerson proxy = database.save(person);

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

  public void simpleProxySelfEquals() {
    Set<String> animals = new HashSet<String>();
    animals.add("cat");
    animals.add("dog");
    animals.add("sneake");
    SimplePerson proxy = database.save(new SimplePerson("John", animals));

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

  public void simpleProxySetsSelfEquals() {
    Set<String> animals = new HashSet<String>();
    animals.add("cat");
    animals.add("dog");
    animals.add("sneake");
    SimplePerson proxy = database.save(new SimplePerson("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.SimplePerson

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.