Make util classes to follow style guide
Signed-off-by: Taeik Lim <sibera21@gmail.com> Issue #4545
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
376d84888f
commit
fb180404cb
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
* Copyright 2006-2024 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.
|
||||
@@ -30,10 +30,14 @@ import org.springframework.lang.Nullable;
|
||||
*
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @author Taeik Lim
|
||||
* @since 2.1.4
|
||||
*
|
||||
*/
|
||||
public class ExecutionContextTestUtils {
|
||||
public abstract class ExecutionContextTestUtils {
|
||||
|
||||
private ExecutionContextTestUtils() {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Nullable
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
* Copyright 2006-2024 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,8 +29,12 @@ import org.springframework.batch.core.scope.context.JobSynchronizationManager;
|
||||
* @author Dave Syer
|
||||
* @author Jimmy Praet
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @author Taeik Lim
|
||||
*/
|
||||
public class JobScopeTestUtils {
|
||||
public abstract class JobScopeTestUtils {
|
||||
|
||||
private JobScopeTestUtils() {
|
||||
}
|
||||
|
||||
public static <T> T doInJobScope(JobExecution jobExecution, Callable<T> callable) throws Exception {
|
||||
try {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2010 the original author or authors.
|
||||
* Copyright 2006-2024 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,9 +27,13 @@ import org.springframework.batch.core.scope.context.StepSynchronizationManager;
|
||||
* test case that happen to be step scoped in the application context.
|
||||
*
|
||||
* @author Dave Syer
|
||||
* @author Taeik Lim
|
||||
*
|
||||
*/
|
||||
public class StepScopeTestUtils {
|
||||
public abstract class StepScopeTestUtils {
|
||||
|
||||
private StepScopeTestUtils() {
|
||||
}
|
||||
|
||||
public static <T> T doInStepScope(StepExecution stepExecution, Callable<T> callable) throws Exception {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user