Merge pull request #8076 from izeye:polish-20170124

* pr/8076:
  Polish
pull/7763/merge
Stephane Nicoll 8 years ago
commit 5d95fb6d56

@ -83,7 +83,6 @@ public class AuditEventTests {
Collections.singletonMap("type", (Object) "BadCredentials")); Collections.singletonMap("type", (Object) "BadCredentials"));
String json = Jackson2ObjectMapperBuilder.json().build() String json = Jackson2ObjectMapperBuilder.json().build()
.writeValueAsString(event); .writeValueAsString(event);
System.out.println(json);
JSONObject jsonObject = new JSONObject(json); JSONObject jsonObject = new JSONObject(json);
assertThat(jsonObject.getString("type")).isEqualTo("UNKNOWN"); assertThat(jsonObject.getString("type")).isEqualTo("UNKNOWN");
assertThat(jsonObject.getJSONObject("data").getString("type")) assertThat(jsonObject.getJSONObject("data").getString("type"))

@ -196,10 +196,10 @@ class OnClassCondition extends SpringBootCondition
} }
} }
private List<String> getMatches(Collection<String> candiates, MatchType matchType, private List<String> getMatches(Collection<String> candidates, MatchType matchType,
ClassLoader classLoader) { ClassLoader classLoader) {
List<String> matches = new ArrayList<String>(candiates.size()); List<String> matches = new ArrayList<String>(candidates.size());
for (String candidate : candiates) { for (String candidate : candidates) {
if (matchType.matches(candidate, classLoader)) { if (matchType.matches(candidate, classLoader)) {
matches.add(candidate); matches.add(candidate);
} }

@ -2186,7 +2186,7 @@ application starts for testing. If you want to be more sophisticated you can use
profile-specific configuration to customize `flyway.locations` so that certain migrations profile-specific configuration to customize `flyway.locations` so that certain migrations
will only run when a particular profile is active. For example, in will only run when a particular profile is active. For example, in
`application-dev.properties` you could set `flyway.locations` to `application-dev.properties` you could set `flyway.locations` to
`classpath:/db/migration, claspath:/dev/db/migration` and migrations in `dev/db/migration` `classpath:/db/migration, classpath:/dev/db/migration` and migrations in `dev/db/migration`
will only run when the `dev` profile is active. will only run when the `dev` profile is active.

@ -1579,7 +1579,7 @@ it's loaded too early. You need to either use `logback-spring.xml` or define a
WARNING: The extensions cannot be used with Logback's WARNING: The extensions cannot be used with Logback's
http://logback.qos.ch/manual/configuration.html#autoScan[configuration scanning]. If you http://logback.qos.ch/manual/configuration.html#autoScan[configuration scanning]. If you
attempt to do so, making changes to the configuration file will result in an error similar attempt to do so, making changes to the configuration file will result in an error similar
to once of the following being logged: to one of the following being logged:
---- ----
ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:71 - no applicable action for [springProperty], current ElementPath is [[configuration][springProperty]] ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:71 - no applicable action for [springProperty], current ElementPath is [[configuration][springProperty]]

@ -108,7 +108,7 @@ public class AutoConfigureAnnotationProcessorTests {
} }
private Properties compile(Class<?>... types) throws IOException { private Properties compile(Class<?>... types) throws IOException {
TestConditionMetdataAnnotationProcessor processor = new TestConditionMetdataAnnotationProcessor( TestConditionMetadataAnnotationProcessor processor = new TestConditionMetadataAnnotationProcessor(
this.compiler.getOutputLocation()); this.compiler.getOutputLocation());
this.compiler.getTask(types).call(processor); this.compiler.getTask(types).call(processor);
return processor.getWrittenProperties(); return processor.getWrittenProperties();

@ -35,12 +35,12 @@ import javax.annotation.processing.SupportedAnnotationTypes;
"org.springframework.boot.autoconfigureprocessor.TestAutoConfigureBefore", "org.springframework.boot.autoconfigureprocessor.TestAutoConfigureBefore",
"org.springframework.boot.autoconfigureprocessor.TestAutoConfigureAfter", "org.springframework.boot.autoconfigureprocessor.TestAutoConfigureAfter",
"org.springframework.boot.autoconfigureprocessor.TestAutoConfigureOrder" }) "org.springframework.boot.autoconfigureprocessor.TestAutoConfigureOrder" })
public class TestConditionMetdataAnnotationProcessor public class TestConditionMetadataAnnotationProcessor
extends AutoConfigureAnnotationProcessor { extends AutoConfigureAnnotationProcessor {
private final File outputLocation; private final File outputLocation;
public TestConditionMetdataAnnotationProcessor(File outputLocation) { public TestConditionMetadataAnnotationProcessor(File outputLocation) {
this.outputLocation = outputLocation; this.outputLocation = outputLocation;
} }

@ -19,7 +19,7 @@ package org.springframework.boot.autoconfigureprocessor;
import java.io.OutputStream; import java.io.OutputStream;
/** /**
* Test configuration with an annoated method. * Test configuration with an annotated method.
* *
* @author Madhura Bhave * @author Madhura Bhave
*/ */

Loading…
Cancel
Save