net.sourceforge.hiveutils.test
Class HivemindIntegrationTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jmock.core.VerifyingTestCase
              extended by org.jmock.core.MockObjectSupportTestCase
                  extended by org.jmock.MockObjectTestCase
                      extended by org.jmock.cglib.MockObjectTestCase
                          extended by net.sourceforge.hiveutils.test.HivemindUnitTestCase
                              extended by net.sourceforge.hiveutils.test.HivemindIntegrationTestCase
All Implemented Interfaces:
junit.framework.Test

public class HivemindIntegrationTestCase
extends HivemindUnitTestCase

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.

Author:
Howard Lewis Ship, Jean-Francois Poilpret

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

HivemindIntegrationTestCase

public HivemindIntegrationTestCase()
Method Detail

getResource

protected org.apache.hivemind.Resource getResource(java.lang.String file)
Returns the given file as a Resource from the classpath. Typically, this is to find files in the same folder as the invoking class.


buildFrameworkRegistry

protected org.apache.hivemind.Registry buildFrameworkRegistry(java.lang.String file)
                                                       throws java.lang.Exception
Convienience method for invoking buildFrameworkRegistry(String[]) with only a single file.

Throws:
java.lang.Exception

buildFrameworkRegistry

protected org.apache.hivemind.Registry buildFrameworkRegistry(java.lang.String[] files)
                                                       throws java.lang.Exception
Builds a minimal registry, containing only the specified files, plus the master module descriptor (ie, those visible on the classpath). Files are resolved using getResource(String).

Throws:
java.lang.Exception