@Ignore @Test public void should_find_status() { Wall wall2 = new Wall("wall1"); wallHolderService.update(wall2); }
@Override public Wall update(Wall wall) { Wall newWall = wallDAO.update(wall); wallProcess.rebuildFullWallInformations(newWall); Wall previousWall = WALLS.get(wall.getName()); if (previousWall != null) { previousWall.close(); WALLS.remove(previousWall.getName()); } WALLS.put(newWall.getName(), newWall); return newWall; }
WallHolderService implements WallDAO { @Override public Wall update(Wall wall) { Wall newWall = wallDAO.update(wall); wallProcess.rebuildFullWallInformations(newWall); Wall previousWall = WALLS.get(wall.getName()); if (previousWall != null) { previousWall.close(); WALLS.remove(previousWall.getName()); } WALLS.put(newWall.getName(), newWall); return newWall; } }
WallHolderService implements WallDAO { @Override public Wall update(Wall wall) { Wall newWall = wallDAO.update(wall); wallProcess.rebuildFullWallInformations(newWall); Wall previousWall = WALLS.get(wall.getName()); if (previousWall != null) { previousWall.close(); WALLS.remove(previousWall.getName()); } WALLS.put(newWall.getName(), newWall); return newWall; }  }
WallHolderService implements WallDAO { @Override public Wall update(Wall wall) { Wall newWall = wallDAO.update(wall); wallProcess.rebuildFullWallInformations(newWall); Wall previousWall = WALLS.get(wall.getName()); if (previousWall != null) { previousWall.close(); WALLS.remove(previousWall.getName()); } WALLS.put(newWall.getName(), newWall); return newWall; }  @Override List<Wall> getWalls(); @Override Wall find(String wallName); @Override Wall update(Wall wall); Set<String> getWallNames(); @Override void deleteWall(String wallName); }
WallHolderService implements WallDAO { @Override public Wall update(Wall wall) { Wall newWall = wallDAO.update(wall); wallProcess.rebuildFullWallInformations(newWall); Wall previousWall = WALLS.get(wall.getName()); if (previousWall != null) { previousWall.close(); WALLS.remove(previousWall.getName()); } WALLS.put(newWall.getName(), newWall); return newWall; }  @Override List<Wall> getWalls(); @Override Wall find(String wallName); @Override Wall update(Wall wall); Set<String> getWallNames(); @Override void deleteWall(String wallName);  }