Make a SimpleJobIdentifierFactory for SimpleJobIdentifiers

OPEN - issue BATCH-58: Make JobStream and JobRun optional properties of Job (e.g. through join to optional table) 
http://opensource.atlassian.com/projects/spring/browse/BATCH-58
This commit is contained in:
dsyer
2007-08-23 19:46:28 +00:00
parent 4210297540
commit f19379e27b
3 changed files with 53 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
package org.springframework.batch.core.runtime;
import junit.framework.TestCase;
public class SimpleJobIdentifierFactoryTests extends TestCase {
public void testGetJobIdentifier() {
JobIdentifier jobIdentifier = new SimpleJobIdentifierFactory().getJobIdentifier("foo");
assertEquals("foo", jobIdentifier.getName());
}
}