org.silverpeas.resourcemanager.services
Class CategoryServiceTest

java.lang.Object
  extended by org.silverpeas.resourcemanager.services.CategoryServiceTest

@ContextConfiguration(locations={"/spring-resource-manager-datasource.xml","/spring-resource-manager.xml"})
@Transactional
@TransactionConfiguration(transactionManager="jpaTransactionManager")
public class CategoryServiceTest
extends Object

Author:
ehugonnet

Constructor Summary
CategoryServiceTest()
           
 
Method Summary
 void generalSetUp()
           
 Connection getConnection()
           
static void prepareDataSet()
           
 void testCreateCategory()
          Test of createCategory method, of class ResourcesManagerDAO.
 void testDeleteCategory()
          Test of deleteCategory method, of class ResourcesManagerDAO.
 void testGetCategories()
          Test of getCategories method, of class ResourcesManagerDAO.
 void testGetCategory()
          Test of getCategory method, of class ResourcesManagerDAO.
 void testSimpleConversion()
           
 void testUpdateCategory()
          Test of updateCategory method, of class ResourcesManagerDAO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryServiceTest

public CategoryServiceTest()
Method Detail

prepareDataSet

public static void prepareDataSet()
                           throws Exception
Throws:
Exception

getConnection

public Connection getConnection()
                         throws SQLException
Throws:
SQLException

generalSetUp

public void generalSetUp()
                  throws Exception
Throws:
Exception

testSimpleConversion

public void testSimpleConversion()

testCreateCategory

public void testCreateCategory()
                        throws Exception
Test of createCategory method, of class ResourcesManagerDAO.

Throws:
Exception

testUpdateCategory

public void testUpdateCategory()
                        throws Exception
Test of updateCategory method, of class ResourcesManagerDAO.

Throws:
Exception

testGetCategories

public void testGetCategories()
                       throws Exception
Test of getCategories method, of class ResourcesManagerDAO.

Throws:
Exception

testGetCategory

public void testGetCategory()
                     throws Exception
Test of getCategory method, of class ResourcesManagerDAO.

Throws:
Exception

testDeleteCategory

public void testDeleteCategory()
                        throws Exception
Test of deleteCategory method, of class ResourcesManagerDAO.

Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.