Formatting

This commit is contained in:
Phillip Webb
2018-05-25 23:52:38 -07:00
parent 2215709165
commit 3702da4573
32 changed files with 195 additions and 199 deletions

View File

@@ -72,8 +72,8 @@ public class JestAutoConfigurationTests {
@Test
public void jestClientOnLocalhostByDefault() {
this.contextRunner.run((context) ->
assertThat(context).hasSingleBean(JestClient.class));
this.contextRunner
.run((context) -> assertThat(context).hasSingleBean(JestClient.class));
}
@Test
@@ -130,11 +130,12 @@ public class JestAutoConfigurationTests {
Map<String, String> source = new HashMap<>();
source.put("a", "alpha");
source.put("b", "bravo");
Index index = new Index.Builder(source).index("foo")
.type("bar").id("1").build();
Index index = new Index.Builder(source).index("foo").type("bar")
.id("1").build();
execute(client, index);
Get getRequest = new Get.Builder("foo", "1").build();
assertThat(execute(client, getRequest).getResponseCode()).isEqualTo(200);
assertThat(execute(client, getRequest).getResponseCode())
.isEqualTo(200);
}));
}

View File

@@ -100,6 +100,7 @@ public class RestClientAutoConfigurationTests {
public RestClient customRestClient() {
return mock(RestClient.class);
}
}
@Configuration
@@ -109,6 +110,7 @@ public class RestClientAutoConfigurationTests {
public RestClientBuilderCustomizer myCustomizer() {
return (builder) -> builder.setMaxRetryTimeoutMillis(42);
}
}
}

View File

@@ -181,15 +181,13 @@ public class LiquibaseAutoConfigurationTests {
@Test
public void overrideTestRollbackOnUpdate() {
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class)
.withPropertyValues(
"spring.liquibase.test-rollback-on-update:true")
.withPropertyValues("spring.liquibase.test-rollback-on-update:true")
.run((context) -> {
SpringLiquibase liquibase = context.getBean(SpringLiquibase.class);
assertThat(liquibase.isTestRollbackOnUpdate()).isTrue();
});
}
@Test
public void changeLogDoesNotExist() {
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class)