nesstar.api.faster
Class VariableTestBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by nesstar.test.NesstarTestCase
              extended by nesstar.api.faster.VariableTestBase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
VariableTest

public class VariableTestBase
extends NesstarTestCase

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


Field Summary
static VariableHome __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
VariableTestBase(String testName)
          Constructor for the VariableTestBase object
 
Method Summary
static junit.framework.Test getAssociationTest()
           
static junit.framework.Test getAttributesTest()
           
static VariableHome getHome()
           
static junit.framework.Test getMethodsTest()
           
static junit.framework.Test getProperiesTest()
           
static void main(String[] args)
          The main program for the VariableTestBase class
static junit.framework.Test suite()
          Return the suite of all tests of this class
 void testAssociationDatafile()
          A Test of the attribute datafile of type Datafile
 void testAssociationFactsheets()
          A Test of the attribute factsheets as collection of Factsheet
 void testAssociationGroups()
          A Test of the attribute groups as collection of VariableGroup
 void testAssociationMeasures()
          A Test of the attribute measures as collection of Measure
 void testAssociationSection()
          A Test of the attribute section of type Section
 void testAssociationSections()
          A Test of the attribute sections as collection of Section
 void testAssociationStatistics()
          A Test of the attribute statistics as collection of CategoryStatistic
 void testAssociationStudy()
          A Test of the attribute study of type Study
 void testAssociationTables()
          A Test of the attribute tables as collection of Table
 void testAssociationWeightVariable()
          A Test of the attribute weightVariable of type Variable
 void testAssociationWeightVariables()
          A Test of the attribute weightVariables as collection of Variable
 void testAttributeAdditivity()
          A Test of the attribute Additivity
 void testAttributeComment()
          A test on Comment
 void testAttributeConcept()
          A Test of the attribute concept
 void testAttributeCreationDate()
          A test on CreationDate
 void testAttributeDecimalPlaces()
          A Test of the attribute DecimalPlaces
 void testAttributeExpression()
          A Test of the attribute expression
 void testAttributeFormat()
          A Test of the attribute Format
 void testAttributeFormatSchema()
          A Test of the attribute FormatSchema
 void testAttributeGeogr()
          A Test of the attribute Geogr
 void testAttributeInstructions()
          A Test of the attribute Instructions
 void testAttributeInterviewerInstr()
          A Test of the attribute InterviewerInstr
 void testAttributeIntervl()
          A Test of the attribute Intervl
 void testAttributeIsKey()
          A Test of the attribute IsKey
 void testAttributeIsWeight()
          A Test of the attribute IsWeight
 void testAttributeLabel()
          A Test of the attribute label
 void testAttributeMax()
          A Test of the attribute Max
 void testAttributeMaxValue()
          A Test of the attribute MaxValue
 void testAttributeMean()
          A Test of the attribute Mean
 void testAttributeMeanValue()
          A Test of the attribute MeanValue
 void testAttributeMedian()
          A Test of the attribute Median
 void testAttributeMedianValue()
          A Test of the attribute MedianValue
 void testAttributeMin()
          A Test of the attribute Min
 void testAttributeMinValue()
          A Test of the attribute MinValue
 void testAttributeMissingValues()
          A Test of the attribute MissingValues
 void testAttributeMode()
          A Test of the attribute mode
 void testAttributeModeValue()
          A Test of the attribute ModeValue
 void testAttributeName()
          A Test of the attribute name
 void testAttributeNature()
          A Test of the attribute Nature
 void testAttributeNoInvalidResponses()
          A Test of the attribute NoInvalidResponses
 void testAttributeNoResponses()
          A Test of the attribute NoResponses
 void testAttributeNotes()
          A Test of the attribute Notes
 void testAttributeNoValidResponses()
          A Test of the attribute NoValidResponses
 void testAttributeOrigin()
          A Test of the attribute Origin
 void testAttributePosition()
          A Test of the attribute position
 void testAttributePostQuestionText()
          A Test of the attribute PostQuestionText
 void testAttributePreQuestionText()
          A Test of the attribute PreQuestionText
 void testAttributeQuestionText()
          A Test of the attribute QuestionText
 void testAttributeScale()
          A Test of the attribute Scale
 void testAttributeSource()
          A Test of the attribute source
 void testAttributeStartPos()
          A Test of the attribute StartPos
 void testAttributeStd()
          A Test of the attribute std
 void testAttributeStdValue()
          A Test of the attribute StdValue
 void testAttributeUniverse()
          A Test of the attribute Universe
 void testAttributeValRangeMax()
          A Test of the attribute ValRangeMax
 void testAttributeValRangeMin()
          A Test of the attribute ValRangeMin
 void testAttributeVarID()
          A Test of the attribute varID
 void testHomeOperationFindAll()
          A test on the home operation findAll(String id)
 void testHomeOperationFindByKey()
          A test on the home operation findByKey(String id)
 void testOperationRemove()
          A Test of the operation Remove()
 
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
 

Field Detail

__home

public static VariableHome __home
Constructor Detail

VariableTestBase

public VariableTestBase(String testName)
Constructor for the VariableTestBase object

