Skip to content

Commit

Permalink
Fix checkstyle warning by import order
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <[email protected]>
  • Loading branch information
acktsap authored Dec 31, 2024
1 parent 9e847ae commit ba47c2c
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,24 @@

package com.navercorp.spring.batch.plus.step.adapter;

import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.itemProcessor;
import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.itemStreamReader;
import static org.assertj.core.api.Assertions.assertThat;

import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

import javax.sql.DataSource;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.RepeatedTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.*;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.batch.core.job.builder.JobBuilder;
Expand All @@ -39,14 +52,8 @@
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
import org.springframework.lang.NonNull;
import org.springframework.transaction.TransactionManager;
import reactor.core.publisher.Flux;

import javax.sql.DataSource;
import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.*;
import static org.assertj.core.api.Assertions.assertThat;
import reactor.core.publisher.Flux;

@SuppressWarnings("unchecked")
class ItemStreamFluxReaderProcessorIntegrationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,25 @@

package com.navercorp.spring.batch.plus.step.adapter;

import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.itemProcessor;
import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.itemStreamReader;
import static org.assertj.core.api.Assertions.assertThat;

import java.util.Iterator;
import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

import javax.sql.DataSource;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.RepeatedTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.*;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.batch.core.job.builder.JobBuilder;
Expand All @@ -40,14 +54,6 @@
import org.springframework.lang.NonNull;
import org.springframework.transaction.TransactionManager;

import javax.sql.DataSource;
import java.util.Iterator;
import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.*;
import static org.assertj.core.api.Assertions.assertThat;

@SuppressWarnings("unchecked")
class ItemStreamIterableReaderProcessorIntegrationTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,25 @@

package com.navercorp.spring.batch.plus.step.adapter;

import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.itemProcessor;
import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.itemStreamReader;
import static org.assertj.core.api.Assertions.assertThat;

import java.util.Iterator;
import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

import javax.sql.DataSource;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.RepeatedTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.*;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.batch.core.job.builder.JobBuilder;
Expand All @@ -40,14 +54,6 @@
import org.springframework.lang.NonNull;
import org.springframework.transaction.TransactionManager;

import javax.sql.DataSource;
import java.util.Iterator;
import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.*;
import static org.assertj.core.api.Assertions.assertThat;

@SuppressWarnings("unchecked")
class ItemStreamIteratorReaderProcessorIntegrationTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,24 @@

package com.navercorp.spring.batch.plus.step.adapter;

import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.itemProcessor;
import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.itemStreamReader;
import static org.assertj.core.api.Assertions.assertThat;

import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

import javax.sql.DataSource;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.RepeatedTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.*;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.batch.core.job.builder.JobBuilder;
Expand All @@ -40,13 +53,6 @@
import org.springframework.lang.NonNull;
import org.springframework.transaction.TransactionManager;

import javax.sql.DataSource;
import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

import static com.navercorp.spring.batch.plus.step.adapter.AdapterFactory.*;
import static org.assertj.core.api.Assertions.assertThat;

@SuppressWarnings("unchecked")
class ItemStreamSimpleReaderProcessorIntegrationTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.springframework.batch.item.ItemProcessor;
import org.springframework.batch.item.ItemStreamReader;

import reactor.core.publisher.Flux;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

package com.navercorp.spring.batch.plus.step.adapter;

import java.util.Iterator;

import org.springframework.batch.item.ItemProcessor;
import org.springframework.batch.item.ItemStreamReader;

import java.util.Iterator;

/**
* An {@link Iterator<I>} based adapter for stream reader, processor. It can represent
* {@link ItemStreamReader}, {@link ItemProcessor} in a single class.
Expand Down

0 comments on commit ba47c2c

Please sign in to comment.