public class RulesBaseTestCase extends Object
Test Case for the RulesBase matching rules. Most of this material was original contained in the digester test case but was moved into this class so that extensions of the basic matching rules behaviour can extend this test case.
Modifier and Type | Field and Description |
---|---|
protected Digester |
digester
The digester instance we will be processing.
|
Constructor and Description |
---|
RulesBaseTestCase() |
Modifier and Type | Method and Description |
---|---|
protected Rules |
createMatchingRulesForTest()
This should be overriden by subclasses.
|
void |
setUp()
Set up instance variables required by this test case.
|
void |
tearDown()
Tear down instance variables required by this test case.
|
void |
testBasicNamespaceMatching()
Test basic matchings involving namespaces.
|
void |
testOrdering()
Rules must always be returned in the correct order.
|
void |
testRules()
Basic test for rule creation and matching.
|
void |
testRulesBase()
Test matching rules in
RulesBase . |
void |
testTrailingSlash()
Tests the behaviour when a rule is added with a trailing slash
|
public RulesBaseTestCase()
public void setUp()
protected Rules createMatchingRulesForTest()
This should be overriden by subclasses.
public void tearDown()
public void testRules()
public void testRulesBase()
public void testBasicNamespaceMatching()
public void testOrdering()
public void testTrailingSlash()
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.