Fix typos
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2014 the original author or authors.
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,6 +24,7 @@ import org.springframework.util.SerializationUtils;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public class ExitStatusTests {
|
||||
@@ -223,7 +224,7 @@ public class ExitStatusTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnkownIsRunning() throws Exception {
|
||||
public void testUnknownIsRunning() throws Exception {
|
||||
assertTrue(ExitStatus.UNKNOWN.isRunning());
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008-2013 the original author or authors.
|
||||
* Copyright 2008-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,6 +39,7 @@ import static org.mockito.Mockito.when;
|
||||
* @author Lucas Ward
|
||||
* @author Michael Minella
|
||||
* @author Glenn Renfro
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public class JobParametersBuilderTests {
|
||||
@@ -171,7 +172,7 @@ public class JobParametersBuilderTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPropreties() {
|
||||
public void testProperties() {
|
||||
Properties props = new Properties();
|
||||
props.setProperty("SCHEDULE_DATE", "A DATE");
|
||||
props.setProperty("LONG", "1");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2011 the original author or authors.
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -42,6 +42,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public class JobBuilderConfigurationTests {
|
||||
@@ -176,7 +177,7 @@ public class JobBuilderConfigurationTests {
|
||||
private SimpleBatchConfiguration jobs;
|
||||
|
||||
@Bean
|
||||
public Job testConfigererJob() throws Exception {
|
||||
public Job testConfigurerJob() throws Exception {
|
||||
SimpleJobBuilder builder = jobs.jobBuilders().get("configurer").start(step1());
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2013 the original author or authors.
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -47,6 +47,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Michael Minella
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public class JobScopeConfigurationTests {
|
||||
@@ -78,9 +79,9 @@ public class JobScopeConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testXmlJobScopeWithInheritence() throws Exception {
|
||||
public void testXmlJobScopeWithInheritance() throws Exception {
|
||||
context = new ClassPathXmlApplicationContext(
|
||||
"org/springframework/batch/core/configuration/annotation/JobScopeConfigurationTestsInheritence-context.xml");
|
||||
"org/springframework/batch/core/configuration/annotation/JobScopeConfigurationTestsInheritance-context.xml");
|
||||
JobSynchronizationManager.register(jobExecution);
|
||||
SimpleHolder value = (SimpleHolder) context.getBean("child");
|
||||
assertEquals("JOB", value.call());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2013 the original author or authors.
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -45,6 +45,7 @@ import static org.junit.Assert.assertEquals;
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Michael Minella
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public class StepScopeConfigurationTests {
|
||||
@@ -76,9 +77,9 @@ public class StepScopeConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testXmlStepScopeWithInheritence() throws Exception {
|
||||
public void testXmlStepScopeWithInheritance() throws Exception {
|
||||
context = new ClassPathXmlApplicationContext(
|
||||
"org/springframework/batch/core/configuration/annotation/StepScopeConfigurationTestsInheritence-context.xml");
|
||||
"org/springframework/batch/core/configuration/annotation/StepScopeConfigurationTestsInheritance-context.xml");
|
||||
StepSynchronizationManager.register(stepExecution);
|
||||
SimpleHolder value = (SimpleHolder) context.getBean("child");
|
||||
assertEquals("STEP", value.call());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2014 the original author or authors.
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -43,6 +43,7 @@ import org.springframework.util.ClassUtils;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public class GenericApplicationContextFactoryTests {
|
||||
@@ -147,7 +148,7 @@ public class GenericApplicationContextFactoryTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEqualsMultileConfigs() throws Exception {
|
||||
public void testEqualsMultipleConfigs() throws Exception {
|
||||
Resource resource1 = new ClassPathResource(ClassUtils.addResourcePathToPackagePath(getClass(),
|
||||
"abstract-context.xml"));
|
||||
Resource resource2 = new ClassPathResource(ClassUtils.addResourcePathToPackagePath(getClass(),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2013 the original author or authors.
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -53,6 +53,7 @@ import org.springframework.util.ReflectionUtils;
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Josh Long
|
||||
* @author Mahmoud Ben Hassine
|
||||
*/
|
||||
@ContextConfiguration
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@@ -205,7 +206,7 @@ public class PartitionStepParserTests implements ApplicationContextAware {
|
||||
}
|
||||
}
|
||||
assertEquals(BatchStatus.COMPLETED, jobExecution.getStatus());
|
||||
// Step names not saved by this one (it geosn't have that tasklet)
|
||||
// Step names not saved by this one (it doesn't have that tasklet)
|
||||
assertEquals("[]", savedStepNames.toString());
|
||||
List<String> stepNames = getStepNames(jobExecution);
|
||||
assertEquals(7, stepNames.size());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 the original author or authors.
|
||||
* Copyright 2013-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -58,7 +58,7 @@ public class JsrJobContextFactoryBeanTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIntialCreationSingleThread() throws Exception {
|
||||
public void testInitialCreationSingleThread() throws Exception {
|
||||
factoryBean.setJobExecution(new JobExecution(5L));
|
||||
factoryBean.setBatchPropertyContext(propertyContext);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 the original author or authors.
|
||||
* Copyright 2013-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -36,7 +36,7 @@ public class ThreadLocalClassloaderBeanPostProcessorTestsBatchlet implements Bat
|
||||
|
||||
@Override
|
||||
public String process() throws Exception {
|
||||
Assert.isTrue("someParameter".equals(jobParam1), jobParam1 + " does not equal someParamter");
|
||||
Assert.isTrue("someParameter".equals(jobParam1), jobParam1 + " does not equal someParameter");
|
||||
Assert.isTrue("threadLocalClassloaderBeanPostProcessorTestsJob".equals(jobContext.getJobName()),
|
||||
"jobName does not equal threadLocalClassloaderBeanPostProcessorTestsJob");
|
||||
Assert.isTrue("step1".equals(stepContext.getStepName()), "stepName does not equal step1");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2013 the original author or authors.
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -49,7 +49,7 @@ public class SimpleJvmExitCodeMapperTests extends TestCase {
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
public void testGetExitCodeWithpPredefinedCodes() {
|
||||
public void testGetExitCodeWithPredefinedCodes() {
|
||||
assertEquals(
|
||||
ecm.intValue(ExitStatus.COMPLETED.getExitCode()),
|
||||
ExitCodeMapper.JVM_EXITCODE_COMPLETED);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014 the original author or authors.
|
||||
* Copyright 2014-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,7 +29,7 @@ import static org.junit.Assert.assertEquals;
|
||||
/**
|
||||
* @author mminella
|
||||
*/
|
||||
public class InteralBeanStepScopeIntegrationTests {
|
||||
public class InternalBeanStepScopeIntegrationTests {
|
||||
|
||||
@Test
|
||||
public void testCommitIntervalJobParameter() throws Exception {
|
||||
Reference in New Issue
Block a user