ExternalLoggerTest (Velocity 1.4 API)
Keywords: org.apache.velocity.test.ExternalLoggerTest class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.velocity.test
Class ExternalLoggerTest

    java.lang.Object
      junit.framework.Assert
          junit.framework.TestCase
              org.apache.velocity.test.ExternalLoggerTest

All Implemented Interfaces:
  LogSystem, junit.framework.Test

public class ExternalLoggerTest
extends junit.framework.TestCase
implements LogSystem

Tests if we can hand Velocity an arbitrary class for logging.

Version:
  $Id: ExternalLoggerTest.java,v 1.4.10.1 2004/03/03 23:23:04 geirm Exp $
Author:
  Geir Magnusson Jr.

Field Summary
`private java.lang.String` | `logString`
`private VelocityEngine` | `ve`

Fields inherited from class junit.framework.TestCase
``

Fields inherited from interface org.apache.velocity.runtime.log.LogSystem
`DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID`

Constructor Summary
`ExternalLoggerTest()` Default constructor.

Method Summary
`void` | `init(RuntimeServices rs)` init()
`void` | `logVelocityMessage(int level, java.lang.String message)` Send a log message from Velocity.
`void` | `runTest()` Runs the test.
`static junit.framework.Test` | `suite()`

Methods inherited from class junit.framework.TestCase
`countTestCases, createResult, getName, name, run, run, runBare, setName, setUp, tearDown, toString`

Methods inherited from class junit.framework.Assert
`assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

### logString

    private java.lang.String logString

### ve

    private VelocityEngine ve

Constructor Detail

### ExternalLoggerTest

    public ExternalLoggerTest()

  Default constructor.

Method Detail

### init

    public void init(RuntimeServices rs)

  Description copied from interface: `LogSystem`
  init()

  Specified by:
    `init` in interface `LogSystem`

### suite

    public static junit.framework.Test suite()

### runTest

    public void runTest()

  Runs the test.

### logVelocityMessage

    public void logVelocityMessage(int level,
                                   java.lang.String message)

  Description copied from interface: `LogSystem`
  Send a log message from Velocity.

  Specified by:
    `logVelocityMessage` in interface `LogSystem`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 Apache Software Foundation. All Rights Reserved.