Merge previously split strings
Merge some string lines that were previously split because of the 90 chars wide formatting.
This commit is contained in:
@@ -79,7 +79,7 @@ public class TestDatabaseAutoConfiguration {
|
||||
@Override
|
||||
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
|
||||
Assert.isInstanceOf(ConfigurableListableBeanFactory.class, registry,
|
||||
"Test Database Auto-configuration can only be " + "used with a ConfigurableListableBeanFactory");
|
||||
"Test Database Auto-configuration can only be used with a ConfigurableListableBeanFactory");
|
||||
process(registry, (ConfigurableListableBeanFactory) registry);
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ public class TestDatabaseAutoConfiguration {
|
||||
private BeanDefinitionHolder getDataSourceBeanDefinition(ConfigurableListableBeanFactory beanFactory) {
|
||||
String[] beanNames = beanFactory.getBeanNamesForType(DataSource.class);
|
||||
if (ObjectUtils.isEmpty(beanNames)) {
|
||||
logger.warn("No DataSource beans found, " + "embedded version will not be used");
|
||||
logger.warn("No DataSource beans found, embedded version will not be used");
|
||||
return null;
|
||||
}
|
||||
if (beanNames.length == 1) {
|
||||
@@ -122,7 +122,7 @@ public class TestDatabaseAutoConfiguration {
|
||||
return new BeanDefinitionHolder(beanDefinition, beanName);
|
||||
}
|
||||
}
|
||||
logger.warn("No primary DataSource found, " + "embedded version will not be used");
|
||||
logger.warn("No primary DataSource found, embedded version will not be used");
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ public class TestDatabaseAutoConfiguration {
|
||||
Assert.state(connection != EmbeddedDatabaseConnection.NONE,
|
||||
"Failed to replace DataSource with an embedded database for tests. If "
|
||||
+ "you want an embedded database please put a supported one "
|
||||
+ "on the classpath or tune the replace attribute of " + "@AutoConfigureTestDatabase.");
|
||||
+ "on the classpath or tune the replace attribute of @AutoConfigureTestDatabase.");
|
||||
return new EmbeddedDatabaseBuilder().generateUniqueName(true).setType(connection.getType()).build();
|
||||
}
|
||||
|
||||
|
||||
@@ -108,9 +108,9 @@ public class MockRestServiceServerAutoConfiguration {
|
||||
private RequestExpectationManager getDelegate() {
|
||||
Map<RestTemplate, RequestExpectationManager> expectationManagers = this.customizer.getExpectationManagers();
|
||||
Assert.state(!expectationManagers.isEmpty(), "Unable to use auto-configured MockRestServiceServer since "
|
||||
+ "MockServerRestTemplateCustomizer has not been bound to " + "a RestTemplate");
|
||||
+ "MockServerRestTemplateCustomizer has not been bound to a RestTemplate");
|
||||
Assert.state(expectationManagers.size() == 1, "Unable to use auto-configured MockRestServiceServer since "
|
||||
+ "MockServerRestTemplateCustomizer has been bound to " + "more than one RestTemplate");
|
||||
+ "MockServerRestTemplateCustomizer has been bound to more than one RestTemplate");
|
||||
return expectationManagers.values().iterator().next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user