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
This commit is contained in:
Mahmoud Ben Hassine
2021-09-13 11:07:41 +02:00
parent e8bbde10e5
commit ddbd0d8ebc
15 changed files with 23 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2021 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 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class TaskletStepAllowStartIfCompleteTest {
public class TaskletStepAllowStartIfCompleteTests {
@Autowired
Job job;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014 the original author or authors.
* Copyright 2014-2021 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.
@@ -38,7 +38,7 @@ import java.util.List;
*/
@ContextConfiguration
@RunWith(SpringJUnit4ClassRunner.class)
public class ScriptItemProcessorTest {
public class ScriptItemProcessorTests {
@Autowired
private Job job;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2018 the original author or authors.
* Copyright 2006-2021 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.mockito.Mockito.mock;
/**
* @author Mahmoud Ben Hassine
*/
public class MethodInvokingTaskletAdapterTest {
public class MethodInvokingTaskletAdapterTests {
private StepContribution stepContribution;
private ChunkContext chunkContext;

View File

@@ -46,5 +46,5 @@
<beans:bean id="processor" class="org.springframework.batch.item.support.ScriptItemProcessor"
p:script="org/springframework/batch/core/step/item/processor-test-simple.js"/>
<beans:bean id="writer" class="org.springframework.batch.core.step.item.ScriptItemProcessorTest$TestItemWriter"/>
<beans:bean id="writer" class="org.springframework.batch.core.step.item.ScriptItemProcessorTests$TestItemWriter"/>
</beans:beans>

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2007 the original author or authors.
* Copyright 2006-2021 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.
@@ -22,7 +22,7 @@ import org.springframework.batch.item.file.transform.DelimitedLineTokenizer;
import org.springframework.beans.NotWritablePropertyException;
import org.springframework.validation.BindException;
public class BeanWrapperFieldSetMapperFuzzyMatchingTest {
public class BeanWrapperFieldSetMapperFuzzyMatchingTests {
@Test(expected = NotWritablePropertyException.class)
public void testFuzzyMatchingWithKeyCandidateCollision() throws BindException {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018 the original author or authors.
* Copyright 2018-2021 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.
@@ -22,7 +22,7 @@ import org.junit.Test;
/**
* @author Mahmoud Ben Hassine
*/
public class GsonJsonObjectMarshallerTest {
public class GsonJsonObjectMarshallerTests {
@Test
public void testJsonMarshalling() {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018 the original author or authors.
* Copyright 2018-2021 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.
@@ -22,7 +22,7 @@ import org.junit.Test;
/**
* @author Mahmoud Ben Hassine
*/
public class JacksonJsonObjectMarshallerTest {
public class JacksonJsonObjectMarshallerTests {
@Test
public void testJsonMarshalling() {

View File

@@ -39,7 +39,7 @@ import static org.junit.Assert.assertTrue;
* @author Mahmoud Ben Hassine
* @author Glenn Renfro
*/
public class JsonFileItemWriterBuilderTest {
public class JsonFileItemWriterBuilderTests {
private Resource resource;
private JsonObjectMarshaller<String> jsonObjectMarshaller;

View File

@@ -33,7 +33,7 @@ import static org.springframework.test.util.ReflectionTestUtils.getField;
/**
* @author Mahmoud Ben Hassine
*/
public class JsonItemReaderBuilderTest {
public class JsonItemReaderBuilderTests {
@Rule
public MockitoRule rule = MockitoJUnit.rule().silent();

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018 the original author or authors.
* Copyright 2018-2021 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,7 +24,7 @@ import org.junit.Test;
/**
* @author Mahmoud Ben Hassine
*/
public class BeanValidatingItemProcessorTest {
public class BeanValidatingItemProcessorTests {
@Test
public void testValidObjectValidation() throws Exception {

View File

@@ -75,8 +75,8 @@ import static org.mockito.Mockito.when;
* @author Mahmoud Ben Hassine
*/
@RunWith(SpringRunner.class)
@ContextConfiguration(classes = {RemoteChunkingManagerStepBuilderTest.BatchConfiguration.class})
public class RemoteChunkingManagerStepBuilderTest {
@ContextConfiguration(classes = {RemoteChunkingManagerStepBuilderTests.BatchConfiguration.class})
public class RemoteChunkingManagerStepBuilderTests {
@Autowired
private JobRepository jobRepository;

View File

@@ -29,7 +29,7 @@ import static org.assertj.core.api.Assertions.assertThat;
/**
* @author Mahmoud Ben Hassine
*/
public class RemoteChunkingWorkerBuilderTest {
public class RemoteChunkingWorkerBuilderTests {
private ItemProcessor<String, String> itemProcessor = new PassThroughItemProcessor<>();
private ItemWriter<String> itemWriter = items -> { };

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018 the original author or authors.
* Copyright 2018-2021 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.
@@ -27,7 +27,7 @@ import org.springframework.test.context.ContextCustomizer;
/**
* @author Mahmoud Ben Hassine
*/
public class BatchTestContextCustomizerFactoryTest {
public class BatchTestContextCustomizerFactoryTests {
private BatchTestContextCustomizerFactory factory = new BatchTestContextCustomizerFactory();

View File

@@ -29,7 +29,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Mahmoud Ben Hassine
*/
public class BatchTestContextCustomizerTest {
public class BatchTestContextCustomizerTests {
private BatchTestContextCustomizer contextCustomizer = new BatchTestContextCustomizer();