org.mod4j.runtime.aspects
Class TimingAspectTest

java.lang.Object
  extended by org.mod4j.runtime.test.AbstractLoggingTest
      extended by org.mod4j.runtime.aspects.TimingAspectTest

public class TimingAspectTest
extends AbstractLoggingTest

Test for TimingAspect.


Field Summary
 
Fields inherited from class org.mod4j.runtime.test.AbstractLoggingTest
logger, mockHandler
 
Constructor Summary
TimingAspectTest()
           
 
Method Summary
protected  org.apache.commons.logging.Log getLog()
          The Log we'll work with.
 void testNoLogging()
          Test the TimingAspect#time(ProceedingJoinPoint) method with loglevel set to 'info', which should in nothing but a call to proceed().
 void testTiming()
          Test the TimingAspect#time(ProceedingJoinPoint) method.
 
Methods inherited from class org.mod4j.runtime.test.AbstractLoggingTest
setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimingAspectTest

public TimingAspectTest()
Method Detail

testTiming

public void testTiming()
                throws java.lang.Throwable
Test the TimingAspect#time(ProceedingJoinPoint) method.

Throws:
java.lang.Throwable - Not expect.

testNoLogging

public void testNoLogging()
                   throws java.lang.Throwable
Test the TimingAspect#time(ProceedingJoinPoint) method with loglevel set to 'info', which should in nothing but a call to proceed().

Throws:
java.lang.Throwable - Not expected.

getLog

protected org.apache.commons.logging.Log getLog()
Description copied from class: AbstractLoggingTest
The Log we'll work with. Has to be implemented by the subclass.

Specified by:
getLog in class AbstractLoggingTest
Returns:
The Log for the target (which is this class).


Copyright © 2010 Mod4j. All Rights Reserved.