Primer Suite i test-a

Započeo maxogm, 22.04.2011, 11:55

prethodna tema - sledeća tema

maxogm

Junit suite

@RunWith(Suite.class)
@Suite.SuiteClasses( {
   // DAO 
   LevelGroupDAOTest.class,
   ClientGroupDAOTest.class,
   UserGroupsDAOTest.class,
   UserDAOTest.class,
   
//    Bussines logic
   CoreServicesImplTest.class
})

public class MosaicCoreAllTests
{
}


Primer testa:

public class LevelGroupDAOTest
{
   // ------------------------------------------------------------------------------------------------------------------
   /**
    * @throws java.lang.Exception
    */
   @BeforeClass
   public static void setUpBeforeClass() throws Exception
   {

   }

   // ------------------------------------------------------------------------------------------------------------------
   /**
    * @throws java.lang.Exception
    */
   @AfterClass
   public static void setUpAfterClass() throws Exception
   {

   }

   // ------------------------------------------------------------------------------------------------------------------
   @Test
   public void testInsertLevelGroup()
   {
   }

   // ------------------------------------------------------------------------------------------------------------------
   @Test
   public void testGetLevelGroupById()
   {
   }

   // ------------------------------------------------------------------------------------------------------------------
   @Test
   public void testGetAllLevelGroups()
   {
   }
   
   // ------------------------------------------------------------------------------------------------------------------
   @Test
   public void testUpdateLevelGroup()
   {

   }
   
}