Formatting
This commit is contained in:
@@ -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);
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user