Refactor bootique (#2380)

This commit is contained in:
Grzegorz Piwowarek 2017-08-06 13:23:19 +02:00 committed by GitHub
parent 40b3cc7d2b
commit b6e59c2ae7
8 changed files with 64 additions and 71 deletions

View File

@ -1,16 +1,15 @@
package com.baeldung.bootique;
import java.util.function.Supplier;
import com.baeldung.bootique.module.ModuleBinder;
import com.baeldung.bootique.router.IndexController;
import com.baeldung.bootique.router.SaveController;
import com.google.inject.Module;
import io.bootique.Bootique;
import io.bootique.jersey.JerseyModule;
import io.bootique.log.BootLogger;
import java.util.function.Supplier;
public class App {
public static void main(String[] args) {

View File

@ -1,7 +1,6 @@
package com.baeldung.bootique.module;
import com.google.inject.Module;
import io.bootique.BQModuleProvider;
public class ModuleProvider implements BQModuleProvider {

View File

@ -1,11 +1,11 @@
package com.baeldung.bootique.router;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import com.baeldung.bootique.service.HelloService;
import com.google.inject.Inject;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
@Path("/save")
public class SaveController {

View File

@ -1,15 +1,13 @@
package com.baeldung.bootique;
import static org.junit.Assert.assertEquals;
import org.junit.Rule;
import org.junit.Test;
import com.baeldung.bootique.service.HelloService;
import io.bootique.BQRuntime;
import io.bootique.test.junit.BQDaemonTestFactory;
import io.bootique.test.junit.BQTestFactory;
import org.junit.Rule;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class AppTest {

View File

@ -1,15 +1,11 @@
package com.baeldung.hashcode.application;
import com.baeldung.hashcode.entities.User;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class ApplicationTest {

View File

@ -38,6 +38,7 @@
<module>apache-thrift</module>
<module>autovalue</module>
<module>axon</module>
<module>bootique</module>
<module>cdi</module>
<!-- <module>core-java-9</module> -->