nesstar.api.faster
Class CatalogTestBase

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

public class CatalogTestBase
extends NesstarTestCase

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


Field Summary
static CatalogHome __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
CatalogTestBase(String testName)
          Constructor for the CatalogTestBase object
 
Method Summary
static junit.framework.Test getAssociationTest()
           
static junit.framework.Test getAttributesTest()
           
static CatalogHome getHome()
           
static junit.framework.Test getMethodsTest()
           
static junit.framework.Test getProperiesTest()
           
static void main(String[] args)
          The main program for the CatalogTestBase class
static junit.framework.Test suite()
          Return the suite of all tests of this class
 void testAttributeChildren()
          A Test of the attribute children
 void testAttributeComment()
          A test on Comment
 void testAttributeCreationDate()
          A test on CreationDate
 void testAttributeLabel()
          A test on Label
 void testHomeOperationCreate()
          A Test of the Home operation create(String id)
 void testHomeOperationFindAll()
          A test on the home operation findAll(String id)
 void testHomeOperationFindByKey()
          A test on the home operation findByKey(String id)
 void testOperationAddChild()
          A Test of the operation AddChild(RDFObject child)
 void testOperationAddChildAt()
          A Test of the operation AddChildAt(RDFObject child,Integer position)
 void testOperationPathsTo()
          A Test of the operation PathsTo(RDFObject to)
 void testOperationRangeQuery()
          A Test of the operation RangeQuery(String query,Integer startFrom,Integer maxHits,Boolean withPaths) A general query API.
 void testOperationRemove()
          A Test of the operation Remove()
 void testOperationRemoveChild()
          A Test of the operation RemoveChild(RDFObject childURL)
 void testOperationRemoveChildAt()
          A Test of the operation RemoveChildAt(Integer childIndex)
 
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 CatalogHome __home
Constructor Detail

CatalogTestBase

public CatalogTestBase(String testName)
Constructor for the CatalogTestBase object

Parameters:
testName -
Method Detail

getHome

public static CatalogHome getHome()
                           throws Exception
Throws:
Exception

getProperiesTest

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

getAttributesTest

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

getAssociationTest

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

getMethodsTest

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

main

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

Parameters:
args - The command line arguments

suite

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


testAttributeChildren

public void testAttributeChildren()
                           throws Exception
A Test of the attribute children

Represents the set of object pointed to by a catalog

Throws:
Exception

testAttributeComment

public void testAttributeComment()
                          throws Exception
A test on Comment

Throws:
Exception

testAttributeLabel

public void testAttributeLabel()
                        throws Exception
A test on Label

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

testOperationAddChild

public void testOperationAddChild()
                           throws Exception
A Test of the operation AddChild(RDFObject child)

Add a child in the catalog tree

Throws:
Exception

testOperationAddChildAt

public void testOperationAddChildAt()
                             throws Exception
A Test of the operation AddChildAt(RDFObject child,Integer position)

Add a child in the catalog tree at a given position

Throws:
Exception

testHomeOperationCreate

public void testHomeOperationCreate()
                             throws Exception
A Test of the Home operation create(String id)

Home method

Create a catalog

Throws:
Exception

testOperationRangeQuery

public void testOperationRangeQuery()
                             throws Exception
A Test of the operation RangeQuery(String query,Integer startFrom,Integer maxHits,Boolean withPaths) A general query API.

The query syntax has to be in the following format:
   
query ::= GET result_object where_expr order_clause
where_expr ::= WHERE expr
| empty
result_object ::= identifier
order_clause ::= ORDER BY field_list
| empty
field_list ::= field_list ',' field
| field
field ::= ASCENDING property
| DESCENDING property
| property
expr ::= expr OR term
| expr XOR term
| term
term ::= term AND factor
| factor
factor ::= primary
| sub_expr
| NOT primary
sub_expr ::= '(' expr ')'
primary ::= property relation literal
| property relation property
| property FINDS near_expr
| property IN string_list
| property IS NULL
property ::= domain_object '.' identifier
| domain_object '.' '*'
domain_object ::= identifier
near_expr ::= near_expr near_operator literal
| first_near_expr
first_near_expr ::= literal near_operator literal
near_operator ::= NEAR
| NEAR word_distance
word_distance ::= '(' number ')'
string_list ::= string_list ',' string
| string
literal ::= string
| number
| date
relation ::= CONTAINS
| CONTAINSLEADING
| STARTSWITH
| ENDSWITH
| '>'
| '>='
| '<'
| '<='
| '=='
| '!='
| LIKE
empty ::= /* nothing */


The date literal must be in one of the formats "yyyy/mm/dd" or "yyyy.mm.dd".
Partial date literals are supported in the formats "yyyy/mm" or "yyyy.mm" or "yyyy".
The string or date literals must be specified in single or double quotes.

Examples:
GET Variable WHERE Study.abstractText CONTAINS 'smoking' AND Variable.label CONTAINS 'cancer'
GET Study WHERE Study.distributionDate >= '1989/02/10'


A wildcard field list is now supported. It can only be specified on the left side of a relational operand,
and it will automatically ignore fields whose types are incompatible with the search literal.

Examples:
Find all studies where at least one of its text or date fields contains '1987'
GET Study WHERE Study.* CONTAINS '1987'
Find all studies which have variables with at least one of its text fields containing the word 'smoking'
GET Study WHERE Variable.* CONTAINS 'smoking'

Throws:
Exception

testOperationRemoveChild

public void testOperationRemoveChild()
                              throws Exception
A Test of the operation RemoveChild(RDFObject childURL)

Remove a child from the current catalog.

Throws:
Exception

testOperationRemoveChildAt

public void testOperationRemoveChildAt()
                                throws Exception
A Test of the operation RemoveChildAt(Integer childIndex)

Remove a child from the current catalog.

Throws:
Exception

testOperationRemove

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

Remove the catalog with all the links to it

Throws:
Exception

testOperationPathsTo

public void testOperationPathsTo()
                          throws Exception
A Test of the operation PathsTo(RDFObject to)

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

Throws:
Exception

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved