Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

hivemind.test.ant
Class TestConstructRegistry  view TestConstructRegistry download TestConstructRegistry.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.hivemind.test.HiveMindTestCase
              extended byhivemind.test.FrameworkTestCase
                  extended byhivemind.test.ant.TestConstructRegistry
All Implemented Interfaces:
junit.framework.Test

public class TestConstructRegistry
extends hivemind.test.FrameworkTestCase

Tests for the org.apache.hivemind.ant.ConstructRegistry Ant task.

An earlier version of this suite built using the real hivemodule.xml (in src/META-INF) but that caused issues because it was constantly changing, so we use a copy (src/test-data/TestConstructRegistry/master.xml).

These tests are *VERY* dependent on JDK version (really, on the version of the XML parser provided with the JDK). Therefore, we skip the tests for JDK 1.3.


Nested Class Summary
 
Nested classes inherited from class org.apache.hivemind.test.HiveMindTestCase
 
Field Summary
protected  org.apache.tools.ant.Project _project
           
private static boolean JDK1_3
           
 
Fields inherited from class hivemind.test.FrameworkTestCase
_resolver
 
Fields inherited from class org.apache.hivemind.test.HiveMindTestCase
_appender, _interceptedLoggerName
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestConstructRegistry()
           
 
Method Summary
protected  void compare(java.io.File actual, java.lang.String expectedPath)
           
protected  org.apache.hivemind.ant.ConstructRegistry create()
           
protected  java.lang.String readFile(java.io.File f)
           
 void testBasic()
           
 void testJars()
           
 void testLocalRefs()
           
 void testNoDescriptors()
           
 void testNoFile()
           
 void testUptoDate()
           
 
Methods inherited from class hivemind.test.FrameworkTestCase
createConfigurationPointDescriptor, createDependencyDescriptor, createModuleDescriptor, createServicePointDescriptor, getFrameworkPath, interceptLogging, parse
 
Methods inherited from class org.apache.hivemind.test.HiveMindTestCase
addControl, assertExceptionRegexp, assertExceptionSubstring, assertListsEqual, assertListsEqual, assertLoggedMessage, assertLoggedMessage, assertLoggedMessagePattern, assertLoggedMessagePattern, assertLoggedMessages, assertRegexp, buildFrameworkRegistry, buildFrameworkRegistry, buildFrameworkRegistry, buildMinimalRegistry, fabricateLocation, findNestedException, getClassResolver, getControl, getInterceptedLogEvents, getResource, interceptLogging, matches, newControl, newLocation, newMock, replayControls, resetControls, setReturnValue, setReturnValue, setReturnValue, setReturnValue, setReturnValue, setThrowable, tearDown, unreachable, verifyControls
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 

Field Detail

JDK1_3

private static final boolean JDK1_3

_project

protected org.apache.tools.ant.Project _project
Constructor Detail

TestConstructRegistry

public TestConstructRegistry()
Method Detail

create

protected org.apache.hivemind.ant.ConstructRegistry create()

testNoFile

public void testNoFile()
                throws java.lang.Exception

testNoDescriptors

public void testNoDescriptors()
                       throws java.lang.Exception

testBasic

public void testBasic()
               throws java.lang.Exception

testLocalRefs

public void testLocalRefs()
                   throws java.lang.Exception

testUptoDate

public void testUptoDate()
                  throws java.lang.Exception

testJars

public void testJars()
              throws java.lang.Exception

compare

protected void compare(java.io.File actual,
                       java.lang.String expectedPath)
                throws java.lang.Exception

readFile

protected java.lang.String readFile(java.io.File f)
                             throws java.lang.Exception