net.sf.sasl.aop.logging
Class GenericLogAspectIntegrationTest

java.lang.Object
  extended by org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
applicationContext, logger
 
Constructor Summary
GenericLogAspectIntegrationTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testCallWithArguments()
          Tests if a two argument method is logged nicely.
 void testExceptionCall()
          Tests if an occurred exception is logged nicely.
 void testSimpleCall()
          Tests if a no argument method is logged nicely.
 
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

GenericLogAspectIntegrationTest

public GenericLogAspectIntegrationTest()
Method Detail

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.