@Test public void testAdd() { Engine engine = new Engine(); engine.setName("test"); EngineDAO.getInstance().save(engine); List<Engine> list = EngineDAO.getInstance().getAll(); assertEquals(list.get(0).getName(),"test"); }
public static EngineDAO getInstance() { return INSTANCE; }
EngineDAO extends AbstractDAO<Engine> { public static EngineDAO getInstance() { return INSTANCE; } }
EngineDAO extends AbstractDAO<Engine> { public static EngineDAO getInstance() { return INSTANCE; }  }
EngineDAO extends AbstractDAO<Engine> { public static EngineDAO getInstance() { return INSTANCE; }  static EngineDAO getInstance(); }
EngineDAO extends AbstractDAO<Engine> { public static EngineDAO getInstance() { return INSTANCE; }  static EngineDAO getInstance();  }