org.apache.velocity.test
Class FilteredEventHandlingTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.velocity.test.BaseTestCase
              extended by org.apache.velocity.test.FilteredEventHandlingTestCase
All Implemented Interfaces:
junit.framework.Test, LogChute, TemplateTestBase

public class FilteredEventHandlingTestCase
extends BaseTestCase
implements LogChute

Tests event handling for all event handlers when multiple event handlers are assigned for each type.

Version:
$Id: FilteredEventHandlingTestCase.java 463298 2006-10-12 16:10:32Z henning $
Author:
Will Glass-Husain

Field Summary
 
Fields inherited from interface org.apache.velocity.runtime.log.LogChute
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX
 
Fields inherited from interface org.apache.velocity.test.TemplateTestBase
RESULT_DIR, TEST_CASE_PROPERTIES, TEST_COMPARE_DIR, TEST_RESULT_DIR
 
Constructor Summary
FilteredEventHandlingTestCase(String name)
          Default constructor.
 
Method Summary
 void init(RuntimeServices rs)
          Required by LogChute
 boolean isLevelEnabled(int level)
           
 void log(int level, String message)
          handler for LogChute interface
 void log(int level, String message, Throwable t)
           
static junit.framework.Test suite()
           
 void testFilteredEventHandling()
           
 
Methods inherited from class org.apache.velocity.test.BaseTestCase
assureResultsDirectoryExists, getFileContents, getFileName, getFileName, getTestCaseName, isMatch, isMatch, normalizeNewlines
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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

FilteredEventHandlingTestCase

public FilteredEventHandlingTestCase(String name)
Default constructor.

Method Detail

init

public void init(RuntimeServices rs)
Required by LogChute

Specified by:
init in interface LogChute

suite

public static junit.framework.Test suite()

testFilteredEventHandling

public void testFilteredEventHandling()
                               throws Exception
Throws:
Exception

log

public void log(int level,
                String message)
handler for LogChute interface

Specified by:
log in interface LogChute

log

public void log(int level,
                String message,
                Throwable t)
Specified by:
log in interface LogChute

isLevelEnabled

public boolean isLevelEnabled(int level)
Specified by:
isLevelEnabled in interface LogChute


Copyright © 2000-2008 The Apache Software Foundation. All Rights Reserved.