Mercurial > hg > SpringPlayground
view spring-boot-playground/src/main/java/de/comline/spring/service/CustomLogicService.java @ 8:7ce4367b50bc
Ein echter Unit Test, der eine in-memory H2 als Teil vom Test startet, das Schema mit liquibase erzeugt und nach dem Test wieder stoppt. Das alles ohne die Web Controller zu starten.
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Thu, 13 Aug 2020 16:51:05 +0200 |
parents | 60afb461bf6c |
children |
line wrap: on
line source
package de.comline.spring.service; import org.springframework.stereotype.Service; @Service public class CustomLogicService { public String doit() { return "this is the custom logic"; } }