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

java.lang.Object
  extended by org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
      extended by net.sf.sasl.aop.monitoring.execution.time.ThresholdMethodExecutionTimeWarnAspectIntegrationTest
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

@ContextConfiguration(locations="classpath:/net/sf/sasl/aop/monitoring/execution/time/thresholdMethodExecutionTimeWarnAspectIntegrationTest.xml")
public class ThresholdMethodExecutionTimeWarnAspectIntegrationTest
extends org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests

Integration test cases for the ThresholdMethodExecutionTimeWarnAspect

Author:
Philipp Förmer

Field Summary
 
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
applicationContext, logger
 
Constructor Summary
ThresholdMethodExecutionTimeWarnAspectIntegrationTest()
           
 
Method Summary
 void setUp()
           
 void testConcurrent()
          Run two short operations parallel.
 void testRunLongOperation()
          Run a long operation that exceeds the threshold.
 void testRunShortOperation()
          Run a short operation, no warn/recovery message is expected, but as of scheduling its not absolutely clear that the assumption is correct.
 
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdMethodExecutionTimeWarnAspectIntegrationTest

public ThresholdMethodExecutionTimeWarnAspectIntegrationTest()
Method Detail

setUp

public void setUp()

testRunLongOperation

public void testRunLongOperation()
                          throws Throwable
Run a long operation that exceeds the threshold. Warn and recovery message is expected.

Throws:
Throwable

testRunShortOperation

public void testRunShortOperation()
                           throws Throwable
Run a short operation, no warn/recovery message is expected, but as of scheduling its not absolutely clear that the assumption is correct.

Throws:
Throwable

testConcurrent

public void testConcurrent()
                    throws Throwable
Run two short operations parallel. Only one warn/recovery message is expected.

Throws:
Throwable


Copyright © 2010. All Rights Reserved.