Polish
See gh-20020
This commit is contained in:
committed by
Stephane Nicoll
parent
05e7cd6f2b
commit
b67ece48e4
@@ -64,7 +64,7 @@ class CompositeHealthTests {
|
||||
CompositeHealth health = new CompositeHealth(ApiVersion.V3, Status.UP, components);
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
String json = mapper.writeValueAsString(health);
|
||||
assertThat(json).isEqualTo("{\"status\":\"UP\",\"components\":{" + "\"db1\":{\"status\":\"UP\"},"
|
||||
assertThat(json).isEqualTo("{\"status\":\"UP\",\"components\":{\"db1\":{\"status\":\"UP\"},"
|
||||
+ "\"db2\":{\"status\":\"DOWN\",\"details\":{\"a\":\"b\"}}}}");
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class CompositeHealthTests {
|
||||
CompositeHealth health = new CompositeHealth(ApiVersion.V2, Status.UP, components);
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
String json = mapper.writeValueAsString(health);
|
||||
assertThat(json).isEqualTo("{\"status\":\"UP\",\"details\":{" + "\"db1\":{\"status\":\"UP\"},"
|
||||
assertThat(json).isEqualTo("{\"status\":\"UP\",\"details\":{\"db1\":{\"status\":\"UP\"},"
|
||||
+ "\"db2\":{\"status\":\"DOWN\",\"details\":{\"a\":\"b\"}}}}");
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ class SystemHealthTests {
|
||||
CompositeHealth health = new SystemHealth(ApiVersion.V3, Status.UP, components, groups);
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
String json = mapper.writeValueAsString(health);
|
||||
assertThat(json).isEqualTo("{\"status\":\"UP\",\"components\":{" + "\"db1\":{\"status\":\"UP\"},"
|
||||
assertThat(json).isEqualTo("{\"status\":\"UP\",\"components\":{\"db1\":{\"status\":\"UP\"},"
|
||||
+ "\"db2\":{\"status\":\"DOWN\",\"details\":{\"a\":\"b\"}}},"
|
||||
+ "\"groups\":[\"liveness\",\"readiness\"]}");
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ public class CacheAutoConfiguration {
|
||||
@Override
|
||||
public void afterPropertiesSet() {
|
||||
Assert.notNull(this.cacheManager.getIfAvailable(),
|
||||
() -> "No cache manager could be auto-configured, check your configuration (caching " + "type is '"
|
||||
() -> "No cache manager could be auto-configured, check your configuration (caching type is '"
|
||||
+ this.cacheProperties.getType() + "')");
|
||||
}
|
||||
|
||||
|
||||
@@ -183,8 +183,7 @@ class HibernateJpaConfiguration extends JpaBaseConfiguration {
|
||||
// containers (e.g. JBoss EAP 6) wrap it in the superclass LinkageError
|
||||
if (!isUsingJndi()) {
|
||||
throw new IllegalStateException(
|
||||
"Unable to set Hibernate JTA platform, are you using the correct " + "version of Hibernate?",
|
||||
ex);
|
||||
"Unable to set Hibernate JTA platform, are you using the correct version of Hibernate?", ex);
|
||||
}
|
||||
// Assume that Hibernate will use JNDI
|
||||
if (logger.isDebugEnabled()) {
|
||||
|
||||
@@ -55,7 +55,7 @@ class JarCommandIT {
|
||||
invocation.await();
|
||||
assertThat(invocation.getStandardOutput()).isEqualTo("");
|
||||
assertThat(invocation.getErrorOutput())
|
||||
.contains("The name of the " + "resulting jar and at least one source file must be specified");
|
||||
.contains("The name of the resulting jar and at least one source file must be specified");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -64,7 +64,7 @@ class JarCommandIT {
|
||||
invocation.await();
|
||||
assertThat(invocation.getStandardOutput()).isEqualTo("");
|
||||
assertThat(invocation.getErrorOutput())
|
||||
.contains("The name of the " + "resulting jar and at least one source file must be specified");
|
||||
.contains("The name of the resulting jar and at least one source file must be specified");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -30,7 +30,7 @@ import static org.hamcrest.Matchers.isA;
|
||||
@ClassPathExclusions("hibernate-validator-*.jar")
|
||||
class ModifiedClassPathExtensionExclusionsTests {
|
||||
|
||||
private static final String EXCLUDED_RESOURCE = "META-INF/services/" + "javax.validation.spi.ValidationProvider";
|
||||
private static final String EXCLUDED_RESOURCE = "META-INF/services/javax.validation.spi.ValidationProvider";
|
||||
|
||||
@Test
|
||||
void entriesAreFilteredFromTestClassClassLoader() {
|
||||
|
||||
Reference in New Issue
Block a user