junit.extensions.abbot
Class ResolverFixture

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byjunit.extensions.abbot.ResolverFixture
All Implemented Interfaces:
Test
Direct Known Subclasses:
ComponentTestFixture

public class ResolverFixture
extends TestCase

Simple wrapper for testing objects which require a Resolver.


Nested Class Summary
protected  class ResolverFixture.ComponentMatcher
           
 
Constructor Summary
ResolverFixture(String name)
          Construct a test case with the given name.
 
Method Summary
protected  void fixtureSetUp()
          Fixture setup is performed here, to avoid problems should a derived class define its own setUp and neglect to invoke the superclass method.
protected  void fixtureTearDown()
          Fixture teardown is performed here, to avoid problems should a derived class define its own tearDown and neglect to invoke the superclass method.
protected  ComponentFinder getFinder()
          Obtain a component finder to look up components.
protected  TestHierarchy getHierarchy()
          Obtain a consistent hierarchy.
protected  Resolver getResolver()
          Obtain a consistent resolver.
 void runBare()
          Override the default junit.framework.TestCase#RunBare() to ensure proper test harness setup and teardown that won't likely be accidentally overridden by a derived class.
 
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

ResolverFixture

public ResolverFixture(String name)
Construct a test case with the given name.

Method Detail

getHierarchy

protected TestHierarchy getHierarchy()
Obtain a consistent hierarchy.


getFinder

protected ComponentFinder getFinder()
Obtain a component finder to look up components.


getResolver

protected Resolver getResolver()
Obtain a consistent resolver.


fixtureSetUp

protected void fixtureSetUp()
                     throws Throwable
Fixture setup is performed here, to avoid problems should a derived class define its own setUp and neglect to invoke the superclass method.

Throws:
Throwable

fixtureTearDown

protected void fixtureTearDown()
                        throws Throwable
Fixture teardown is performed here, to avoid problems should a derived class define its own tearDown and neglect to invoke the superclass method.

Throws:
Throwable

runBare

public void runBare()
             throws Throwable
Override the default junit.framework.TestCase#RunBare() to ensure proper test harness setup and teardown that won't likely be accidentally overridden by a derived class.

Throws:
Throwable


Copyright © 2002-2004 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge