nesstar.api.faster
Class Study3Test

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by nesstar.test.NesstarTestCase
              extended by nesstar.api.faster.Study3TestBase
                  extended by nesstar.api.faster.Study3Test
All Implemented Interfaces:
junit.framework.Test

public class Study3Test
extends Study3TestBase

A Test class for Study3.java Automatically generated from ARGO/UML


Field Summary
 
Fields inherited from class nesstar.api.faster.Study3TestBase
__home
 
Fields inherited from class nesstar.test.NesstarTestCase
ALL, CATALOG_HOME, CUBE_CUBE, DATAFILE_2568_F1, DATAFILE_4176_F1, DATAFILE_4213_F1, DATAFILE_44871_F1, DATAFILE_Cube_C1, DATAFILE_Mergetest_F2, DATAFILE_UnpopulatedElementsTest_F1, emWindow, HC_VAR_HOME, ID_2568, ID_2981, ID_3690, ID_4176, ID_4213, ID_4396, ID_44871, ID_4638, ID_CAMEROON, ID_CIRCULATORY, ID_CUBE, ID_HIERARCHY, ID_LANDET, ID_MERGE, ID_NOGROUPS, ID_NSD50, ID_PUBLISH, ID_UPElements, LICENSE, localIP, NESSTAR2_SERVER_URL, NESSTAR2_URL, NONE, ROOT_CATALOG, SECTION_MERGE_VG10, SECTION_MERGE_VG7, SECTION_MERGE_VG8, SERVER, SOME, SPSS_FORMAT, STAT_ENGINE, STATEMENT_HOME, STATEMENT1, STUDY_2568, STUDY_2981, STUDY_4176, STUDY_4213, STUDY_44871, STUDY_CAMEROON, STUDY_CIRCULATORY, STUDY_CUBE, STUDY_HIERARCHY, STUDY_HOME, STUDY_LANDET, STUDY_MERGE, STUDY_NOGROUPS, STUDY_NSD50, STUDY_UPElements, STUDY2_2568, STUDY2_4638, STUDY2_UPElements, TEST_PROTOCOL, VAR_HOME, VARIABLE_2568_V1, VARIABLE_2568_V13, VARIABLE_2568_V16, VARIABLE_2568_V17, VARIABLE_2568_V18, VARIABLE_2568_V3, VARIABLE_2568_V354, VARIABLE_2568_V77, VARIABLE_44871_V1, VARIABLE_CAMEROON_V238, VARIABLE_CAMEROON_V355, VARIABLE_LANDET_V1, VARIABLE_LANDET_V2, VARIABLE_MERGE_V22, VARIABLE_MERGE_V23, VARIABLE_MERGE_V26, VARIABLE_MERGE_V41, VID_2568_V1, VID_2568_V13, VID_2568_V16, VID_2568_V17, VID_2568_V18, VID_2568_V3, VID_2568_V354, VID_2568_V77, VID_44871_V1, VID_CAMEROON_V238, VID_CAMEROON_V355, VID_LANDET_V1, VID_LANDET_V2, VID_MERGE_V22, VID_MERGE_V23, VID_MERGE_V26, VID_MERGE_V41, WebDataURL
 
Constructor Summary
Study3Test(String testName)
          Constructor for the Study3Test object
 
Method Summary
 void checkCreateDerivedVariable()
           
 void checkDDISkeleton()
           
 void checkDDIVariable()
           
 void checkDeleteAll()
           
 void checkDeleteStudy()
           
 void checkDeleteUser()
          check if a derived variable is deleted when a user is deleted
 void checkFullDDI()
           
 void checkOperationCreateAndRemoveDerivedVariables()
           
 void checkSearchOnDerivedVariables()
           
static junit.framework.Test DerivedVariableTest()
           
static void main(String[] args)
          The main program for the Study3Test class
