Commit 60eace17 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #14172 from izeye:polish-20180823

* pr/14172:
  Polish
parents 1b7f7134 9602a32a
......@@ -191,14 +191,11 @@ public class LocalDevToolsAutoConfiguration {
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof ContextRefreshedEvent) {
if (event instanceof ContextRefreshedEvent
|| (event instanceof ClassPathChangedEvent
&& !((ClassPathChangedEvent) event).isRestartRequired())) {
this.liveReloadServer.triggerReload();
}
if (event instanceof ClassPathChangedEvent) {
if (!((ClassPathChangedEvent) event).isRestartRequired()) {
this.liveReloadServer.triggerReload();
}
}
}
@Override
......
......@@ -1290,7 +1290,7 @@ To specify a session timeout of 30 seconds, `30`, `PT30S` and `30s` are all equi
read timeout of 500ms can be specified in any of the following form: `500`, `PT0.5S` and
`500ms`.
You can also use any of the supported unit. These are:
You can also use any of the supported units. These are:
* `ns` for nanoseconds
* `us` for microseconds
......@@ -1331,7 +1331,7 @@ include::{code-examples}/context/properties/bind/AppIoProperties.java[tag=exampl
To specify a buffer size of 10 megabytes, `10` and `10MB` are equivalent. A size threshold
of 256 bytes can be specified as `256` or `256B`.
You can also use any of the supported unit. These are:
You can also use any of the supported units. These are:
* `B` for bytes
* `KB` for kilobytes
......
......@@ -40,8 +40,7 @@ public class DataLdapTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
}
......@@ -40,8 +40,7 @@ public class DataMongoTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
}
......@@ -50,8 +50,7 @@ public class DataNeo4jTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
static class Initializer
......
......@@ -50,8 +50,7 @@ public class DataRedisTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
static class Initializer
......
......@@ -40,8 +40,7 @@ public class JdbcTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
}
......@@ -40,8 +40,7 @@ public class JooqTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
}
......@@ -40,8 +40,7 @@ public class JsonTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
}
......@@ -40,8 +40,7 @@ public class DataJpaTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
}
......@@ -40,8 +40,7 @@ public class RestClientTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
}
......@@ -40,8 +40,7 @@ public class WebFluxTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
}
......@@ -40,8 +40,7 @@ public class WebMvcTestPropertiesIntegrationTests {
@Test
public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test");
assertThat(this.environment.getActiveProfiles()).containsExactly("test");
}
}
......@@ -86,9 +86,9 @@ class NoSuchMethodFailureAnalyzer extends AbstractFailureAnalyzer<NoSuchMethodEr
private List<URL> findCandidates(String className) {
try {
return Collections.list((NoSuchMethodFailureAnalyzer.class.getClassLoader()
return Collections.list(NoSuchMethodFailureAnalyzer.class.getClassLoader()
.getResources(ClassUtils.convertClassNameToResourcePath(className)
+ ".class")));
+ ".class"));
}
catch (Throwable ex) {
return null;
......
......@@ -27,7 +27,7 @@ import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.mock;
/**
* Create a mock {@link TypeDescriptor} with optional {@link DataUnit} annotation.
* Create a mock {@link TypeDescriptor} with optional {@link DataSizeUnit} annotation.
*
* @author Stephane Nicoll
*/
......
......@@ -30,7 +30,9 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
/**
* @author awilkinson
* Tests for {@link NoSuchMethodFailureAnalyzer}.
*
* @author Andy Wilkinson
*/
@RunWith(ModifiedClassPathRunner.class)
@ClassPathOverrides("javax.servlet:servlet-api:2.5")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment