File tree Expand file tree Collapse file tree 6 files changed +18
-6
lines changed
spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli Expand file tree Collapse file tree 6 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import org .junit .jupiter .api .Test ;
20
20
import org .junit .jupiter .api .extension .ExtendWith ;
21
+ import org .junit .jupiter .api .extension .RegisterExtension ;
21
22
22
23
import org .springframework .boot .test .system .CapturedOutput ;
23
24
import org .springframework .boot .test .system .OutputCaptureExtension ;
32
33
@ ExtendWith (OutputCaptureExtension .class )
33
34
class ClassLoaderIntegrationTests {
34
35
35
- private final CliTester cli ;
36
+ @ RegisterExtension
37
+ CliTester cli ;
36
38
37
39
ClassLoaderIntegrationTests (CapturedOutput capturedOutput ) {
38
40
this .cli = new CliTester ("src/test/resources/" , capturedOutput );
Original file line number Diff line number Diff line change 18
18
19
19
import org .junit .jupiter .api .Test ;
20
20
import org .junit .jupiter .api .extension .ExtendWith ;
21
+ import org .junit .jupiter .api .extension .RegisterExtension ;
21
22
22
23
import org .springframework .boot .test .system .CapturedOutput ;
23
24
import org .springframework .boot .test .system .OutputCaptureExtension ;
32
33
@ ExtendWith (OutputCaptureExtension .class )
33
34
class DirectorySourcesIntegrationTests {
34
35
35
- private final CliTester cli ;
36
+ @ RegisterExtension
37
+ CliTester cli ;
36
38
37
39
DirectorySourcesIntegrationTests (CapturedOutput capturedOutput ) {
38
40
this .cli = new CliTester ("src/test/resources/dir-sample/" , capturedOutput );
Original file line number Diff line number Diff line change 22
22
import org .junit .jupiter .api .BeforeEach ;
23
23
import org .junit .jupiter .api .Test ;
24
24
import org .junit .jupiter .api .extension .ExtendWith ;
25
+ import org .junit .jupiter .api .extension .RegisterExtension ;
25
26
26
27
import org .springframework .boot .cli .command .grab .GrabCommand ;
27
28
import org .springframework .boot .test .system .CapturedOutput ;
40
41
@ ExtendWith (OutputCaptureExtension .class )
41
42
class GrabCommandIntegrationTests {
42
43
43
- private final CliTester cli ;
44
+ @ RegisterExtension
45
+ CliTester cli ;
44
46
45
47
GrabCommandIntegrationTests (CapturedOutput capturedOutput ) {
46
48
this .cli = new CliTester ("src/test/resources/grab-samples/" , capturedOutput );
Original file line number Diff line number Diff line change 20
20
21
21
import org .junit .jupiter .api .Test ;
22
22
import org .junit .jupiter .api .extension .ExtendWith ;
23
+ import org .junit .jupiter .api .extension .RegisterExtension ;
23
24
24
25
import org .springframework .boot .test .system .CapturedOutput ;
25
26
import org .springframework .boot .test .system .OutputCaptureExtension ;
37
38
@ ExtendWith (OutputCaptureExtension .class )
38
39
class ReproIntegrationTests {
39
40
40
- private final CliTester cli ;
41
+ @ RegisterExtension
42
+ CliTester cli ;
41
43
42
44
ReproIntegrationTests (CapturedOutput capturedOutput ) {
43
45
this .cli = new CliTester ("src/test/resources/repro-samples/" , capturedOutput );
Original file line number Diff line number Diff line change 22
22
import org .junit .jupiter .api .BeforeEach ;
23
23
import org .junit .jupiter .api .Test ;
24
24
import org .junit .jupiter .api .extension .ExtendWith ;
25
+ import org .junit .jupiter .api .extension .RegisterExtension ;
25
26
26
27
import org .springframework .boot .cli .command .run .RunCommand ;
27
28
import org .springframework .boot .test .system .CapturedOutput ;
37
38
@ ExtendWith (OutputCaptureExtension .class )
38
39
class RunCommandIntegrationTests {
39
40
40
- private final CliTester cli ;
41
+ @ RegisterExtension
42
+ CliTester cli ;
41
43
42
44
RunCommandIntegrationTests (CapturedOutput capturedOutput ) {
43
45
this .cli = new CliTester ("src/it/resources/run-command/" , capturedOutput );
Original file line number Diff line number Diff line change 22
22
import org .junit .jupiter .api .Disabled ;
23
23
import org .junit .jupiter .api .Test ;
24
24
import org .junit .jupiter .api .extension .ExtendWith ;
25
+ import org .junit .jupiter .api .extension .RegisterExtension ;
25
26
26
27
import org .springframework .boot .test .system .CapturedOutput ;
27
28
import org .springframework .boot .test .system .OutputCaptureExtension ;
39
40
@ ExtendWith (OutputCaptureExtension .class )
40
41
class SampleIntegrationTests {
41
42
42
- private final CliTester cli ;
43
+ @ RegisterExtension
44
+ CliTester cli ;
43
45
44
46
SampleIntegrationTests (CapturedOutput capturedOutput ) {
45
47
this .cli = new CliTester ("samples/" , capturedOutput );
You can’t perform that action at this time.
0 commit comments