|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mod4j.runtime.test.AbstractLoggingTest
org.mod4j.runtime.aspects.LoggingAspectTest
public class LoggingAspectTest
Test for LoggingAspect.
| Field Summary |
|---|
| Fields inherited from class org.mod4j.runtime.test.AbstractLoggingTest |
|---|
logger, mockHandler |
| Constructor Summary | |
|---|---|
LoggingAspectTest()
|
|
| Method Summary | |
|---|---|
protected org.apache.commons.logging.Log |
getLog()
The Log we'll work with. |
void |
setUp()
Setup environment before tests. |
void |
testLogAfter()
Test the LoggingAspect#logAfter(JoinPoint) method with loglevel set to 'all'. |
void |
testLogBefore()
Test the LoggingAspect#logBefore(JoinPoint) method with loglevel set to 'all'. |
void |
testNoLogging()
Test the LoggingAspect#logBefore(JoinPoint) AND LoggingAspect#logAfter(JoinPoint) methods with
loglevel set to 'info', which should in nothing. |
| Methods inherited from class org.mod4j.runtime.test.AbstractLoggingTest |
|---|
tearDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingAspectTest()
| Method Detail |
|---|
public void setUp()
setUp in class AbstractLoggingTestpublic void testLogAfter()
LoggingAspect#logAfter(JoinPoint) method with loglevel set to 'all'.
public void testLogBefore()
throws java.lang.Throwable
LoggingAspect#logBefore(JoinPoint) method with loglevel set to 'all'.
java.lang.Throwable - Not expected.public void testNoLogging()
LoggingAspect#logBefore(JoinPoint) AND LoggingAspect#logAfter(JoinPoint) methods with
loglevel set to 'info', which should in nothing.
protected org.apache.commons.logging.Log getLog()
AbstractLoggingTestLog we'll work with. Has to be implemented by the subclass.
getLog in class AbstractLoggingTestLog for the target (which is this class).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||