Examples of findWorldEntityById()


Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

    assertTrue(dao.newWorldEntityOf(this.world2).isPresent());
    assertTrue(dao.newWorldEntityOf(this.world3).isPresent());
    assertTrue(dao.newWorldEntityOf(this.world4).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 4);
    assertTrue(dao.findWorldEntityByOriginId(2000).isPresent());
    assertEquals(dao.findWorldEntityById(4).get(), dao.findWorldEntityByOriginId(2000).get());
    assertFalse(dao.findWorldEntityByOriginId(3000).isPresent());
  }

  @Test
  public void testFindWorldEntityOf() {
View Full Code Here

Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

    assertTrue(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.newWorldEntityOf(this.world2).isPresent());
    assertTrue(dao.newWorldEntityOf(this.world3).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 3);
    assertTrue(dao.findWorldEntityOf(this.world1).isPresent());
    assertEquals(dao.findWorldEntityById(1).get(), dao.findWorldEntityOf(this.world1).get());
    assertTrue(dao.findWorldEntityOf(this.world2).isPresent());
    assertEquals(dao.findWorldEntityById(2).get(), dao.findWorldEntityOf(this.world2).get());
    assertTrue(dao.findWorldEntityOf(this.world3).isPresent());
    assertEquals(dao.findWorldEntityById(3).get(), dao.findWorldEntityOf(this.world3).get());
    assertFalse(dao.findWorldEntityOf(this.world4).isPresent());
View Full Code Here

Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

    assertTrue(dao.newWorldEntityOf(this.world3).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 3);
    assertTrue(dao.findWorldEntityOf(this.world1).isPresent());
    assertEquals(dao.findWorldEntityById(1).get(), dao.findWorldEntityOf(this.world1).get());
    assertTrue(dao.findWorldEntityOf(this.world2).isPresent());
    assertEquals(dao.findWorldEntityById(2).get(), dao.findWorldEntityOf(this.world2).get());
    assertTrue(dao.findWorldEntityOf(this.world3).isPresent());
    assertEquals(dao.findWorldEntityById(3).get(), dao.findWorldEntityOf(this.world3).get());
    assertFalse(dao.findWorldEntityOf(this.world4).isPresent());
  }
View Full Code Here

Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

    assertTrue(dao.findWorldEntityOf(this.world1).isPresent());
    assertEquals(dao.findWorldEntityById(1).get(), dao.findWorldEntityOf(this.world1).get());
    assertTrue(dao.findWorldEntityOf(this.world2).isPresent());
    assertEquals(dao.findWorldEntityById(2).get(), dao.findWorldEntityOf(this.world2).get());
    assertTrue(dao.findWorldEntityOf(this.world3).isPresent());
    assertEquals(dao.findWorldEntityById(3).get(), dao.findWorldEntityOf(this.world3).get());
    assertFalse(dao.findWorldEntityOf(this.world4).isPresent());
  }

  @Test
  public void testFindOrCreateWorldEntityOf() {
View Full Code Here

Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

  @Test
  public void testNewWorldEntityAndFindWorldEntityById() {
    final WorldEntityDAO dao = new WorldEntityDAO();

    assertTrue(dao.retrieveAllWorldEntities().size() == 0);
    assertFalse(dao.findWorldEntityById(1).isPresent());
    assertFalse(dao.findWorldEntityById(2).isPresent());
    assertFalse(dao.findWorldEntityById(3).isPresent());
    assertTrue(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 1);
    assertTrue(dao.findWorldEntityById(1).isPresent());
View Full Code Here

Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

  public void testNewWorldEntityAndFindWorldEntityById() {
    final WorldEntityDAO dao = new WorldEntityDAO();

    assertTrue(dao.retrieveAllWorldEntities().size() == 0);
    assertFalse(dao.findWorldEntityById(1).isPresent());
    assertFalse(dao.findWorldEntityById(2).isPresent());
    assertFalse(dao.findWorldEntityById(3).isPresent());
    assertTrue(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 1);
    assertTrue(dao.findWorldEntityById(1).isPresent());
    assertFalse(dao.newWorldEntityOf(this.world1).isPresent());
View Full Code Here

Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

    final WorldEntityDAO dao = new WorldEntityDAO();

    assertTrue(dao.retrieveAllWorldEntities().size() == 0);
    assertFalse(dao.findWorldEntityById(1).isPresent());
    assertFalse(dao.findWorldEntityById(2).isPresent());
    assertFalse(dao.findWorldEntityById(3).isPresent());
    assertTrue(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 1);
    assertTrue(dao.findWorldEntityById(1).isPresent());
    assertFalse(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.findWorldEntityById(1).isPresent());
View Full Code Here

Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

    assertFalse(dao.findWorldEntityById(1).isPresent());
    assertFalse(dao.findWorldEntityById(2).isPresent());
    assertFalse(dao.findWorldEntityById(3).isPresent());
    assertTrue(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 1);
    assertTrue(dao.findWorldEntityById(1).isPresent());
    assertFalse(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.findWorldEntityById(1).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 1);
    assertTrue(dao.newWorldEntityOf(this.world2).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 2);
View Full Code Here

Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

    assertFalse(dao.findWorldEntityById(3).isPresent());
    assertTrue(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 1);
    assertTrue(dao.findWorldEntityById(1).isPresent());
    assertFalse(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.findWorldEntityById(1).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 1);
    assertTrue(dao.newWorldEntityOf(this.world2).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 2);
    assertTrue(dao.findWorldEntityById(3).isPresent());
    assertFalse(dao.newWorldEntityOf(this.world2).isPresent());
View Full Code Here

Examples of de.justi.yagw2api.analyzer.impl.WorldEntityDAO.findWorldEntityById()

    assertFalse(dao.newWorldEntityOf(this.world1).isPresent());
    assertTrue(dao.findWorldEntityById(1).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 1);
    assertTrue(dao.newWorldEntityOf(this.world2).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 2);
    assertTrue(dao.findWorldEntityById(3).isPresent());
    assertFalse(dao.newWorldEntityOf(this.world2).isPresent());
    assertTrue(dao.findWorldEntityById(3).isPresent());
    assertTrue(dao.retrieveAllWorldEntities().size() == 2);
    assertTrue(dao.newWorldEntityOf(this.world3).isPresent());
    assertTrue(dao.findWorldEntityById(5).isPresent());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.