Parameters:
testName -
Method Detail

getHome

public static VariableHome getHome()
                            throws Exception
Throws:
Exception

getProperiesTest

public static junit.framework.Test getProperiesTest()
                                             throws Exception
Returns:
all the tests on the properties of the Variable
Throws:
Exception

getAttributesTest

public static junit.framework.Test getAttributesTest()
                                              throws Exception
Returns:
all the tests on the attributes of the Variable
Throws:
Exception

getAssociationTest

public static junit.framework.Test getAssociationTest()
                                               throws Exception
Returns:
all the tests on the associations of the Variable
Throws:
Exception

getMethodsTest

public static junit.framework.Test getMethodsTest()
                                           throws Exception
Returns:
all the test on the methods of the Variable
Throws:
Exception

main

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

Parameters:
args - The command line arguments

suite

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


testAttributeIsKey

public void testAttributeIsKey()
                        throws Exception
A Test of the attribute IsKey

Is this variable a key in a hierarchy?

Throws:
Exception

testAttributeIsWeight

public void testAttributeIsWeight()
                           throws Exception
A Test of the attribute IsWeight

Whether the variable is a weight.

Throws:
Exception

testAttributeNoInvalidResponses

public void testAttributeNoInvalidResponses()
                                     throws Exception
A Test of the attribute NoInvalidResponses

Number of invalid responses

Throws:
Exception

testAttributeDecimalPlaces

public void testAttributeDecimalPlaces()
                                throws Exception
A Test of the attribute DecimalPlaces

Number of decimal places

Throws:
Exception

testAttributeStartPos

public void testAttributeStartPos()
                           throws Exception
A Test of the attribute StartPos

Start position of variable in data file

Throws:
Exception

testAttributeName

public void testAttributeName()
                       throws Exception
A Test of the attribute name

Name of variable

Throws:
Exception

testAttributeMax

public void testAttributeMax()
                      throws Exception
A Test of the attribute Max

Throws:
Exception

testAttributeMean

public void testAttributeMean()
                       throws Exception
A Test of the attribute Mean

Throws:
Exception

testAttributeMedian

public void testAttributeMedian()
                         throws Exception
A Test of the attribute Median

Throws:
Exception

testAttributeMin

public void testAttributeMin()
                      throws Exception
A Test of the attribute Min

Throws:
Exception

testAttributeMode

public void testAttributeMode()
                       throws Exception
A Test of the attribute mode

Throws:
Exception

testAttributeStd

public void testAttributeStd()
                      throws Exception
A Test of the attribute std

Throws:
Exception

testAttributeValRangeMax

public void testAttributeValRangeMax()
                              throws Exception
A Test of the attribute ValRangeMax

Maximum value in range

Throws:
Exception

testAttributeValRangeMin

public void testAttributeValRangeMin()
                              throws Exception
A Test of the attribute ValRangeMin

Minimum value in range

Throws:
Exception

testAttributeNotes

public void testAttributeNotes()
                        throws Exception
A Test of the attribute Notes

Brief notes on variable

Throws:
Exception

testAttributeQuestionText

public void testAttributeQuestionText()
                               throws Exception
A Test of the attribute QuestionText

Text of the actual, literal question asked.

Throws:
Exception

testAttributeNoResponses

public void testAttributeNoResponses()
                              throws Exception
A Test of the attribute NoResponses

Total Number of Responses

Throws:
Exception

testAttributeInstructions

public void testAttributeInstructions()
                               throws Exception
A Test of the attribute Instructions

Instructions to Interviewer

Throws:
Exception

testAttributeUniverse

public void testAttributeUniverse()
                           throws Exception
A Test of the attribute Universe

Population for this variable

Throws:
Exception

testAttributeAdditivity

public void testAttributeAdditivity()
                             throws Exception
A Test of the attribute Additivity

Throws:
Exception

testAttributeNature

public void testAttributeNature()
                         throws Exception
A Test of the attribute Nature

Throws:
Exception

testAttributeScale

public void testAttributeScale()
                        throws Exception
A Test of the attribute Scale

Throws:
Exception

testAttributeOrigin

public void testAttributeOrigin()
                         throws Exception
A Test of the attribute Origin

Throws:
Exception

testAttributeGeogr

public void testAttributeGeogr()
                        throws Exception
A Test of the attribute Geogr

Throws:
Exception

testAttributeMissingValues

public void testAttributeMissingValues()
                                throws Exception
A Test of the attribute MissingValues

List of missing/invalid values

Throws:
Exception

testAttributeIntervl

public void testAttributeIntervl()
                          throws Exception
A Test of the attribute Intervl

discrete/continuous

Throws:
Exception

testAttributeFormat

public void testAttributeFormat()
                         throws Exception
A Test of the attribute Format

eg Float, Integer

Throws:
Exception

testAttributeFormatSchema

public void testAttributeFormatSchema()
                               throws Exception
A Test of the attribute FormatSchema

eg SPSS, SAS

Throws:
Exception

testAttributeVarID

public void testAttributeVarID()
                        throws Exception
A Test of the attribute varID

Position of variable in dataset (local ID)

Throws:
Exception

