org.exoplatform.commons.testing
Class BaseCommonsTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.exoplatform.test.BasicTestCase
              extended by org.exoplatform.commons.testing.BaseCommonsTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class BaseCommonsTestCase
extends org.exoplatform.test.BasicTestCase

Created by The eXo Platform SAS Author : eXoPlatform hailt@exoplatform.com May 22, 2012


Field Summary
protected  org.exoplatform.container.configuration.ConfigurationManager configurationManager
           
protected  org.exoplatform.container.PortalContainer container
           
protected  String REPO_NAME
           
protected  org.exoplatform.services.jcr.RepositoryService repositoryService
           
protected  javax.jcr.Node root
           
protected  javax.jcr.Session session
           
protected  String WORKSPACE_NAME
           
 
Fields inherited from class org.exoplatform.test.BasicTestCase
counter_
 
Constructor Summary
BaseCommonsTestCase()
           
 
Method Summary
protected
<T> T
getService(Class<T> clazz)
           
 void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class org.exoplatform.test.BasicTestCase
assertCollection, assertObject, error, getCounter, getDescription, getTestNumber, hasObjectInCollection, info, runTest, setTestNumber
 
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, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REPO_NAME

protected final String REPO_NAME
See Also:
Constant Field Values

WORKSPACE_NAME

protected final String WORKSPACE_NAME
See Also:
Constant Field Values

container

protected org.exoplatform.container.PortalContainer container

repositoryService

protected org.exoplatform.services.jcr.RepositoryService repositoryService

configurationManager

protected org.exoplatform.container.configuration.ConfigurationManager configurationManager

session

protected javax.jcr.Session session

root

protected javax.jcr.Node root
Constructor Detail

BaseCommonsTestCase

public BaseCommonsTestCase()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

getService

protected <T> T getService(Class<T> clazz)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.