|
|||||||||
| 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
public class StatementTestBase
A Base Test class for Statement.java Automatically generated from ARGO/UML
| Field Summary | |
|---|---|
static StatementHome |
__home
|
| Constructor Summary | |
|---|---|
StatementTestBase(String testName)
Constructor for the StatementTestBase object |
|
| Method Summary | |
|---|---|
static junit.framework.Test |
getAssociationTest()
|
static junit.framework.Test |
getAttributesTest()
|
static StatementHome |
getHome()
|
static junit.framework.Test |
getMethodsTest()
|
static junit.framework.Test |
getProperiesTest()
|
static void |
main(String[] args)
The main program for the StatementTestBase class |
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 object |
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 |
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,String label,String comment) |
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 |
testHomeOperationSetStringProperty()
A Test of the Home operation setStringProperty(RDFObject subject,URL property,String value,String label,String comment) |
void |
testOperationRemove()
A Test of the operation Remove() |
| 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 StatementHome __home
| Constructor Detail |
|---|
public StatementTestBase(String testName)
testName - | Method Detail |
|---|
public static StatementHome 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 testAttributeSubject()
throws Exception
Represents the subject of the statement (e.g. a parent catalog)
Exception
public void testAttributeObject()
throws Exception
Represents the object of the statement (e.g. a child catalog)
Exception
public void testAttributePredicate()
throws Exception
Represents the url of the rdf property between subject and object (e.g. http://www.nesstar.org/rdf/faster/Catalog#children)
Exception
public void testAttributeObjectAsString()
throws Exception
Represents the object of the statement as a String
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 testHomeOperationFindByObject()
throws Exception
Exception
public void testHomeOperationSetProperty()
throws Exception
Set 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.
Exception
public void testHomeOperationSetStringProperty()
throws Exception
Set 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.
Exception
public void testHomeOperationGetProperty()
throws Exception
A convenience method that returns getProperties.get(0) if there are properties, null otherwise.
Exception
public void testHomeOperationFind()
throws Exception
Exception
public void testHomeOperationAddProperty()
throws Exception
Add an occurrance of the specified property on 'subject' with value equal to 'object'.
Exception
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).
Exception
public void testHomeOperationAddStringProperty()
throws Exception
Add an occurrance of the specified property on 'subject' with value equal to 'object'.
Exception
public void testOperationRemove()
throws Exception
delete the statement
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||