Skip to content

Commit ddbd0d8

Browse files
committed
Fix suffix of test classes names
As per Spring Framework code style [1], the suffix of test classes should be "Tests". This commit fixes that for some classes that do not conform to the code style. [1]: https://github.com/spring-projects/spring-framework/wiki/Code-Style#tests
1 parent e8bbde1 commit ddbd0d8

File tree

15 files changed

+23
-23
lines changed

15 files changed

+23
-23
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013 the original author or authors.
2+
* Copyright 2013-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@
3636

3737
@RunWith(SpringJUnit4ClassRunner.class)
3838
@ContextConfiguration
39-
public class TaskletStepAllowStartIfCompleteTest {
39+
public class TaskletStepAllowStartIfCompleteTests {
4040

4141
@Autowired
4242
Job job;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014 the original author or authors.
2+
* Copyright 2014-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@
3838
*/
3939
@ContextConfiguration
4040
@RunWith(SpringJUnit4ClassRunner.class)
41-
public class ScriptItemProcessorTest {
41+
public class ScriptItemProcessorTests {
4242
@Autowired
4343
private Job job;
4444

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2018 the original author or authors.
2+
* Copyright 2006-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@
2929
/**
3030
* @author Mahmoud Ben Hassine
3131
*/
32-
public class MethodInvokingTaskletAdapterTest {
32+
public class MethodInvokingTaskletAdapterTests {
3333

3434
private StepContribution stepContribution;
3535
private ChunkContext chunkContext;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646
<beans:bean id="processor" class="org.springframework.batch.item.support.ScriptItemProcessor"
4747
p:script="org/springframework/batch/core/step/item/processor-test-simple.js"/>
4848

49-
<beans:bean id="writer" class="org.springframework.batch.core.step.item.ScriptItemProcessorTest$TestItemWriter"/>
49+
<beans:bean id="writer" class="org.springframework.batch.core.step.item.ScriptItemProcessorTests$TestItemWriter"/>
5050
</beans:beans>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2007 the original author or authors.
2+
* Copyright 2006-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
2222
import org.springframework.beans.NotWritablePropertyException;
2323
import org.springframework.validation.BindException;
2424

25-
public class BeanWrapperFieldSetMapperFuzzyMatchingTest {
25+
public class BeanWrapperFieldSetMapperFuzzyMatchingTests {
2626

2727
@Test(expected = NotWritablePropertyException.class)
2828
public void testFuzzyMatchingWithKeyCandidateCollision() throws BindException {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 the original author or authors.
2+
* Copyright 2018-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
2222
/**
2323
* @author Mahmoud Ben Hassine
2424
*/
25-
public class GsonJsonObjectMarshallerTest {
25+
public class GsonJsonObjectMarshallerTests {
2626

2727
@Test
2828
public void testJsonMarshalling() {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 the original author or authors.
2+
* Copyright 2018-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
2222
/**
2323
* @author Mahmoud Ben Hassine
2424
*/
25-
public class JacksonJsonObjectMarshallerTest {
25+
public class JacksonJsonObjectMarshallerTests {
2626

2727
@Test
2828
public void testJsonMarshalling() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* @author Mahmoud Ben Hassine
4040
* @author Glenn Renfro
4141
*/
42-
public class JsonFileItemWriterBuilderTest {
42+
public class JsonFileItemWriterBuilderTests {
4343

4444
private Resource resource;
4545
private JsonObjectMarshaller<String> jsonObjectMarshaller;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/**
3434
* @author Mahmoud Ben Hassine
3535
*/
36-
public class JsonItemReaderBuilderTest {
36+
public class JsonItemReaderBuilderTests {
3737

3838
@Rule
3939
public MockitoRule rule = MockitoJUnit.rule().silent();
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 the original author or authors.
2+
* Copyright 2018-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
2424
/**
2525
* @author Mahmoud Ben Hassine
2626
*/
27-
public class BeanValidatingItemProcessorTest {
27+
public class BeanValidatingItemProcessorTests {
2828

2929
@Test
3030
public void testValidObjectValidation() throws Exception {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
* @author Mahmoud Ben Hassine
7676
*/
7777
@RunWith(SpringRunner.class)
78-
@ContextConfiguration(classes = {RemoteChunkingManagerStepBuilderTest.BatchConfiguration.class})
79-
public class RemoteChunkingManagerStepBuilderTest {
78+
@ContextConfiguration(classes = {RemoteChunkingManagerStepBuilderTests.BatchConfiguration.class})
79+
public class RemoteChunkingManagerStepBuilderTests {
8080

8181
@Autowired
8282
private JobRepository jobRepository;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* @author Mahmoud Ben Hassine
3131
*/
32-
public class RemoteChunkingWorkerBuilderTest {
32+
public class RemoteChunkingWorkerBuilderTests {
3333

3434
private ItemProcessor<String, String> itemProcessor = new PassThroughItemProcessor<>();
3535
private ItemWriter<String> itemWriter = items -> { };
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 the original author or authors.
2+
* Copyright 2018-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
2727
/**
2828
* @author Mahmoud Ben Hassine
2929
*/
30-
public class BatchTestContextCustomizerFactoryTest {
30+
public class BatchTestContextCustomizerFactoryTests {
3131

3232
private BatchTestContextCustomizerFactory factory = new BatchTestContextCustomizerFactory();
3333

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* @author Mahmoud Ben Hassine
3131
*/
32-
public class BatchTestContextCustomizerTest {
32+
public class BatchTestContextCustomizerTests {
3333

3434
private BatchTestContextCustomizer contextCustomizer = new BatchTestContextCustomizer();
3535

0 commit comments

Comments
 (0)