Formatting
This commit is contained in:
@@ -615,9 +615,8 @@ public class JettyEmbeddedServletContainerFactory
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a Jetty {@link ThreadPool} that should be used by the {@link Server}.
|
||||
* If set to {@code null} (default), the {@link Server} creates
|
||||
* a {@link ThreadPool} implicitly.
|
||||
* Set a Jetty {@link ThreadPool} that should be used by the {@link Server}. If set to
|
||||
* {@code null} (default), the {@link Server} creates a {@link ThreadPool} implicitly.
|
||||
* @param threadPool a Jetty ThreadPool to be used
|
||||
*/
|
||||
public void setThreadPool(ThreadPool threadPool) {
|
||||
@@ -898,7 +897,8 @@ public class JettyEmbeddedServletContainerFactory
|
||||
public Server createServer(ThreadPool threadPool) {
|
||||
Server server = new Server();
|
||||
try {
|
||||
ReflectionUtils.findMethod(Server.class, "setThreadPool", ThreadPool.class)
|
||||
ReflectionUtils
|
||||
.findMethod(Server.class, "setThreadPool", ThreadPool.class)
|
||||
.invoke(server, threadPool);
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
@@ -76,8 +76,8 @@ public abstract class JsonObjectDeserializer<T>
|
||||
throws IOException;
|
||||
|
||||
/**
|
||||
* Helper method to extract a value from the given {@code jsonNode} or return {@code null}
|
||||
* when the node itself is {@code null}.
|
||||
* Helper method to extract a value from the given {@code jsonNode} or return
|
||||
* {@code null} when the node itself is {@code null}.
|
||||
* @param jsonNode the source node (may be {@code null}
|
||||
* @param type the data type. May be {@link String}, {@link Boolean}, {@link Long},
|
||||
* {@link Integer}, {@link Short}, {@link Double}, {@link Float}, {@link BigDecimal}
|
||||
|
||||
@@ -157,7 +157,8 @@ public class ImageBannerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void printBannerWhenHasMarginPropertyShouldPrintSizedMargin() throws Exception {
|
||||
public void printBannerWhenHasMarginPropertyShouldPrintSizedMargin()
|
||||
throws Exception {
|
||||
AnsiOutput.setEnabled(AnsiOutput.Enabled.NEVER);
|
||||
String banner = printBanner("large.gif", "banner.image.margin=4");
|
||||
String[] lines = banner.split(NEW_LINE);
|
||||
|
||||
@@ -72,7 +72,8 @@ public class SpringBootJoranConfiguratorTests {
|
||||
@After
|
||||
public void reset() {
|
||||
this.context.stop();
|
||||
new BasicConfigurator().configure((LoggerContext) LoggerFactory.getILoggerFactory());
|
||||
new BasicConfigurator()
|
||||
.configure((LoggerContext) LoggerFactory.getILoggerFactory());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -58,12 +58,12 @@ public class NodeEntityScanTests {
|
||||
this.thrown.expectMessage("Unable to configure "
|
||||
+ "SessionFactoryFactoryBean from @NodeEntityScan, "
|
||||
+ "ensure an appropriate bean is registered.");
|
||||
this.context = new AnnotationConfigApplicationContext(MissingSessionFactory.class);
|
||||
this.context = new AnnotationConfigApplicationContext(
|
||||
MissingSessionFactory.class);
|
||||
}
|
||||
|
||||
private void assertSetPackagesToScan(String... expected) {
|
||||
String[] actual = this.context
|
||||
.getBean(TestSessionFactoryProvider.class)
|
||||
String[] actual = this.context.getBean(TestSessionFactoryProvider.class)
|
||||
.getPackagesToScan();
|
||||
assertThat(actual).isEqualTo(expected);
|
||||
}
|
||||
@@ -87,9 +87,7 @@ public class NodeEntityScanTests {
|
||||
static class MissingSessionFactory {
|
||||
}
|
||||
|
||||
|
||||
private static class TestSessionFactoryProvider
|
||||
extends SessionFactoryProvider {
|
||||
private static class TestSessionFactoryProvider extends SessionFactoryProvider {
|
||||
|
||||
private String[] packagesToScan;
|
||||
|
||||
|
||||
@@ -63,7 +63,8 @@ public class InternalOutputCapture implements TestRule {
|
||||
try {
|
||||
if (!InternalOutputCapture.this.matchers.isEmpty()) {
|
||||
String output = InternalOutputCapture.this.toString();
|
||||
Assert.assertThat(output, allOf(InternalOutputCapture.this.matchers));
|
||||
Assert.assertThat(output,
|
||||
allOf(InternalOutputCapture.this.matchers));
|
||||
}
|
||||
}
|
||||
finally {
|
||||
|
||||
Reference in New Issue
Block a user