Skip to content

Commit

Permalink
Polish formatting in NoAutowiredTest.kt, NoRequestMappingAnnotationTe…
Browse files Browse the repository at this point in the history
…st.kt and ReplaceDeprecatedEnvironmentTestUtilsTest.kt
  • Loading branch information
pway99 committed Jun 25, 2021
1 parent f2a5921 commit a245586
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class NoAutowiredTest : JavaRecipeTest {
public class DatabaseConfiguration {
private final DataSource dataSource;
public DatabaseConfiguration(DataSource dataSource) {
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class NoRequestMappingAnnotationTest : JavaRecipeTest {
public ResponseEntity<String> getUser(@PathVariable("id") Long id) {
return null;
}
@GetMapping
public ResponseEntity<List<String>> getUsersNoRequestMethod() {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class ReplaceDeprecatedEnvironmentTestUtilsTest : JavaRecipeTest {
assertChanged(
before = """
package com.mycompany;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import static org.springframework.boot.test.util.EnvironmentTestUtils.addEnvironment;
Expand Down Expand Up @@ -70,6 +71,7 @@ class ReplaceDeprecatedEnvironmentTestUtilsTest : JavaRecipeTest {
assertChanged(
before = """
package com.mycompany;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import static org.springframework.boot.test.util.EnvironmentTestUtils.addEnvironment;
Expand Down Expand Up @@ -130,6 +132,7 @@ class ReplaceDeprecatedEnvironmentTestUtilsTest : JavaRecipeTest {
fun givenChainedCallsReplacesThemWithAFluentSetOfCalls() = assertChanged(
before = """
package com.mycompany;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import static org.springframework.boot.test.util.EnvironmentTestUtils.addEnvironment;
Expand Down

0 comments on commit a245586

Please sign in to comment.