static junit.framework.Test suite()
          Return the suite of all tests of this class
 void testAttributeComment()
          A test on Comment
 void testAttributeCreationDate()
          A test on CreationDate
 void testAttributeLabel()
          A test on Label
 void testDerivedVariablesDDISkeleton()
           
 void testDerivedVariablesDDIVariable()
           
 void testDerivedVariablesDeleteUser()
           
 void testDerivedVariablesFullDDI()
           
 void testHomeOperationFindAll()
          A test on the home operation findAll(String id)
 void testHomeOperationFindByKey()
          A test on the home operation findByKey(String id)
 void testHomeOperationPublishStudy()
          A Test of the Home operation publishStudy(File ddiFull,File ddiSkeleton,File variableIndex)
 void testOperationCompute(String testfile)
          A Test of a statistical operation with a variable compute
 void testOperationCorrelation()
          A Test of the operation Correlation(String condition,Collection variables,String missing,String type,Collection weights,String format,String filter) Bivariate Correlation Matrix
 void testOperationCorrelationMultifile()
          A Test of the operation Correlation(String condition,Collection variables,String missing,String type,Collection weights,String format,String filter) Bivariate Correlation Matrix
 void testOperationCreateAndRemoveDerivedVariables()
           
 void testOperationCreateDerivedVariable()
          A Test of the operation CreateDerivedVariable(String name,String label,String comment,String expression)
 void testOperationDeleteAll()
          test all the derived properties are removed when a study is removed
 void testOperationFrequencyCompute()
           
 void testOperationFrequencyComputeDotted()
           
 void testOperationGetDerivedVariables()
          A Test of the operation GetDerivedVariables()
 void testOperationTabulationCompute()
           
 void testOperationTabulationComputeDouble()
           
 void testOperationTabulationComputeMultifile()
           
 void testOperationTabulationRecode()
           
 void testOperationTabulationRecodeDouble()
           
 void testOperationVarlist()
          A Test of the operation Varlist(String condition,Collection variables,Collection weights,String format,String filter) General Variable Information
 void testOperationVarlistMultifile()
          A Test of the operation Varlist(String condition,Collection variables,Collection weights,String format,String filter) General Variable Information
 void testSearchOnDerivedVariables()
           
 void testStaleDerivedariable()
          Tests for partial object support
 void testStatisticalOperation(String testfile)
          A Test of the operation Tabulation(String condition,Collection variables,Collection weights,String format,String filter,String customVar)
 
Methods inherited from class nesstar.api.faster.Study3TestBase
getAssociationTest, getAttributesTest, getHome, getMethodsTest, getProperiesTest
 
Methods inherited from class nesstar.test.NesstarTestCase
addAllTests, addAllTests, addDatafile, addPath, adminLogin, assertBinary, assertContains, assertContains, assertDoesNotContain, assertDoesNotContain, assertDuration, assertEqualIgnoreOrder, assertEquals, assertMatches, assertMatches, assertNoAccess, assertNoAccess, assertNoAccess, assertNotEquals, assertNotEquals, assertObjDoesNotExists, assertObjDoesNotExists, assertObjExists, assertObjExists, assertWebAuthorisationRequired, assertWebAuthorisationRequired, basicSetup, cannotRun, catalogSetup, checkIllegalArgument, checkPaths, checkPathsTo, checkPathsTo, checkPerformance, compareWithFile, compareWithReferenceFile, compareWithTestFile, compareWithTestFile, createDerivedVariable, createDerivedVariable, createDerivedVariableUnprotected, cubeSetup, cvsAbstractName, cvsClientSetup, cvsCompare, cvsCompare, cvsFailIfDifferent, cvsFailIfDifferent, cvsFileRevision, cvsFileRevisions, cvsRootDir, dependsOn, dependsOn, equalToFile, equalToTestFile, equalToTestFile, executeRangeQuery, executeRangeQuery, executeRangeQuery, executeRangeQueryAdditivity, expectFalse, expectTrue, extractZipFile, factsheetSetup, findPosition, flirtWithTestFile, getBrowserPage, getBrowserPage, getCatalog, getCategoryStatistic, getCategoryStatisticFromVariable, getConcept, getCurrentBrowserPage, getCvsPropertiesFile, getDatafile, getDDITestFile, getDDITestFileContents, getDerivedVariableByName, getDimension, getDimensionFromCube, getEGMSResource, getEGMSResource2, getEvent, getExisting, getFailedDir, getFailedFile, getFilenames, getFilteredTestFile, getGeographicalUnit, getLocalFile, getMaxConcurrentOps, getMeasure, getNumberCompletedOps, getNumberHTTPConnections, getNumberStartedOps, getObj, getObjectsFrom, getObjURL, getOrganisation, getPage, getPage, getPartsOf, getPartsOf, getPartsOf, getPerson, getRawPage, getRDF, getReport, getResultDir, getResultFile, getSecureObjURL, getSecureServerURL, getServerDataDir, getServerDatafile, getServerIP, getServerLog, getServerName, getServerObjURL, getServerPage, getServerPageURL, getServerPassword, getServerPort, getServerSecurePort, getServerURL, getServerUsername, getStatementsOn, getStatementsOn, getTableFromStudy, getTerm, getTestDir, getTestFile, getTestFile, getVariable, getVariableFromStudy, getWebFile, getZipFile, hasWebData, HCSetup, isLocalServer, isNTService, isOnline, isQuickie, isReleaseTest, isWaitForSQLServerIndexer, loadCube, loadDDI, loadHashFromFile, loadStudy, loadStudy3, loadVariable, msg, msg, noDirectAccess, objExists, objsExists, openEMWindow, performRangeQuery, querySetup, read, rebootServer, rebootServer, reloadObj, removeAllVars, removeCreationDate, removeProperties, removeServerURL, repeatCheck, saveToTestFile, setNTService, setQuickie, setReleaseTest, setWaitForSQLServerIndexer, statementSetup, studyCleanup, studySetup, tableSetup, toMsg, toString, untested, updateChildren, variableSetup, waitForSQLServerIndexer, waitServer, warn, webclientSetup, write, xthesaurusSetup
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Study3Test

