cst.test
Class AbstractCSTTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by cst.test.AbstractCSTTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestCaseAdminCoreData, TestCaseAdminUserManagement, TestCaseBatchLoaderFeatures, TestCaseFilters, TestCaseTrialActivityModel

public abstract class AbstractCSTTestCase
extends junit.framework.TestCase


 Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software 
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License. 
 

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
protected  AdminServiceAPI adminServiceAPI
           
protected  User adminUser
           
protected static java.text.SimpleDateFormat DATE_FORMAT
           
protected  User endUser
           
protected  LoggingServiceAPI loggingServiceAPI
           
protected  TrialSubjectModel sampleTrialSubjectModel
           
protected  SessionProperties sessionProperties
           
protected  java.text.SimpleDateFormat simpleDateFormat
           
protected  TestDataSet testDataSet
           
 
Constructor Summary
AbstractCSTTestCase(java.lang.String name)
           
 
Method Summary
protected  void populateDatabase(java.util.ArrayList<TrialSubjectModel> trialSubjectModels)
           
protected  void setUp()
           
protected  void tearDown()
           
protected  void userTestDataSet()
           
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATE_FORMAT

protected static final java.text.SimpleDateFormat DATE_FORMAT

sessionProperties

protected SessionProperties sessionProperties

adminUser

protected User adminUser

endUser

protected User endUser

testDataSet

protected TestDataSet testDataSet

loggingServiceAPI

protected LoggingServiceAPI loggingServiceAPI

adminServiceAPI

protected AdminServiceAPI adminServiceAPI

simpleDateFormat

protected java.text.SimpleDateFormat simpleDateFormat

sampleTrialSubjectModel

protected TrialSubjectModel sampleTrialSubjectModel
Constructor Detail

AbstractCSTTestCase

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

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

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

populateDatabase

protected void populateDatabase(java.util.ArrayList<TrialSubjectModel> trialSubjectModels)
                         throws CSTException
Throws:
CSTException

userTestDataSet

protected void userTestDataSet()