net.sf.sasl.aop.monitoring.execution.time
Class ThresholdMethodExecutionTimeWarnAspectTest

java.lang.Object
  extended by net.sf.sasl.aop.monitoring.execution.time.ThresholdMethodExecutionTimeWarnAspectTest

public class ThresholdMethodExecutionTimeWarnAspectTest
extends Object

Test cases for the ThresholdMethodExecutionTimeWarnAspect class.

Author:
Philipp Förmer

Constructor Summary
ThresholdMethodExecutionTimeWarnAspectTest()
           
 
Method Summary
 void setUp()
           
 void testAfterPropertiesSetException()
          Test case if the afterPropertiesSet() throws an illegal state exception if the configuration is not ok.
 void testAfterPropertiesSetNoException()
          Test case if the afterPropertiesSet() does not throw an illegal state exception if the configuration is ok.
 void testGetSetCache()
          Test cases for the getter and setter of the cache.
 void testGetSetCommunicationChannels()
          Test cases for the getter and setter of the communication channel property.
 void testGetSetMethodExecutionTimeThresholdChain()
          Test cases for the getter and setter of the methodExecutionTimeThresholdChain property.
 void testGetSetRecoveryMessage()
          Test cases for the getter and setter of the recovery message.
 void testGetSetScheduleService()
          Test cases for the getter and setter of the schedule service property.
 void testGetSetWarnMessage()
          Test cases for the getter and setter of the warn message.
 void testInvoke()
          Test cases for the invoke(MethodInvocation) method.
 void testMessageSender()
          Test cases for the MessageSender class.
 void testSendRecoveryMessageMarker()
          Test case for the SendRecoveryMessageMarker class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdMethodExecutionTimeWarnAspectTest

public ThresholdMethodExecutionTimeWarnAspectTest()
Method Detail

setUp

public void setUp()

testGetSetMethodExecutionTimeThresholdChain

public void testGetSetMethodExecutionTimeThresholdChain()
                                                 throws Exception
Test cases for the getter and setter of the methodExecutionTimeThresholdChain property.

Throws:
Exception

testGetSetScheduleService

public void testGetSetScheduleService()
                               throws Exception
Test cases for the getter and setter of the schedule service property.

Throws:
Exception

testGetSetCommunicationChannels

public void testGetSetCommunicationChannels()
                                     throws Exception
Test cases for the getter and setter of the communication channel property.

Throws:
Exception

testGetSetWarnMessage

public void testGetSetWarnMessage()
                           throws Exception
Test cases for the getter and setter of the warn message.

Throws:
Exception

testGetSetRecoveryMessage

public void testGetSetRecoveryMessage()
                               throws Exception
Test cases for the getter and setter of the recovery message.

Throws:
Exception

testGetSetCache

public void testGetSetCache()
                     throws Exception
Test cases for the getter and setter of the cache.

Throws:
Exception

testAfterPropertiesSetNoException

public void testAfterPropertiesSetNoException()
                                       throws Exception
Test case if the afterPropertiesSet() does not throw an illegal state exception if the configuration is ok.

Throws:
Exception

testAfterPropertiesSetException

public void testAfterPropertiesSetException()
                                     throws Exception
Test case if the afterPropertiesSet() throws an illegal state exception if the configuration is not ok.

Throws:
Exception

testSendRecoveryMessageMarker

public void testSendRecoveryMessageMarker()
                                   throws Exception
Test case for the SendRecoveryMessageMarker class. Has got some problems as can not get queried when a thread gets blocked.

Throws:
Exception

testMessageSender

public void testMessageSender()
                       throws Exception
Test cases for the MessageSender class.

Throws:
Exception

testInvoke

public void testInvoke()
                throws Throwable
Test cases for the invoke(MethodInvocation) method.

Throws:
Exception
Throwable


Copyright © 2010. All Rights Reserved.