public Study3Test(String testName)
Constructor for the Study3Test object

Parameters:
testName -
Method Detail

main

public static void main(String[] args)
The main program for the Study3Test class

Parameters:
args - The command line arguments

suite

public static junit.framework.Test suite()
Return the suite of all tests of this class


testAttributeComment

public void testAttributeComment()
                          throws Exception
A test on Comment

Overrides:
testAttributeComment in class Study3TestBase
Throws:
Exception

testAttributeLabel

public void testAttributeLabel()
                        throws Exception
A test on Label

Overrides:
testAttributeLabel in class Study3TestBase
Throws:
Exception

testHomeOperationFindByKey

public void testHomeOperationFindByKey()
                                throws Exception
A test on the home operation findByKey(String id)

Overrides:
testHomeOperationFindByKey in class Study3TestBase
Throws:
Exception

testHomeOperationFindAll

public void testHomeOperationFindAll()
                              throws Exception
A test on the home operation findAll(String id)

Overrides:
testHomeOperationFindAll in class Study3TestBase
Throws:
Exception

testOperationCorrelation

public void testOperationCorrelation()
                              throws Exception
A Test of the operation Correlation(String condition,Collection variables,String missing,String type,Collection weights,String format,String filter) Bivariate Correlation Matrix

Overrides:
testOperationCorrelation in class Study3TestBase
Throws:
Exception

testOperationCorrelationMultifile

public void testOperationCorrelationMultifile()
                                       throws Exception
A Test of the operation Correlation(String condition,Collection variables,String missing,String type,Collection weights,String format,String filter) Bivariate Correlation Matrix

Throws:
Exception

testOperationVarlist

public void testOperationVarlist()
                          throws Exception
A Test of the operation Varlist(String condition,Collection variables,Collection weights,String format,String filter) General Variable Information

Overrides:
testOperationVarlist in class Study3TestBase
Throws:
Exception

testOperationVarlistMultifile

public void testOperationVarlistMultifile()
                                   throws Exception
A Test of the operation Varlist(String condition,Collection variables,Collection weights,String format,String filter) General Variable Information

Throws:
Exception

testStatisticalOperation

public void testStatisticalOperation(String testfile)
                              throws Exception
A Test of the operation Tabulation(String condition,Collection variables,Collection weights,String format,String filter,String customVar)

Throws:
Exception

testOperationFrequencyCompute

public void testOperationFrequencyCompute()
                                   throws Exception
Throws:
Exception

testOperationFrequencyComputeDotted

public void testOperationFrequencyComputeDotted()
                                         throws Exception
Throws:
Exception

testOperationTabulationCompute

public void testOperationTabulationCompute()
                                    throws Exception
Throws:
Exception

testOperationTabulationComputeDouble

public void testOperationTabulationComputeDouble()
                                          throws Exception
Throws:
Exception

