|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
nesstar.test.NesstarTestCase
nesstar.api.faster.CatalogTestBase
public class CatalogTestBase
A Base Test class for Catalog.java Automatically generated from ARGO/UML
| Field Summary | |
|---|---|
static CatalogHome |
__home
|
| 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 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 |
|---|
public static CatalogHome __home
| Constructor Detail |
|---|
public CatalogTestBase(String testName)
testName - | Method Detail |
|---|
public static CatalogHome getHome()
throws Exception
Exception
public static junit.framework.Test getProperiesTest()
throws Exception
Exception
public static junit.framework.Test getAttributesTest()
throws Exception
Exception
public static junit.framework.Test getAssociationTest()
throws Exception
Exception
public static junit.framework.Test getMethodsTest()
throws Exception
Exceptionpublic static void main(String[] args)
args - The command line argumentspublic static junit.framework.Test suite()
public void testAttributeChildren()
throws Exception
Represents the set of object pointed to by a catalog
Exception
public void testAttributeComment()
throws Exception
Exception
public void testAttributeLabel()
throws Exception
Exception
public void testAttributeCreationDate()
throws Exception
Exception
public void testHomeOperationFindByKey()
throws Exception
Exception
public void testHomeOperationFindAll()
throws Exception
Exception
public void testOperationAddChild()
throws Exception
Add a child in the catalog tree
Exception
public void testOperationAddChildAt()
throws Exception
Add a child in the catalog tree at a given position
Exception
public void testHomeOperationCreate()
throws Exception
Home method
Create a catalog
Exception
public void testOperationRangeQuery()
throws Exception
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 */
GET Variable WHERE Study.abstractText CONTAINS 'smoking' AND Variable.label CONTAINS 'cancer'
GET Study WHERE Study.distributionDate >= '1989/02/10'
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'
Exception
public void testOperationRemoveChild()
throws Exception
Remove a child from the current catalog.
Exception
public void testOperationRemoveChildAt()
throws Exception
Remove a child from the current catalog.
Exception
public void testOperationRemove()
throws Exception
Remove the catalog with all the links to it
Exception
public void testOperationPathsTo()
throws Exception
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.
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||