Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.test
Class WebappsTestCase  view WebappsTestCase download WebappsTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.RuntimeCollective.webapps.RuntimeTestCase
              extended bycom.RuntimeCollective.webapps.test.WebappsTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AuditedExtensionTest, DefaultUserTest, EntityLinkTableTest, LazyEBListTest, ModeratedExtensionTest, TreeExtensionTest, UserGroupTestReal

public class WebappsTestCase
extends com.RuntimeCollective.webapps.RuntimeTestCase

Test Case for basic webapps functionality, mostly EBS-related.


Field Summary
protected  java.lang.String DEFAULT_STORE_CLASS
           
private static java.lang.String ENTITY_BEAN_CLASS_NAME
           
private  java.util.Vector ivBeanNames
           
private  java.util.HashMap ivBeanStoreNames
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
WebappsTestCase(java.lang.String name)
           
 
Method Summary
 boolean checkBeanStore()
           
private  void configureRuntimeDataSource()
           
 java.util.Enumeration getBeanNames()
           
 java.lang.String getNameId()
          A value that can be appended to a name in order that a bean can be identified aand pulled out of the database in other tests.
 java.lang.String getStoreClassForBeanName(java.lang.String name)
           
 com.RuntimeCollective.webapps.EntityBeanStoreHandler initialiseBeanStore()
           
 void initMailSession()
          Initialise the JavaMail Session object.
 void initUserGroups()
          Initialise the UserGroups object.
 void printBeanStoreClasses()
           
private  void registerBean(java.lang.String beanName, com.RuntimeCollective.webapps.EntityBeanStoreHandler handler, java.lang.String cacheClass, java.lang.String storeClass)
           
 void registerBeanClass(java.lang.String name)
           
 void registerBeanClass(java.lang.String name, java.lang.String storeClass)
           
 void resetBeanRegister()
           
protected  void setUp()
          This has been copied over from the theseus test cases, and will be updated to use the RuntimeTestCase init routines shortly
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testCheckEntityBeanStoreValid()
           
 
Methods inherited from class com.RuntimeCollective.webapps.RuntimeTestCase
LogTestSection, main, setupRuntime
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTITY_BEAN_CLASS_NAME

private static final java.lang.String ENTITY_BEAN_CLASS_NAME
See Also:
Constant Field Values

DEFAULT_STORE_CLASS

protected java.lang.String DEFAULT_STORE_CLASS

ivBeanNames

private java.util.Vector ivBeanNames

ivBeanStoreNames

private java.util.HashMap ivBeanStoreNames
Constructor Detail

WebappsTestCase

public WebappsTestCase(java.lang.String name)
Method Detail

getNameId

public java.lang.String getNameId()
A value that can be appended to a name in order that a bean can be identified aand pulled out of the database in other tests.


resetBeanRegister

public void resetBeanRegister()

registerBeanClass

public void registerBeanClass(java.lang.String name)

registerBeanClass

public void registerBeanClass(java.lang.String name,
                              java.lang.String storeClass)

getBeanNames

public java.util.Enumeration getBeanNames()

getStoreClassForBeanName

public java.lang.String getStoreClassForBeanName(java.lang.String name)

configureRuntimeDataSource

private void configureRuntimeDataSource()

setUp

protected void setUp()
This has been copied over from the theseus test cases, and will be updated to use the RuntimeTestCase init routines shortly


initialiseBeanStore

public com.RuntimeCollective.webapps.EntityBeanStoreHandler initialiseBeanStore()

registerBean

private void registerBean(java.lang.String beanName,
                          com.RuntimeCollective.webapps.EntityBeanStoreHandler handler,
                          java.lang.String cacheClass,
                          java.lang.String storeClass)
                   throws java.sql.SQLException

testCheckEntityBeanStoreValid

public void testCheckEntityBeanStoreValid()

checkBeanStore

public boolean checkBeanStore()

printBeanStoreClasses

public void printBeanStoreClasses()

initUserGroups

public void initUserGroups()
Initialise the UserGroups object.


initMailSession

public void initMailSession()
Initialise the JavaMail Session object.


tearDown

protected void tearDown()
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.