testOperationTabulationComputeMultifile

public void testOperationTabulationComputeMultifile()
                                             throws Exception
Throws:
Exception

testOperationTabulationRecode

public void testOperationTabulationRecode()
                                   throws Exception
Throws:
Exception

testOperationTabulationRecodeDouble

public void testOperationTabulationRecodeDouble()
                                         throws Exception
Throws:
Exception

testOperationCompute

public void testOperationCompute(String testfile)
                          throws Exception
A Test of a statistical operation with a variable compute

Throws:
Exception

testHomeOperationPublishStudy

public void testHomeOperationPublishStudy()
                                   throws Exception
A Test of the Home operation publishStudy(File ddiFull,File ddiSkeleton,File variableIndex)

Publish a study xml file including it's ddi skeleton file in xml format and associated variable index file.

Overrides:
testHomeOperationPublishStudy in class Study3TestBase
Throws:
Exception

testOperationCreateDerivedVariable

public void testOperationCreateDerivedVariable()
                                        throws Exception
Description copied from class: Study3TestBase
A Test of the operation CreateDerivedVariable(String name,String label,String comment,String expression)

Create a new unique derived variable with the specified name, label, comment and expression.

The new variable is automatically associated with this study and with the current user.

Overrides:
testOperationCreateDerivedVariable in class Study3TestBase
Throws:
Exception

testOperationDeleteAll

public void testOperationDeleteAll()
                            throws Exception
test all the derived properties are removed when a study is removed

Throws:
Exception

testOperationGetDerivedVariables

public void testOperationGetDerivedVariables()
                                      throws Exception
Description copied from class: Study3TestBase
A Test of the operation GetDerivedVariables()

Return a (possibly empty) collection of derived variables linked to this study and visible to the current user according to the current access control policy.

Overrides:
testOperationGetDerivedVariables in class Study3TestBase
Throws:
Exception

DerivedVariableTest

public static junit.framework.Test DerivedVariableTest()
                                                throws Exception
Returns:
all the test on derived variables
Throws:
Exception

checkCreateDerivedVariable

public void checkCreateDerivedVariable()
                                throws Exception
Throws:
Exception

checkDeleteAll

public void checkDeleteAll()
                    throws Exception
Throws:
Exception

testDerivedVariablesDeleteUser

public void testDerivedVariablesDeleteUser()
                                    throws Exception
Throws:
Exception

checkDeleteUser

public void checkDeleteUser()
                     throws Exception
check if a derived variable is deleted when a user is deleted

Throws:
Exception

checkDeleteStudy

public void checkDeleteStudy()
                      throws Exception
Throws:
Exception

testDerivedVariablesFullDDI

public void testDerivedVariablesFullDDI()
                                 throws Exception
Throws:
Exception

checkFullDDI

public void checkFullDDI()
                  throws Exception
Throws:
Exception

testDerivedVariablesDDISkeleton

public void testDerivedVariablesDDISkeleton()
                                     throws Exception
Throws:
Exception

checkDDISkeleton

public void checkDDISkeleton()
                      throws Exception
Throws:
Exception

testDerivedVariablesDDIVariable

public void testDerivedVariablesDDIVariable()
                                     throws Exception
Throws:
Exception

checkDDIVariable

public void checkDDIVariable()
                      throws Exception
Throws:
Exception

testSearchOnDerivedVariables

public void testSearchOnDerivedVariables()
                                  throws Exception
Throws:
Exception

checkSearchOnDerivedVariables

public void checkSearchOnDerivedVariables()
                                   throws Exception
Throws:
Exception

checkOperationCreateAndRemoveDerivedVariables

public void checkOperationCreateAndRemoveDerivedVariables()
                                                   throws Exception
Throws:
Exception

testOperationCreateAndRemoveDerivedVariables

public void testOperationCreateAndRemoveDerivedVariables()
                                                  throws Exception
Throws:
Exception

testStaleDerivedariable

public void testStaleDerivedariable()
                             throws Exception
Tests for partial object support

Throws:
Exception
Bug:
should be rewritten as it is not actually testing partial objects

testAttributeCreationDate

public void testAttributeCreationDate()
                               throws Exception
A test on CreationDate

Overrides:
testAttributeCreationDate in class Study3TestBase
Throws:
Exception

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved