Remove cycle

This commit is contained in:
dsyer
2007-11-05 11:45:34 +00:00
parent aaa1c6427e
commit 9810bf7223
3 changed files with 7 additions and 8 deletions

View File

@@ -20,7 +20,6 @@ import java.io.File;
import org.springframework.batch.core.domain.JobIdentifier;
import org.springframework.batch.core.domain.StepExecution;
import org.springframework.batch.execution.resource.support.DefaultJobIdentifierLabelGenerator;
import org.springframework.batch.execution.scope.StepContext;
import org.springframework.batch.execution.scope.StepContextAware;
import org.springframework.beans.factory.FactoryBean;

View File

@@ -13,14 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.execution.resource.support;
package org.springframework.batch.execution.resource;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import org.springframework.batch.core.domain.JobIdentifier;
import org.springframework.batch.core.runtime.SimpleJobIdentifier;
import org.springframework.batch.execution.resource.JobIdentifierLabelGenerator;
import org.springframework.batch.execution.runtime.ScheduledJobIdentifier;
/**

View File

@@ -1,10 +1,11 @@
package org.springframework.batch.execution.resource.support;
package org.springframework.batch.execution.resource;
import java.text.SimpleDateFormat;
import junit.framework.TestCase;
import org.springframework.batch.core.runtime.SimpleJobIdentifier;
import org.springframework.batch.execution.resource.DefaultJobIdentifierLabelGenerator;
import org.springframework.batch.execution.runtime.ScheduledJobIdentifier;
public class DefaultJobIdentifierLabelGeneratorTests extends TestCase {
@@ -12,28 +13,28 @@ public class DefaultJobIdentifierLabelGeneratorTests extends TestCase {
DefaultJobIdentifierLabelGenerator instance = new DefaultJobIdentifierLabelGenerator();
/**
* Test method for {@link org.springframework.batch.execution.resource.support.DefaultJobIdentifierLabelGenerator#getLabel()}.
* Test method for {@link org.springframework.batch.execution.resource.DefaultJobIdentifierLabelGenerator#getLabel()}.
*/
public void testGetLabelFromNull() {
assertEquals(null, instance.getLabel(null));
}
/**
* Test method for {@link org.springframework.batch.execution.resource.support.DefaultJobIdentifierLabelGenerator#getLabel()}.
* Test method for {@link org.springframework.batch.execution.resource.DefaultJobIdentifierLabelGenerator#getLabel()}.
*/
public void testGetLabel() {
assertEquals("foo", instance.getLabel(new SimpleJobIdentifier("foo")));
}
/**
* Test method for {@link org.springframework.batch.execution.resource.support.DefaultJobIdentifierLabelGenerator#getLabel()}.
* Test method for {@link org.springframework.batch.execution.resource.DefaultJobIdentifierLabelGenerator#getLabel()}.
*/
public void testDefaultGetLabel() throws Exception {
assertEquals("null--0-19700101", instance.getLabel(new ScheduledJobIdentifier(null)));
}
/**
* Test method for {@link org.springframework.batch.execution.resource.support.DefaultJobIdentifierLabelGenerator#getLabel()}.
* Test method for {@link org.springframework.batch.execution.resource.DefaultJobIdentifierLabelGenerator#getLabel()}.
*/
public void testGetLabelWithAllProperties() throws Exception {
ScheduledJobIdentifier identifier = new ScheduledJobIdentifier(null);