nesstar.api.common
Class ServerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by nesstar.test.NesstarTestCase
              extended by nesstar.api.common.ServerTestBase
                  extended by nesstar.api.common.ServerTest
All Implemented Interfaces:
junit.framework.Test

public class ServerTest
extends ServerTestBase

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

Created:
29 July 2002

Field Summary
static int ORPHAN_CATALOGS_LOWER
           
static int ORPHAN_CATALOGS_UPPER
           
static int ORPHAN_STUDIES_LOWER
           
static int ORPHAN_STUDIES_UPPER
           
 
Fields inherited from class nesstar.api.common.ServerTestBase
__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
ServerTest(String testName)
          Constructor for the ServerTest object
 
Method Summary
 void checkPathsTo(String path, RDFObject to)
           
 void checkPathsTo(String path, RDFObject to, int numPaths)
           
static void main(String[] args)
          The main program for the ServerTest class
static junit.framework.Test suite()
          Return the suite of all tests of this class
 void testAssociationAcuCatalog()
          A Test of the attribute ACUCatalog of type Catalog
 void testAssociationStatEngine()
          A Test of the attribute statEngine of type NSDStatEngine
 void testAttributeComment()
          A test on Comment
 void testAttributeCreationDate()
          A test on CreationDate
 void testAttributeHomes()
          A Test of the attribute noted as:
 void testAttributeLabel()
          A test on Label
 void testAttributeSecurePort()
          A Test of the attribute noted as:
 void testClearCatalogs0()
           
 void testClearCatalogs1()
           
 void testHomeOperationFindByKey()
          A test on the home operation findByKey(String id)
 void testIpPattern()
           
 void testModifyServerProperty()
           
 void testOperationGetHome()
          A Test of the operation GetHome()
 void testOperationGetOrphans()
          A Test of the operation GetOrphans(Integer classURL)
 void testOperationGetOrphans2()
           
 void testOperationImport()
          A Test of the operation Import()
 void testOperationPathsTo()
          A Test of the operation PathsTo(RDFObject to)
 void testOperationXSLTransform()
          A Test of the operation XSLTransform(String file,String MIMEType,String parameters,String xslFile)
 void testReorderCatalogs()
           
 
Methods inherited from class nesstar.api.common.ServerTestBase
getAssociationTest, getAttributesTest, getHome, getMethodsTest, getProperiesTest, testHomeOperationFindAll
 
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

ORPHAN_CATALOGS_LOWER

public static int ORPHAN_CATALOGS_LOWER

ORPHAN_CATALOGS_UPPER

public static int ORPHAN_CATALOGS_UPPER

ORPHAN_STUDIES_LOWER

public static int ORPHAN_STUDIES_LOWER

ORPHAN_STUDIES_UPPER

public static int ORPHAN_STUDIES_UPPER
Constructor Detail

ServerTest

public ServerTest(String testName)
           throws Exception
Constructor for the ServerTest object

Parameters:
testName -
Throws:
Exception
Method Detail

main

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

Parameters:
args - The command line arguments

suite

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

Returns:
The test suite

testAttributeHomes

public void testAttributeHomes()
                        throws Exception
A Test of the attribute noted as:

Overrides:
testAttributeHomes in class ServerTestBase
Throws:
Exception

testAttributeSecurePort

public void testAttributeSecurePort()
                             throws Exception
A Test of the attribute noted as:

Overrides:
testAttributeSecurePort in class ServerTestBase
Throws:
Exception

testOperationGetHome

public void testOperationGetHome()
                          throws Exception
A Test of the operation GetHome()

Overrides:
testOperationGetHome in class ServerTestBase
Throws:
Exception

testHomeOperationFindByKey

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

Overrides:
testHomeOperationFindByKey in class ServerTestBase
Throws:
Exception

testOperationImport

public void testOperationImport()
                         throws Exception
A Test of the operation Import()

Overrides:
testOperationImport in class ServerTestBase
Throws:
Exception

testClearCatalogs0

public void testClearCatalogs0()
                        throws Exception
Throws:
Exception

testClearCatalogs1

public void testClearCatalogs1()
                        throws Exception
Throws:
Exception

testReorderCatalogs

public void testReorderCatalogs()
                         throws Exception
Throws:
Exception

testModifyServerProperty

public void testModifyServerProperty()
                              throws Exception
Throws:
Exception

testAttributeLabel

public void testAttributeLabel()
                        throws Exception
A test on Label

Overrides:
testAttributeLabel in class ServerTestBase
Throws:
Exception

testAttributeComment

public void testAttributeComment()
                          throws Exception
A test on Comment

Overrides:
testAttributeComment in class ServerTestBase
Throws:
Exception

testOperationXSLTransform

public void testOperationXSLTransform()
                               throws Exception
Description copied from class: ServerTestBase
A Test of the operation XSLTransform(String file,String MIMEType,String parameters,String xslFile)

Does ...

Overrides:
testOperationXSLTransform in class ServerTestBase
Throws:
Exception

testOperationGetOrphans

public void testOperationGetOrphans()
                             throws Exception
A Test of the operation GetOrphans(Integer classURL)

Overrides:
testOperationGetOrphans in class ServerTestBase
Throws:
Exception

testOperationGetOrphans2

public void testOperationGetOrphans2()
                              throws Exception
Throws:
Exception

checkPathsTo

public void checkPathsTo(String path,
                         RDFObject to,
                         int numPaths)
                  throws Exception
Throws:
Exception

checkPathsTo

public void checkPathsTo(String path,
                         RDFObject to)
                  throws Exception
Throws:
Exception

testOperationPathsTo

public void testOperationPathsTo()
                          throws Exception
Description copied from class: ServerTestBase
A Test of the operation PathsTo(RDFObject to)

Return a list of paths that lead from the server to the 'to' object. A path is a sequence of property traversals. For example catalogs[1].children[2].children[3] is a path that leads from the root down to the first catalog and then to the third child of the second catalog's subcatalog.

Overrides:
testOperationPathsTo in class ServerTestBase
Throws:
Exception

testIpPattern

public void testIpPattern()
                   throws Exception
Throws:
Exception

testAssociationStatEngine

public void testAssociationStatEngine()
                               throws Exception
A Test of the attribute statEngine of type NSDStatEngine

Overrides:
testAssociationStatEngine in class ServerTestBase
Throws:
Exception

testAssociationAcuCatalog

public void testAssociationAcuCatalog()
                               throws Exception
A Test of the attribute ACUCatalog of type Catalog

Overrides:
testAssociationAcuCatalog in class ServerTestBase
Throws:
Exception

testAttributeCreationDate

public void testAttributeCreationDate()
                               throws Exception
A test on CreationDate

Overrides:
testAttributeCreationDate in class ServerTestBase
Throws:
Exception

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved