|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.opencyc.api.UnitTest
Provides a unit test suite for the org.opencyc.api package
Copyright 2001 Cycorp, Inc., license is open source GNU LGPL.
THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Field Summary | |
static int |
agentCommunity
|
static int |
connectionMode
|
static java.lang.String |
cycProxyAgentName
|
static int |
LOCAL_CYC_CONNECTION
Indicates the use of a local CycConnection object to connect with a Cyc server. |
static java.lang.String |
myAgentName
|
static boolean |
performOnlyBinaryApiModeTests
Indicates whether unit tests should be performed only in binary api mode. |
static int |
REMOTE_CYC_CONNECTION
Indicates the use of a local RemoteCycConnection object to connect with a remote CycConnection object via a CoABS grid or FIPA-OS agent community. |
Constructor Summary | |
UnitTest(java.lang.String name)
Creates a UnitTest object with the given name. |
Method Summary | |
protected void |
doTestCycAccess1(CycAccess cycAccess)
Tests a portion of the CycAccess methods using the given api connection. |
protected void |
doTestCycAccess2(CycAccess cycAccess)
Tests a portion of the CycAccess methods using the given api connection. |
protected void |
doTestCycAccess3(CycAccess cycAccess)
Tests a portion of the CycAccess methods using the given api connection. |
protected void |
doTestCycAccess4(CycAccess cycAccess)
Tests a portion of the CycAccess methods using the given api connection. |
protected void |
doTestCycAccess5(CycAccess cycAccess)
Tests a portion of the CycAccess methods using the given api connection. |
protected void |
doTestCycAccess6(CycAccess cycAccess)
Tests a portion of the CycAccess methods using the given api connection. |
protected void |
doTestCycAccess7(CycAccess cycAccess)
Tests a portion of the CycAccess methods using the given api connection. |
protected void |
doTestCycAccess8(CycAccess cycAccess)
Tests a portion of the CycAccess methods using the given api connection. |
static void |
main(java.lang.String[] args)
Main method in case tracing is prefered over running JUnit. |
static void |
nofailAssertEquals(java.lang.Object expectedObject,
java.lang.Object testObject)
Compares expected object to the test object without causing a unit test failure, reporting if the parameters are not equal. |
static void |
nofailAssertTrue(boolean testExpression,
java.lang.String message)
Reports if the given boolen expression is false, without causing a unit test failure. |
static junit.framework.Test |
suite()
Returns the test suite. |
void |
testAsciiCycAccess1()
Tests a portion of the CycAccess methods using the ascii api connection. |
void |
testAsciiCycAccess2()
Tests a portion of the CycAccess methods using the ascii api connection. |
void |
testAsciiCycAccess3()
Tests a portion of the CycAccess methods using the ascii api connection. |
void |
testAsciiCycAccess4()
Tests a portion of the CycAccess methods using the ascii api connection. |
void |
testAsciiCycAccess5()
Tests a portion of the CycAccess methods using the ascii api connection. |
void |
testAsciiCycAccess6()
Tests a portion of the CycAccess methods using the ascii api connection. |
void |
testAsciiCycAccess7()
Tests a portion of the CycAccess methods using the ascii api connection. |
void |
testAsciiCycAccess8()
Tests a portion of the CycAccess methods using the ascii api connection. |
void |
testAsciiCycConnection()
Tests the fundamental aspects of the ascii api connection to the OpenCyc server. |
void |
testBinaryCycAccess1()
Tests a portion of the CycAccess methods using the binary api connection. |
void |
testBinaryCycAccess2()
Tests a portion of the CycAccess methods using the binary api connection. |
void |
testBinaryCycAccess3()
Tests a portion of the CycAccess methods using the binary api connection. |
void |
testBinaryCycAccess4()
Tests a portion of the CycAccess methods using the binary api connection. |
void |
testBinaryCycAccess5()
Tests a portion of the CycAccess methods using the binary api connection. |
void |
testBinaryCycAccess6()
Tests a portion of the CycAccess methods using the binary api connection. |
void |
testBinaryCycAccess7()
Tests a portion of the CycAccess methods using the binary api connection. |
void |
testBinaryCycAccess8()
Tests a portion of the CycAccess methods using the binary api connection. |
void |
testBinaryCycConnection1()
Tests the fundamental aspects of the binary (cfasl) api connection to the OpenCyc server. |
void |
testBinaryCycConnection2()
Tests the fundamental aspects of the binary (cfasl) api connection to the OpenCyc server. |
void |
testMakeValidConstantName()
Tests the makeValidConstantName method. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String myAgentName
public static final java.lang.String cycProxyAgentName
public static final int agentCommunity
public static final int LOCAL_CYC_CONNECTION
public static final int REMOTE_CYC_CONNECTION
public static int connectionMode
public static boolean performOnlyBinaryApiModeTests
Constructor Detail |
public UnitTest(java.lang.String name)
Method Detail |
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
public static void nofailAssertEquals(java.lang.Object expectedObject, java.lang.Object testObject)
expectedObject
- the expected objecttestObject
- the test objectpublic static void nofailAssertTrue(boolean testExpression, java.lang.String message)
expression
- the boolean expression expected to be truepublic void testMakeValidConstantName()
public void testAsciiCycConnection()
public void testBinaryCycConnection1()
public void testBinaryCycConnection2()
public void testAsciiCycAccess1()
public void testBinaryCycAccess1()
protected void doTestCycAccess1(CycAccess cycAccess)
public void testAsciiCycAccess2()
public void testBinaryCycAccess2()
protected void doTestCycAccess2(CycAccess cycAccess)
public void testAsciiCycAccess3()
public void testBinaryCycAccess3()
protected void doTestCycAccess3(CycAccess cycAccess)
public void testAsciiCycAccess4()
public void testBinaryCycAccess4()
protected void doTestCycAccess4(CycAccess cycAccess)
public void testAsciiCycAccess5()
public void testBinaryCycAccess5()
protected void doTestCycAccess5(CycAccess cycAccess)
public void testAsciiCycAccess6()
public void testBinaryCycAccess6()
protected void doTestCycAccess6(CycAccess cycAccess)
public void testAsciiCycAccess7()
public void testBinaryCycAccess7()
protected void doTestCycAccess7(CycAccess cycAccess)
public void testAsciiCycAccess8()
public void testBinaryCycAccess8()
protected void doTestCycAccess8(CycAccess cycAccess)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |