Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.opencyc.api
Class UnitTest

    java.lang.Object
      |
      +--junit.framework.Assert
            |
            +--junit.framework.TestCase
                  |
                  +--org.opencyc.api.UnitTest

All Implemented Interfaces:
  junit.framework.Test

public class UnitTest
extends junit.framework.TestCase

Provides a unit test suite for the `org.opencyc.api` package

Author:
  Stephen L. Reed

  Copyright 2001 Cycorp, Inc., license is open source GNU LGPL.

  the license

  www.opencyc.org

  OpenCyc at SourceForge

  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.

Inner Class Summary
`protected class` | `UnitTest.ApiRequestor` Class ApiRequestor.

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` | `doTestCycAccess10(CycAccess cycAccess)` Tests a portion of the CycAccess methods using the given api connection.
`protected void` | `doTestCycAccess11(CycAccess cycAccess)` Tests a portion of the CycAccess methods using the given api connection.
`protected void` | `doTestCycAccess12(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.
`protected void` | `doTestCycAccess9(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` | `testAsciiCycAccess10()` 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` | `testAsciiCycAccess9()` 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` | `testBinaryCycAccess10()` Tests a portion of the CycAccess methods using the binary api connection.
`void` | `testBinaryCycAccess11()` Tests a portion of the CycAccess methods using the binary api connection.
`void` | `testBinaryCycAccess12()` Tests a portion of the CycAccess methods using the binary api connection.
`void` | `testBinaryCycAccess13()` 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` | `testBinaryCycAccess9()` 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

### myAgentName

    public static final java.lang.String myAgentName

### cycProxyAgentName

    public static final java.lang.String cycProxyAgentName

### agentCommunity

    public static final int agentCommunity

### LOCAL_CYC_CONNECTION

    public static final int LOCAL_CYC_CONNECTION

  Indicates the use of a local CycConnection object to connect with a Cyc server.

### REMOTE_CYC_CONNECTION

    public static final 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. The remote CycConnection has a connection with a Cyc server.

### connectionMode

    public static int connectionMode

### performOnlyBinaryApiModeTests

    public static boolean performOnlyBinaryApiModeTests

  Indicates whether unit tests should be performed only in binary api mode.

Constructor Detail

### UnitTest

    public UnitTest(java.lang.String name)

  Creates a `UnitTest` object with the given name.

Method Detail

### suite

    public static junit.framework.Test suite()

  Returns the test suite.
  Returns:
    the test suite

### main

    public static void main(java.lang.String[] args)

  Main method in case tracing is prefered over running JUnit.

### nofailAssertEquals

    public 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.
  Parameters:
    `expectedObject` - the expected object
    `testObject` - the test object

### nofailAssertTrue

    public static void nofailAssertTrue(boolean testExpression,
                                        java.lang.String message)

  Reports if the given boolen expression is false, without causing a unit test failure.
  Parameters:
    `expression` - the boolean expression expected to be true

### testMakeValidConstantName

    public void testMakeValidConstantName()

  Tests the makeValidConstantName method.

### testAsciiCycConnection

    public void testAsciiCycConnection()

  Tests the fundamental aspects of the ascii api connection to the OpenCyc server.

### testBinaryCycConnection1

    public void testBinaryCycConnection1()

  Tests the fundamental aspects of the binary (cfasl) api connection to the OpenCyc server.

### testBinaryCycConnection2

    public void testBinaryCycConnection2()

  Tests the fundamental aspects of the binary (cfasl) api connection to the OpenCyc server. CycAccess is set to null;

### testAsciiCycAccess1

    public void testAsciiCycAccess1()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess1

    public void testBinaryCycAccess1()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess1

    protected void doTestCycAccess1(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testAsciiCycAccess2

    public void testAsciiCycAccess2()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess2

    public void testBinaryCycAccess2()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess2

    protected void doTestCycAccess2(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testAsciiCycAccess3

    public void testAsciiCycAccess3()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess3

    public void testBinaryCycAccess3()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess3

    protected void doTestCycAccess3(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testAsciiCycAccess4

    public void testAsciiCycAccess4()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess4

    public void testBinaryCycAccess4()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess4

    protected void doTestCycAccess4(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testAsciiCycAccess5

    public void testAsciiCycAccess5()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess5

    public void testBinaryCycAccess5()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess5

    protected void doTestCycAccess5(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testAsciiCycAccess6

    public void testAsciiCycAccess6()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess6

    public void testBinaryCycAccess6()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess6

    protected void doTestCycAccess6(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testAsciiCycAccess7

    public void testAsciiCycAccess7()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess7

    public void testBinaryCycAccess7()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess7

    protected void doTestCycAccess7(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testAsciiCycAccess8

    public void testAsciiCycAccess8()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess8

    public void testBinaryCycAccess8()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess8

    protected void doTestCycAccess8(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testAsciiCycAccess9

    public void testAsciiCycAccess9()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess9

    public void testBinaryCycAccess9()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess9

    protected void doTestCycAccess9(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testAsciiCycAccess10

    public void testAsciiCycAccess10()

  Tests a portion of the CycAccess methods using the ascii api connection.

### testBinaryCycAccess10

    public void testBinaryCycAccess10()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess10

    protected void doTestCycAccess10(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testBinaryCycAccess11

    public void testBinaryCycAccess11()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess11

    protected void doTestCycAccess11(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testBinaryCycAccess12

    public void testBinaryCycAccess12()

  Tests a portion of the CycAccess methods using the binary api connection.

### doTestCycAccess12

    protected void doTestCycAccess12(CycAccess cycAccess)

  Tests a portion of the CycAccess methods using the given api connection.

### testBinaryCycAccess13

    public void testBinaryCycAccess13()

  Tests a portion of the CycAccess methods using the binary api connection.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD