com.stratelia.webactiv.beans.admin
Class AdminTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.DatabaseTestCase
              extended by org.dbunit.DBTestCase
                  extended by org.dbunit.JndiBasedDBTestCase
                      extended by com.silverpeas.components.model.AbstractTestDao
                          extended by com.stratelia.webactiv.beans.admin.AdminTest
All Implemented Interfaces:
junit.framework.Test

public class AdminTest
extends AbstractTestDao

Author:
ehugonnet

Field Summary
 
Fields inherited from class com.silverpeas.components.model.AbstractTestDao
datasource
 
Constructor Summary
AdminTest()
           
 
Method Summary
protected  String getDatasetFileName()
           
protected  String getTableCreationFileName()
           
 void setUp()
           
 void tearDown()
           
 void testGetAllDomains()
          Test of getAllDomains method of class Admin
 void testGetAllRootSpaceIds()
          Test of getAllRootSpaceIds method, of class Admin.
 void testGetAllRootSpaceIdsForUser()
          Test of getAllRootSpaceIds method, of class Admin.
 void testGetAllSubSpaceIdsForDomain()
          Test of getAllSubSpaceIds method, of class Admin.
 void testGetGeneralSpaceId()
          Test of getGeneralSpaceId method, of class Admin.
 void testGetSpaceInstById()
          Test of getSpaceInstById method, of class Admin.
 void testGetTreeView()
          Test of getTreeView method, of class Admin.
 void testGetUserSpaceTreeview()
          Test of getUserSpaceTreeview method, of class Admin.
 void testIsSpaceInstExist()
          Test of isSpaceInstExist method, of class Admin.
 
Methods inherited from class com.silverpeas.components.model.AbstractTestDao
cleanData, configureJNDIDatasource, getDataSet, getLookupName, getTableCreationScript, getTearDownOperation, prepareData, setUpClass, tearDownClass
 
Methods inherited from class org.dbunit.JndiBasedDBTestCase
getJNDIProperties, newDatabaseTester
 
Methods inherited from class org.dbunit.DBTestCase
getConnection
 
Methods inherited from class org.dbunit.DatabaseTestCase
closeConnection, getDatabaseTester, getOperationListener, getSetUpOperation, setUpDatabaseConfig
 
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdminTest

public AdminTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractTestDao
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class AbstractTestDao
Throws:
Exception

getDatasetFileName

protected String getDatasetFileName()
Specified by:
getDatasetFileName in class AbstractTestDao

testGetGeneralSpaceId

public void testGetGeneralSpaceId()
Test of getGeneralSpaceId method, of class Admin.


testGetSpaceInstById

public void testGetSpaceInstById()
                          throws Exception
Test of getSpaceInstById method, of class Admin.

Throws:
Exception

testGetAllSubSpaceIdsForDomain

public void testGetAllSubSpaceIdsForDomain()
                                    throws Exception
Test of getAllSubSpaceIds method, of class Admin.

Throws:
Exception

testIsSpaceInstExist

public void testIsSpaceInstExist()
                          throws Exception
Test of isSpaceInstExist method, of class Admin.

Throws:
Exception

testGetAllRootSpaceIds

public void testGetAllRootSpaceIds()
                            throws Exception
Test of getAllRootSpaceIds method, of class Admin.

Throws:
Exception

testGetTreeView

public void testGetTreeView()
                     throws Exception
Test of getTreeView method, of class Admin.

Throws:
Exception

testGetUserSpaceTreeview

public void testGetUserSpaceTreeview()
                              throws Exception
Test of getUserSpaceTreeview method, of class Admin.

Throws:
Exception

testGetAllRootSpaceIdsForUser

public void testGetAllRootSpaceIdsForUser()
                                   throws Exception
Test of getAllRootSpaceIds method, of class Admin.

Throws:
Exception

testGetAllDomains

public void testGetAllDomains()
                       throws Exception
Test of getAllDomains method of class Admin

Throws:
Exception
See Also:
#2540

getTableCreationFileName

protected String getTableCreationFileName()
Specified by:
getTableCreationFileName in class AbstractTestDao


Copyright © 2016 Silverpeas. All Rights Reserved.