@Test public void testUpdateMaterial() throws DatabaseException { Material material = materialDao.read(MATERIAL5_ID); assertTrue(material.getName().equals(MATERIAL5_NAME)); material.setName(MATERIAL5_NAME_UPDATED); materialDao.update(material); material = materialDao.read(MATERIAL5_ID); assertTrue(material.getName().equals(MATERIAL5_NAME_UPDATED)); }
@Test public void testReadMaterial() throws DatabaseException { Material material = materialDao.read(MATERIAL5_ID); assertTrue(material.getName().equals(MATERIAL5_NAME)); }