testAttributeSource

public void testAttributeSource()
                         throws Exception
A Test of the attribute source

Source for this variable

Throws:
Exception

testAttributeNoValidResponses

public void testAttributeNoValidResponses()
                                   throws Exception
A Test of the attribute NoValidResponses

Number of Valid Responses

Throws:
Exception

testAttributeMeanValue

public void testAttributeMeanValue()
                            throws Exception
A Test of the attribute MeanValue

Statistical measures which describe the responses to a particular variable and may include one or more standard summaries

Throws:
Exception

testAttributeMaxValue

public void testAttributeMaxValue()
                           throws Exception
A Test of the attribute MaxValue

Statistical measures which describe the responses to a particular variable and may include one or more standard summaries

Throws:
Exception

testAttributeModeValue

public void testAttributeModeValue()
                            throws Exception
A Test of the attribute ModeValue

Statistical measures which describe the responses to a particular variable and may include one or more standard summaries

Throws:
Exception

testAttributeMedianValue

public void testAttributeMedianValue()
                              throws Exception
A Test of the attribute MedianValue

Statistical measures which describe the responses to a particular variable and may include one or more standard summaries

Throws:
Exception

testAttributeMinValue

public void testAttributeMinValue()
                           throws Exception
A Test of the attribute MinValue

Statistical measures which describe the responses to a particular variable and may include one or more standard summaries

Throws:
Exception

testAttributeStdValue

public void testAttributeStdValue()
                           throws Exception
A Test of the attribute StdValue

Statistical measures which describe the responses to a particular variable and may include one or more standard summaries

Throws:
Exception

testAttributePosition

public void testAttributePosition()
                           throws Exception
A Test of the attribute position

Represents the ordinal position of a variable in the ddi xml. Starts from position 1.

Throws:
Exception

testAttributeLabel

public void testAttributeLabel()
                        throws Exception
A Test of the attribute label

A descriptive phrase which defines the variable.

Throws:
Exception

testAttributePreQuestionText

public void testAttributePreQuestionText()
                                  throws Exception
A Test of the attribute PreQuestionText

Text describing a set of conditions under which a question might be asked.

Throws:
Exception

testAttributePostQuestionText

public void testAttributePostQuestionText()
                                   throws Exception
A Test of the attribute PostQuestionText

Text describing what occurs after the literal question has been asked.

Throws:
Exception

testAttributeInterviewerInstr

public void testAttributeInterviewerInstr()
                                   throws Exception
A Test of the attribute InterviewerInstr

Specific instructions to the individual conducting an interview.

Throws:
Exception

testAttributeConcept

public void testAttributeConcept()
                          throws Exception
A Test of the attribute concept

List of Concepts. The general subject to which this variable may be seen as pertaining.

Throws:
Exception

testAttributeExpression

public void testAttributeExpression()
                             throws Exception
A Test of the attribute expression

If this variable is derived from other variables this field contains the expression used to calculate the variable.

Throws:
Exception

testAttributeComment

public void testAttributeComment()
                          throws Exception
A test on Comment

Throws:
Exception

testAttributeCreationDate

public void testAttributeCreationDate()
                               throws Exception
A test on CreationDate

Throws:
Exception

testHomeOperationFindByKey

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

Throws:
Exception

testHomeOperationFindAll

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

Throws:
Exception

testOperationRemove

public void testOperationRemove()
                         throws Exception
A Test of the operation Remove()

Remove this derived variable.

Throws:
if - the variable is not derived or if there are other derived variables that depend on it.

Exception

testAssociationSections

public void testAssociationSections()
                             throws Exception
A Test of the attribute sections as collection of Section

Throws:
Exception

testAssociationMeasures

public void testAssociationMeasures()
                             throws Exception
A Test of the attribute measures as collection of Measure

Throws:
Exception

testAssociationStatistics

public void testAssociationStatistics()
                               throws Exception
A Test of the attribute statistics as collection of CategoryStatistic

Throws:
Exception

testAssociationStudy

public void testAssociationStudy()
                          throws Exception
A Test of the attribute study of type Study

Throws:
Exception

testAssociationDatafile

public void testAssociationDatafile()
                             throws Exception
A Test of the attribute datafile of type Datafile

Throws:
Exception

testAssociationGroups

public void testAssociationGroups()
                           throws Exception
A Test of the attribute groups as collection of VariableGroup

Throws:
Exception

testAssociationFactsheets

public void testAssociationFactsheets()
                               throws Exception
A Test of the attribute factsheets as collection of Factsheet

Throws:
Exception

testAssociationTables

public void testAssociationTables()
                           throws Exception
A Test of the attribute tables as collection of Table

Throws:
Exception

testAssociationWeightVariables

public void testAssociationWeightVariables()
                                    throws Exception
A Test of the attribute weightVariables as collection of Variable

Throws:
Exception

testAssociationSection

public void testAssociationSection()
                            throws Exception
A Test of the attribute section of type Section

Throws:
Exception

testAssociationWeightVariable

public void testAssociationWeightVariable()
                                   throws Exception
A Test of the attribute weightVariable of type Variable

Throws:
Exception

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved