|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jmock.core.VerifyingTestCase
org.jmock.core.MockObjectSupportTestCase
org.jmock.MockObjectTestCase
org.jmock.cglib.MockObjectTestCase
net.sourceforge.hiveutils.test.HivemindUnitTestCase
net.sourceforge.hiveutils.test.HivemindIntegrationTestCase
public class HivemindIntegrationTestCase
Utility class that integration test cases can inherit in order to have better
support for HiveMind tests.
This code was just excerpted from HiveMind HiveMindTestCase
.
Field Summary |
---|
Fields inherited from class org.jmock.core.MockObjectSupportTestCase |
---|
ANYTHING, NOT_NULL, NULL |
Constructor Summary | |
---|---|
HivemindIntegrationTestCase()
|
Method Summary | |
---|---|
protected org.apache.hivemind.Registry |
buildFrameworkRegistry(java.lang.String file)
Convienience method for invoking buildFrameworkRegistry(String[]) with only a single file. |
protected org.apache.hivemind.Registry |
buildFrameworkRegistry(java.lang.String[] files)
Builds a minimal registry, containing only the specified files, plus the master module descriptor (ie, those visible on the classpath). |
protected org.apache.hivemind.Resource |
getResource(java.lang.String file)
Returns the given file as a Resource from the classpath. |
Methods inherited from class net.sourceforge.hiveutils.test.HivemindUnitTestCase |
---|
defaultReturn, getArgument, isnull, runBare, save, save |
Methods inherited from class org.jmock.cglib.MockObjectTestCase |
---|
newCoreMock |
Methods inherited from class org.jmock.MockObjectTestCase |
---|
atLeastOnce, defaultMockNameForType, mock, mock, never, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwException |
Methods inherited from class org.jmock.core.MockObjectSupportTestCase |
---|
and, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, isA, newDummy, newDummy, newDummy, not, or, same, stringContains |
Methods inherited from class org.jmock.core.VerifyingTestCase |
---|
registerToVerify, unregisterToVerify, verify |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HivemindIntegrationTestCase()
Method Detail |
---|
protected org.apache.hivemind.Resource getResource(java.lang.String file)
Resource
from the classpath.
Typically, this is to find files in the same folder as the invoking class.
protected org.apache.hivemind.Registry buildFrameworkRegistry(java.lang.String file) throws java.lang.Exception
buildFrameworkRegistry(String[])
with only a single file.
java.lang.Exception
protected org.apache.hivemind.Registry buildFrameworkRegistry(java.lang.String[] files) throws java.lang.Exception
getResource(String)
.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |