nesstar.api
Class DatasetTestBase

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

public class DatasetTestBase
extends NesstarTestCase

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


Field Summary
static DatasetHome __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
DatasetTestBase(String testName)
          Constructor for the DatasetTestBase object
 
Method Summary
static junit.framework.Test getAssociationTest()
           
static junit.framework.Test getAttributesTest()
           
static DatasetHome getHome()
           
static junit.framework.Test getMethodsTest()
           
static junit.framework.Test getProperiesTest()
           
static void main(String[] args)
          The main program for the DatasetTestBase class
static junit.framework.Test suite()
          Return the suite of all tests of this class
 void testAttributeAbstractText()
          A Test of the attribute abstractText
 void testAttributeAccessConditions()
          A Test of the attribute accessConditions
 void testAttributeAccessStatus()
          A Test of the attribute accessStatus
 void testAttributeCollMode()
          A Test of the attribute collMode
 void testAttributeComment()
          A Test of the attribute comment
 void testAttributeCreationDate()
          A test on CreationDate
 void testAttributeDataKind()
          A Test of the attribute dataKind
 void testAttributeDistributionDate()
          A Test of the attribute distributionDate
 void testAttributeDistributor()
          A Test of the attribute distributor
 void testAttributeGeographicalCover()
          A Test of the attribute geographicalCover
 void testAttributeGeographicalUnit()
          A Test of the attribute geographicalUnit
 void testAttributeHasData()
          A Test of the attribute hasData
 void testAttributeLabel()
          A Test of the attribute label
 void testAttributeSampling()
          A Test of the attribute sampling
 void testAttributeSource()
          A Test of the attribute source
 void testAttributeSubcat()
          A Test of the attribute subcat
 void testAttributeTimeMeth()
          A Test of the attribute timeMeth
 void testAttributeTimePeriod()
          A Test of the attribute timePeriod
 void testAttributeTitle()
          A Test of the attribute title
 void testHomeOperationFindAll()
          A test on the home operation findAll(String id)
 void testHomeOperationFindByKey()
          A test on the home operation findByKey(String id)
 void testOperationAddDataFile()
          Deprecated. support for old-style NSD datafiles has been dropped, use Datafile.AddDatafile(..) instead.
 void testOperationBreakdown()
          Deprecated. Replaced by Study2 Breakdown
 void testOperationDatalist()
          Deprecated. Replaced by Study2 Datalist
 void testOperationDelete()
          A Test of the operation Delete() Delete the dataset from the server.
 void testOperationDescriptive()
          Deprecated. Replaced by Study2 Descriptive
 void testOperationFindDDIVariables()
          Deprecated. Replaced by Study2.RangeQuery("GET Variable WHERE Variable.* CONTAINS 'phrase'").
 void testOperationFrequency()
          Deprecated. Replaced by Study2 Frequency
 void testOperationGetDDI()
          A Test of the operation GetDDI()
 void testOperationGetDDISkeleton()
          A Test of the operation GetDDISkeleton() Get a possibly incomplete DDI document.
 void testOperationGetDDIVariable()
          Deprecated. Replaced by Study2.RangeQuery("GET Variable WHERE Variable.id == 'VID'").
 void testOperationGFrequency()
          Deprecated. Replaced by Study2 GFrequency
 void testOperationMultipleRegression()
          Deprecated. Replaced by Study2 MultipleRegression
 void testOperationSubset()
          Deprecated. Replaced by Study2 Download
 void testOperationTabulation()
          Deprecated. Replaced by Study2 Tabulation
 void testOperationXBreak()
          Deprecated. Replaced by Study2 XBreak
 
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 DatasetHome __home
Constructor Detail

DatasetTestBase

public DatasetTestBase(String testName)
Constructor for the DatasetTestBase object

Parameters:
testName -
Method Detail

getHome

public static DatasetHome getHome()
                           throws Exception
Throws:
Exception

getProperiesTest

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

getAttributesTest

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

getAssociationTest

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

getMethodsTest

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

main

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

Parameters:
args - The command line arguments

suite

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


testAttributeAbstractText

public void testAttributeAbstractText()
                               throws Exception
A Test of the attribute abstractText

The abstract.

Throws:
Exception

testAttributeAccessConditions

public void testAttributeAccessConditions()
                                   throws Exception
A Test of the attribute accessConditions

Restriction on access or use.

Throws:
Exception

testAttributeAccessStatus

public void testAttributeAccessStatus()
                               throws Exception
A Test of the attribute accessStatus

The access status of the study with respect to the current user (e.g. NoAccess, FreeAccess, etc.)

Throws:
Exception

testAttributeCollMode

public void testAttributeCollMode()
                           throws Exception
A Test of the attribute collMode

The collection mode, e.g. Telephone, mail, questionnaire

Throws:
Exception

testAttributeDataKind

public void testAttributeDataKind()
                           throws Exception
A Test of the attribute dataKind

The kind of data, e.g. individual level.

Throws:
Exception

testAttributeDistributionDate

public void testAttributeDistributionDate()
                                   throws Exception
A Test of the attribute distributionDate

Date of distribution of study

Throws:
Exception

testAttributeDistributor

public void testAttributeDistributor()
                              throws Exception
A Test of the attribute distributor

A distributor is defined as the organization designated by the author or producer to generate copies of the data/documentation including any necessary editions or revisions. Names and addresses may be specified, and other archives may be co-distributors.

Throws:
Exception

testAttributeGeographicalCover

public void testAttributeGeographicalCover()
                                    throws Exception
A Test of the attribute geographicalCover

Geographic coverage

Throws:
Exception

testAttributeGeographicalUnit

public void testAttributeGeographicalUnit()
                                   throws Exception
A Test of the attribute geographicalUnit

Lowest level of geog. aggregation

Throws:
Exception

testAttributeHasData

public void testAttributeHasData()
                          throws Exception
A Test of the attribute hasData

Does this dataset have data files?.

Throws:
Exception

testAttributeSampling

public void testAttributeSampling()
                           throws Exception
A Test of the attribute sampling

sampling procedure, inc. size, fraction.

Throws:
Exception

testAttributeSource

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

Used to list the book(s), article(s), serial(s), and/or machine-readable data file(s), if any, that served as the source(s) of the data collection.

Throws:
Exception

testAttributeSubcat

public void testAttributeSubcat()
                         throws Exception
A Test of the attribute subcat

The classification field indicates the broad substantive topic(s) that the data cover.

Throws:
Exception

testAttributeTimeMeth

public void testAttributeTimeMeth()
                           throws Exception
A Test of the attribute timeMeth

eg panel, trend, time series

Throws:
Exception

testAttributeTimePeriod

public void testAttributeTimePeriod()
                             throws Exception
A Test of the attribute timePeriod

The time period to which the data refer.

Throws:
Exception

testAttributeTitle

public void testAttributeTitle()
                        throws Exception
A Test of the attribute title

Title of the Dataset

Throws:
Exception

testAttributeLabel

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

Title of the Dataset

Throws:
Exception

testAttributeComment

public void testAttributeComment()
                          throws Exception
A Test of the attribute comment

The abstract.

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

testOperationAddDataFile

public void testOperationAddDataFile()
                              throws Exception
Deprecated. support for old-style NSD datafiles has been dropped, use Datafile.AddDatafile(..) instead.

A Test of the operation AddDataFile(String fileID,File dkm,File ind,File nsf) Upload one of the datafiles of this dataset.

There can be one or more datafiles associated with each dataset.

Each datafile has an unique ID indicated in the ID attribute of the fileDscr/fileName element.

The datafile should be in NSDSTAT format and it's actually composed by three separate files with suffixes: dkm, ind and nsf.

Throws:
Exception

testOperationDelete

public void testOperationDelete()
                         throws Exception
A Test of the operation Delete() Delete the dataset from the server.

Throws:
Exception

testOperationGetDDI

public void testOperationGetDDI()
                         throws Exception
A Test of the operation GetDDI()

Get the full DDI metadata for this dataset.

Throws:
Exception

testOperationGetDDISkeleton

public void testOperationGetDDISkeleton()
                                 throws Exception
A Test of the operation GetDDISkeleton() Get a possibly incomplete DDI document.

Some or all of the variable elements might have been reduced to their skeleton form.

Throws:
Exception

testOperationGetDDIVariable

public void testOperationGetDDIVariable()
                                 throws Exception
Deprecated. Replaced by Study2.RangeQuery("GET Variable WHERE Variable.id == 'VID'").

A Test of the operation GetDDIVariable(Integer varID) Get the full XML code of the variable.

Throws:
Exception

testOperationFindDDIVariables

public void testOperationFindDDIVariables()
                                   throws Exception
Deprecated. Replaced by Study2.RangeQuery("GET Variable WHERE Variable.* CONTAINS 'phrase'").

A Test of the operation FindDDIVariables(String keyword) Get a list of the IDs of the DDI variables that contain the specified keyword.
For example: 11 12 13

Throws:
Exception

testOperationSubset

public void testOperationSubset()
                         throws Exception
Deprecated. Replaced by Study2 Download

A Test of the operation Subset(String cases,String condition,String format,String keys,String mergeVariables) Get a subset of this dataset.

Returns the URL of a zipped file containing the required datafile(s).

Throws:
Exception

testOperationDescriptive

public void testOperationDescriptive()
                              throws Exception
Deprecated. Replaced by Study2 Descriptive

A Test of the operation Descriptive(String condition,String keys,String mergeVariables,String polygon,String variables,String weights) The list of weighting variables.
For example: v1 v3. Calculate descriptive statistics.

Returns the result of the operation in a proprietary NSDSTAT format.

Throws:
Exception

testOperationDatalist

public void testOperationDatalist()
                           throws Exception
Deprecated. Replaced by Study2 Datalist

A Test of the operation Datalist(String condition,String keys,String mergeVariables,String unique,String variables,String weights) The list of weighting variables.
For example: v1 v3. Calculate Datalist statistics.

Returns the result of the operation in a proprietary NSDSTAT format.

Throws:
Exception

testOperationFrequency

public void testOperationFrequency()
                            throws Exception
Deprecated. Replaced by Study2 Frequency

A Test of the operation Frequency(String condition,String keys,String mergeVariables,String variables,String weights) The list of weighting variables.
For example: v1 v3. Frequencies.

Returns the result of the operation in a proprietary NSDSTAT format.

Throws:
Exception

testOperationGFrequency

public void testOperationGFrequency()
                             throws Exception
Deprecated. Replaced by Study2 GFrequency

A Test of the operation GFrequency(String condition,String keys,String mergeVariables,String variables,String weights) The list of weighting variables.
For example: v1 v3. Gfrequencies (?).

Returns the result of the operation in a proprietary NSDSTAT format.

Throws:
Exception

testOperationBreakdown

public void testOperationBreakdown()
                            throws Exception
Deprecated. Replaced by Study2 Breakdown

A Test of the operation Breakdown(String condition,String dependent,String independent,String keys,String mergeVariables,String weights) The list of weighting variables.
For example: v1 v3. Breakdown.

Returns the result of the operation in a proprietary NSDSTAT format.

Throws:
Exception

testOperationMultipleRegression

public void testOperationMultipleRegression()
                                     throws Exception
Deprecated. Replaced by Study2 MultipleRegression

A Test of the operation MultipleRegression(String condition,String dependent,String independent,String keys,String mergeVariables,String method,String missing,String weights,Double pin,Double pout) The list of weighting variables.
For example: v1 v3. MultipleRegression.

Returns the result of the operation in a proprietary NSDSTAT format.

Throws:
Exception

testOperationTabulation

public void testOperationTabulation()
                             throws Exception
Deprecated. Replaced by Study2 Tabulation

A Test of the operation Tabulation(String condition,String keys,String mergeVariables,String variables,String weights) The list of weighting variables.
For example: v1 v3. A cross tabulation on this dataset.

Returns the result of the operation in a proprietary NSDSTAT format.

Throws:
Exception

testOperationXBreak

public void testOperationXBreak()
                         throws Exception
Deprecated. Replaced by Study2 XBreak

A Test of the operation XBreak(String condition,String keys,String mergeVariables,String variables,String weights) The list of weighting variables.
For example: v1 v3. An xbreak (?) on this dataset.

Returns the result of the operation in a proprietary NSDSTAT format.

Throws:
Exception

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved