|
5 | 5 | * you may not use this file except in compliance with the License.
|
6 | 6 | * You may obtain a copy of the License at
|
7 | 7 | *
|
8 |
| - * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 | *
|
10 | 10 | * Unless required by applicable law or agreed to in writing, software
|
11 | 11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -75,15 +75,17 @@ public Stream<TestTemplateInvocationContext> provideTestTemplateInvocationContex
|
75 | 75 | EmbeddedServletContainerTest annotation = context.getRequiredTestClass()
|
76 | 76 | .getAnnotation(EmbeddedServletContainerTest.class);
|
77 | 77 | return CONTAINERS.stream()
|
78 |
| - .map((container) -> new ApplicationBuilder(this.tempDir, annotation.packaging(), container)) |
79 |
| - .flatMap((builder) -> { |
80 |
| - return Stream.of(annotation.launchers()) |
81 |
| - .map((launcherClass) -> ReflectionUtils.newInstance(launcherClass, builder, buildOutput)) |
82 |
| - .map((launcher) -> new EmbeddedServletContainerInvocationContext( |
83 |
| - StringUtils.capitalize(builder.getContainer()) + ": " |
84 |
| - + launcher.getDescription(builder.getPackaging()), |
85 |
| - launcher)); |
86 |
| - }); |
| 78 | + .map((container) -> new ApplicationBuilder(this.tempDir, annotation.packaging(), |
| 79 | + container)) |
| 80 | + .flatMap( |
| 81 | + (builder) -> Stream |
| 82 | + .of(annotation.launchers()).map( |
| 83 | + (launcherClass) -> ReflectionUtils.newInstance(launcherClass, builder, |
| 84 | + buildOutput)) |
| 85 | + .map((launcher) -> new EmbeddedServletContainerInvocationContext( |
| 86 | + StringUtils.capitalize(builder.getContainer()) + ": " |
| 87 | + + launcher.getDescription(builder.getPackaging()), |
| 88 | + launcher))); |
87 | 89 | }
|
88 | 90 |
|
89 | 91 | @Override
|
@@ -135,7 +137,7 @@ public Object resolveParameter(ParameterContext parameterContext, ExtensionConte
|
135 | 137 |
|
136 | 138 | }
|
137 | 139 |
|
138 |
| - private static class RestTemplateParameterResolver implements ParameterResolver { |
| 140 | + private static final class RestTemplateParameterResolver implements ParameterResolver { |
139 | 141 |
|
140 | 142 | private final AbstractApplicationLauncher launcher;
|
141 | 143 |
|
|
0 commit comments