Added checkstyle for tests

This commit is contained in:
Marcin Grzejszczak
2019-02-03 15:34:10 +01:00
parent e4b08a083c
commit c6ddfe1af4
61 changed files with 273 additions and 228 deletions

View File

@@ -48,7 +48,8 @@ public class Config implements ApplicationContextInitializer<GenericApplicationC
@Bean
public Function<Foo, Bar> function() {
return value -> new Bar(
value.uppercase() + (this.props.getFoo() != null ? "-" + this.props.getFoo() : ""));
value.uppercase() + (this.props.getFoo() != null ? "-" + this.props
.getFoo() : ""));
}
@Override
@@ -57,8 +58,8 @@ public class Config implements ApplicationContextInitializer<GenericApplicationC
this.props = properties;
context.registerBean(Properties.class, () -> properties);
context.registerBean("function", FunctionRegistration.class,
() -> new FunctionRegistration<Function<Foo, Bar>>(function())
.type(FunctionType.from(Foo.class).to(Bar.class).getType()));
() -> new FunctionRegistration<Function<Foo, Bar>>(function())
.type(FunctionType.from(Foo.class).to(Bar.class).getType()));
}
}

View File

@@ -37,7 +37,7 @@ public class MapTests {
@Test
public void start() throws Exception {
SpringBootRequestHandler<Object, Object> handler = new SpringBootRequestHandler<>(
Config.class);
Config.class);
handler.handleRequest(new Foo("foo"), null);
handler.close();
}