|
|||||||||
| 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.common.StatementTestBase
nesstar.api.common.StatementTest
public class StatementTest
A Test class for Statement.java Automatically generated from ARGO/UML
| Field Summary |
|---|
| Fields inherited from class nesstar.api.common.StatementTestBase |
|---|
__home |
| Constructor Summary | |
|---|---|
StatementTest(String testName)
Constructor for the StatementTest object |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
The main program for the StatementTest class |
static String |
ObjURL_getID(String url)
|
static String |
ObjURL_getShortJNDI(String url)
Extract the short JNDI type from an object URL. |
static junit.framework.Test |
suite()
Return the suite of all tests of this class |
void |
testAttributeComment()
A test on Comment |
void |
testAttributeCreationDate()
A test on CreationDate |
void |
testAttributeLabel()
A test on Label |
void |
testAttributeObject()
A Test of the attribute obj |
void |
testAttributeObjectAsString()
A Test of the attribute objectAsString |
void |
testAttributePredicate()
A Test of the attribute predicate |
void |
testAttributeSubject()
A Test of the attribute subject |
void |
testGetSetMultiObjectProperty()
|
void |
testGetSetPropertyOldServer1()
The API should fail when trying to set/retrieve properties from old servers * |
void |
testGetSetPropertyOldServer2()
The API should fail when trying to set/retrieve properties from old servers * |
void |
testHomeOperationAddProperty()
A Test of the Home operation addProperty(RDFObject subject,URL property,RDFObject object,String label,String comment) |
void |
testHomeOperationAddStringProperty()
A Test of the Home operation addStringProperty(RDFObject subject,URL property,String object) |
void |
testHomeOperationFind()
A Test of the Home operation find(String subjectType,String subjectId,String objectType,String objectId,String predicateType,Integer predicateIndex) |
void |
testHomeOperationFindAll()
A test on the home operation findAll(String id) |
void |
testHomeOperationFindByKey()
A test on the home operation findByKey(String id) |
void |
testHomeOperationFindByObject()
A Test of the Home operation findByObject(String objectType, String objectid) |
void |
testHomeOperationGetProperties()
A Test of the Home operation getProperties(RDFObject subject,URL property) |
void |
testHomeOperationGetProperty()
A Test of the Home operation getProperty(RDFObject subject,URL property) |
void |
testHomeOperationSetProperty()
A Test of the Home operation setProperty(RDFObject subject,URL property,RDFObject object,String label,String comment) |
void |
testHomeOperationSetPropertyTwice()
|
void |
testHomeOperationSetStringProperty()
A Test of the Home operation setStringProperty(RDFObject subject,URL property,String value,String label,String comment) |
void |
testNumLinks()
|
void |
testOperationRemove()
A Test of the operation Delete() |
void |
testOperationRemoveByAll()
Another Test of the operation Delete() |
void |
testOrphansObjects()
|
| Methods inherited from class nesstar.api.common.StatementTestBase |
|---|
getAssociationTest, getAttributesTest, getHome, getMethodsTest, getProperiesTest |
| 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 |
| Constructor Detail |
|---|
public StatementTest(String testName)
testName - | Method Detail |
|---|
public static void main(String[] args)
args - The command line argumentspublic static junit.framework.Test suite()
public void testAttributeSubject()
throws Exception
testAttributeSubject in class StatementTestBaseException
public void testAttributeObject()
throws Exception
testAttributeObject in class StatementTestBaseException
public void testAttributePredicate()
throws Exception
testAttributePredicate in class StatementTestBaseException
public void testAttributeComment()
throws Exception
testAttributeComment in class StatementTestBaseException
public void testAttributeLabel()
throws Exception
testAttributeLabel in class StatementTestBaseException
public void testHomeOperationFindByKey()
throws Exception
testHomeOperationFindByKey in class StatementTestBaseException
public void testHomeOperationFindAll()
throws Exception
testHomeOperationFindAll in class StatementTestBaseException
public void testHomeOperationFind()
throws Exception
StatementTestBase
testHomeOperationFind in class StatementTestBaseException
public void testHomeOperationFindByObject()
throws Exception
testHomeOperationFindByObject in class StatementTestBaseExceptionpublic static String ObjURL_getShortJNDI(String url)
url - The object URL, both the long (for example "http://www.myserver.org/obj/fStudy/2568") and the short
form (for example "fStudy/2568") are supported.
public static String ObjURL_getID(String url)
the - URL of an object or the ID of an object
public void testNumLinks()
throws Exception
Exception
public void testOrphansObjects()
throws Exception
Exception
public void testHomeOperationAddProperty()
throws Exception
StatementTestBaseAdd an occurrance of the specified property on 'subject' with value equal to 'object'.
testHomeOperationAddProperty in class StatementTestBaseException
public void testHomeOperationAddStringProperty()
throws Exception
Add an occurrance of the specified property on 'subject' with value equal to 'object'.
testHomeOperationAddStringProperty in class StatementTestBaseException
public void testHomeOperationSetProperty()
throws Exception
StatementTestBaseSet the specified property on 'subject' with value equal to 'object'.
If the same user had previously set the same property to one or more values all previous values are removed before the new value is set.
testHomeOperationSetProperty in class StatementTestBaseException
public void testHomeOperationSetPropertyTwice()
throws Exception
Exception
public void testGetSetMultiObjectProperty()
throws Exception
Exception
public void testHomeOperationGetProperty()
throws Exception
StatementTestBaseA convenience method that returns getProperties.get(0) if there are properties, null otherwise.
testHomeOperationGetProperty in class StatementTestBaseException
public void testHomeOperationSetStringProperty()
throws Exception
StatementTestBaseSet the specified property on 'subject' with value equal to 'object'.
If the same user had previously set the same property to one or more values all previous values are removed before the new value is set.
testHomeOperationSetStringProperty in class StatementTestBaseException
public void testGetSetPropertyOldServer1()
throws Exception
Exception
public void testGetSetPropertyOldServer2()
throws Exception
Exception
public void testOperationRemove()
throws Exception
testOperationRemove in class StatementTestBaseException
public void testOperationRemoveByAll()
throws Exception
Exception
public void testAttributeCreationDate()
throws Exception
testAttributeCreationDate in class StatementTestBaseException
public void testAttributeObjectAsString()
throws Exception
Represents the object of the statement as a String
testAttributeObjectAsString in class StatementTestBaseException
public void testHomeOperationGetProperties()
throws Exception
Returns a, possibly empty, collection of statements that state the given property.
The server might return more or less of the values assigned to the property by the current user depending on the server setup.
In particular the server might send additional statements created by another user in the same user group or by the server administrator.
The server should return the statements in order with the more specific values of the property (normally the ones set bu the user himsefl) preceding the less specific ones (e.g. a server default).
testHomeOperationGetProperties in class StatementTestBaseException
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||