cst.test
Class TestCaseSpreadsheetData

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by cst.test.AbstractCSTTestCase
              extended by cst.test.TestCaseBatchLoaderFeatures
                  extended by cst.test.TestCaseSpreadsheetData
All Implemented Interfaces:
junit.framework.Test

public class TestCaseSpreadsheetData
extends TestCaseBatchLoaderFeatures


 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
 
Fields inherited from class cst.test.TestCaseBatchLoaderFeatures
activityHeaderParser, databasesInitialised, importSettings, loggingServiceAPI, sessionProperties
 
Fields inherited from class cst.test.AbstractCSTTestCase
adminServiceAPI, adminUser, DATE_FORMAT, endUser, sampleTrialSubjectModel, simpleDateFormat, testDataSet
 
Constructor Summary
TestCaseSpreadsheetData()
           
 
Method Summary
 void testParseLineE1()
          do not allow blank values
 void testParseLineE2()
          do not allow comments
 void testParseLineE3()
          do not allow an illegal comment
 void testParseLineE4()
          do not allow an alternative date format
 void testParseLineE5()
          do not allow chronology errors within the same line to happen
 void testParseLineE6()
          do not allow chronology errors to happen when valid new data that is read is combined with existing data.
 void testParseLineN1()
           
 void testParseLineN2()
          allow blank values
 void testParseLineN3()
          allow comments
 void testParseLineN4()
          accepts the same dates for multiple steps in the same activity
 void testRowNumberN1()
           
 
Methods inherited from class cst.test.TestCaseBatchLoaderFeatures
addDefaultRecords, setUp, tearDown
 
Methods inherited from class cst.test.AbstractCSTTestCase
populateDatabase, 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
 

Constructor Detail

TestCaseSpreadsheetData

public TestCaseSpreadsheetData()
Method Detail

testParseLineN1

public void testParseLineN1()

testParseLineN2

public void testParseLineN2()
allow blank values


testParseLineN3

public void testParseLineN3()
allow comments


testParseLineN4

public void testParseLineN4()
accepts the same dates for multiple steps in the same activity


testParseLineE1

public void testParseLineE1()
do not allow blank values


testParseLineE2

public void testParseLineE2()
do not allow comments


testParseLineE3

public void testParseLineE3()
do not allow an illegal comment


testParseLineE4

public void testParseLineE4()
do not allow an alternative date format


testParseLineE5

public void testParseLineE5()
do not allow chronology errors within the same line to happen


testParseLineE6

public void testParseLineE6()
do not allow chronology errors to happen when valid new data that is read is combined with existing data.


testRowNumberN1

public void testRowNumberN1()