Polish code indent in Javadocs
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
23878c6cca
commit
15f3637ac8
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2018-2022 the original author or authors.
|
||||
* Copyright 2018-2023 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.
|
||||
@@ -52,32 +52,32 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
* @ContextConfiguration(classes = MyBatchJobConfiguration.class)
|
||||
* public class MyBatchJobTests {
|
||||
*
|
||||
* @Autowired
|
||||
* private JobLauncherTestUtils jobLauncherTestUtils;
|
||||
* @Autowired
|
||||
* private JobLauncherTestUtils jobLauncherTestUtils;
|
||||
*
|
||||
* @Autowired
|
||||
* private JobRepositoryTestUtils jobRepositoryTestUtils;
|
||||
* @Autowired
|
||||
* private JobRepositoryTestUtils jobRepositoryTestUtils;
|
||||
*
|
||||
* @Autowired
|
||||
* private Job jobUnderTest;
|
||||
* @Autowired
|
||||
* private Job jobUnderTest;
|
||||
*
|
||||
* @Before
|
||||
* public void setup() {
|
||||
* this.jobRepositoryTestUtils.removeJobExecutions();
|
||||
* this.jobLauncherTestUtils.setJob(this.jobUnderTest); // this is optional if the job is unique
|
||||
* }
|
||||
* @Before
|
||||
* public void setup() {
|
||||
* this.jobRepositoryTestUtils.removeJobExecutions();
|
||||
* this.jobLauncherTestUtils.setJob(this.jobUnderTest); // this is optional if the job is unique
|
||||
* }
|
||||
*
|
||||
* @Test
|
||||
* public void testMyJob() throws Exception {
|
||||
* // given
|
||||
* JobParameters jobParameters = this.jobLauncherTestUtils.getUniqueJobParameters();
|
||||
* @Test
|
||||
* public void testMyJob() throws Exception {
|
||||
* // given
|
||||
* JobParameters jobParameters = this.jobLauncherTestUtils.getUniqueJobParameters();
|
||||
*
|
||||
* // when
|
||||
* JobExecution jobExecution = this.jobLauncherTestUtils.launchJob(jobParameters);
|
||||
* // when
|
||||
* JobExecution jobExecution = this.jobLauncherTestUtils.launchJob(jobParameters);
|
||||
*
|
||||
* // then
|
||||
* Assert.assertEquals(ExitStatus.COMPLETED, jobExecution.getExitStatus());
|
||||
* }
|
||||
* // then
|
||||
* Assert.assertEquals(ExitStatus.COMPLETED, jobExecution.getExitStatus());
|
||||
* }
|
||||
*
|
||||
* }
|
||||
* </pre>
|
||||
@@ -91,29 +91,29 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
* @SpringJUnitConfig(MyBatchJobConfiguration.class)
|
||||
* public class MyBatchJobTests {
|
||||
*
|
||||
* @Autowired
|
||||
* private JobLauncherTestUtils jobLauncherTestUtils;
|
||||
* @Autowired
|
||||
* private JobLauncherTestUtils jobLauncherTestUtils;
|
||||
*
|
||||
* @Autowired
|
||||
* private JobRepositoryTestUtils jobRepositoryTestUtils;
|
||||
* @Autowired
|
||||
* private JobRepositoryTestUtils jobRepositoryTestUtils;
|
||||
*
|
||||
* @BeforeEach
|
||||
* public void setup(@Autowired Job jobUnderTest) {
|
||||
* this.jobLauncherTestUtils.setJob(jobUnderTest); // this is optional if the job is unique
|
||||
* this.jobRepositoryTestUtils.removeJobExecutions();
|
||||
* }
|
||||
* @BeforeEach
|
||||
* public void setup(@Autowired Job jobUnderTest) {
|
||||
* this.jobLauncherTestUtils.setJob(jobUnderTest); // this is optional if the job is unique
|
||||
* this.jobRepositoryTestUtils.removeJobExecutions();
|
||||
* }
|
||||
*
|
||||
* @Test
|
||||
* public void testMyJob() throws Exception {
|
||||
* // given
|
||||
* JobParameters jobParameters = this.jobLauncherTestUtils.getUniqueJobParameters();
|
||||
* @Test
|
||||
* public void testMyJob() throws Exception {
|
||||
* // given
|
||||
* JobParameters jobParameters = this.jobLauncherTestUtils.getUniqueJobParameters();
|
||||
*
|
||||
* // when
|
||||
* JobExecution jobExecution = this.jobLauncherTestUtils.launchJob(jobParameters);
|
||||
* // when
|
||||
* JobExecution jobExecution = this.jobLauncherTestUtils.launchJob(jobParameters);
|
||||
*
|
||||
* // then
|
||||
* Assertions.assertEquals(ExitStatus.COMPLETED, jobExecution.getExitStatus());
|
||||
* }
|
||||
* // then
|
||||
* Assertions.assertEquals(ExitStatus.COMPLETED, jobExecution.getExitStatus());
|
||||
* }
|
||||
*
|
||||
* }
|
||||
* </pre>
|
||||
@@ -129,6 +129,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
* imported from another configuration class). </strong>
|
||||
*
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @author Taeik Lim
|
||||
* @since 4.1
|
||||
* @see JobLauncherTestUtils
|
||||
* @see JobRepositoryTestUtils
|
||||
|
||||
Reference in New Issue
Block a user