net.sf.sasl.aop.logging
Class GenericLogAspectIntegrationTest
java.lang.Object
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
net.sf.sasl.aop.logging.GenericLogAspectIntegrationTest
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware
@ContextConfiguration(locations="classpath:/net/sf/sasl/aop/logging/genericLogAspectIntegrationTest.xml")
public class GenericLogAspectIntegrationTest
- extends org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
Some weak integration test cases for the
GenericLogAspect
class.
If using log4j as the underlying logging framework, than follow must be set
to true for the console appender.
- Author:
- Philipp Förmer
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests |
applicationContext, logger |
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 |
GenericLogAspectIntegrationTest
public GenericLogAspectIntegrationTest()
setUp
public void setUp()
tearDown
public void tearDown()
testSimpleCall
public void testSimpleCall()
throws Exception
- Tests if a no argument method is logged nicely.
- Throws:
Exception
testCallWithArguments
public void testCallWithArguments()
throws Exception
- Tests if a two argument method is logged nicely.
- Throws:
Exception
testExceptionCall
public void testExceptionCall()
throws Exception
- Tests if an occurred exception is logged nicely.
- Throws:
Exception
Copyright © 2010. All Rights Reserved.