Search in sources :

Example 1 with HelloService

use of com.baeldung.bootique.service.HelloService in project tutorials by eugenp.

the class AppTest method givenService_expectBoolen.

@Test
public void givenService_expectBoolen() {
    BQRuntime runtime = bqTestFactory.app("--server").autoLoadModules().createRuntime();
    HelloService service = runtime.getInstance(HelloService.class);
    assertEquals(true, service.save());
}
Also used : BQRuntime(io.bootique.BQRuntime) HelloService(com.baeldung.bootique.service.HelloService) Test(org.junit.Test)

Aggregations

HelloService (com.baeldung.bootique.service.HelloService)1 BQRuntime (io.bootique.BQRuntime)1 Test (org.junit.Test)1