org.springframework.batch.core.resource
Class StepExecutionResourceProxyTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.core.resource.StepExecutionResourceProxyTests

public class StepExecutionResourceProxyTests
extends TestCase

Unit tests for StepExecutionResourceProxy

Author:
robert.kasanicky, Lucas Ward, Dave Syer

Constructor Summary
StepExecutionResourceProxyTests()
           
 
Method Summary
protected  void setUp()
          mock step context
 void testCreateFileName()
          regular use with valid context and pattern provided
 void testNonStandardFilePattern()
           
 void testNonStandardFilePatternWithJobParameters()
           
 void testNullFilePattern()
           
 void testResoureLoaderAware()
           
 void testToString()
          toString delegates to the proxied resource.
 void testToStringWithNullDelegate()
          If delegate is not set toString returns the filePattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepExecutionResourceProxyTests

public StepExecutionResourceProxyTests()
Method Detail

setUp

protected void setUp()
              throws Exception
mock step context

Throws:
Exception

testCreateFileName

public void testCreateFileName()
                        throws Exception
regular use with valid context and pattern provided

Throws:
Exception

testNullFilePattern

public void testNullFilePattern()
                         throws Exception
Throws:
Exception

testNonStandardFilePattern

public void testNonStandardFilePattern()
                                throws Exception
Throws:
Exception

testNonStandardFilePatternWithJobParameters

public void testNonStandardFilePatternWithJobParameters()
                                                 throws Exception
Throws:
Exception

testResoureLoaderAware

public void testResoureLoaderAware()
                            throws Exception
Throws:
Exception

testToString

public void testToString()
toString delegates to the proxied resource.


testToStringWithNullDelegate

public void testToStringWithNullDelegate()
If delegate is not set toString returns the filePattern.



Copyright © 2008 SpringSource. All Rights Reserved.