Exemplo n.º 1
0
 /**
  * Test the getting of Indexes
  *
  * @throws java.sql.SQLException
  * @throws java.lang.ClassNotFoundException
  */
 @Test
 public void testGetIndexes()
     throws SQLException, ClassNotFoundException, DataAlreadyRegisteredException {
   testIndex = indexDAO.addIndex(testIndex);
   List<Index> indexes = indexDAO.getIndexes();
   assertNotNull("Coult not get Indexes!", indexes);
 } // end of method testGetIndexes
Exemplo n.º 2
0
 /**
  * Test edit index with the index registered
  *
  * @throws SQLException
  */
 @Test
 public void testEditIndex()
     throws SQLException, DataAlreadyRegisteredException, UnavailableDataException {
   testIndex = indexDAO.addIndex(testIndex);
   testIndex.setCodeAnime(5);
   indexDAO.editIndex(testIndex);
   assertTrue("The edition was not effective!", indexDAO.getIndexes().get(0).getCodeAnime() == 5);
   indexDAO.deleteIndex(testIndex);
 } // end of the method testEditIndex