Ejemplo n.º 1
0
  @Test
  public void testCalculateNextGeneration() {
    Logger.getAnonymousLogger().info("GameOfLife-Server initialized");
    Court court = new Court();
    court.initializeFields();

    Logger.getAnonymousLogger().info("vorher: \n" + court);
    court.calculateNextGeneration();
    Logger.getAnonymousLogger().info("nacher: \n" + court);

    Assert.assertTrue(court.isStillActive());
  }
Ejemplo n.º 2
0
 @Test
 public void testJson() {
   Court court = new Court();
   court.initializeFields();
   Logger.getAnonymousLogger().info(court.getJsonFields());
 }