From fafd94f4696835b8c36450f71785b645c07b364f Mon Sep 17 00:00:00 2001 From: Filip Izydorczyk Date: Thu, 14 Jan 2021 14:51:22 +0100 Subject: [PATCH] Added test --- restservice/src/main/java/com/plannaplan/App.java | 4 +++- .../com/plannaplan/controllers/CommisionControllerTest.java | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/restservice/src/main/java/com/plannaplan/App.java b/restservice/src/main/java/com/plannaplan/App.java index 5369a49..30f7817 100755 --- a/restservice/src/main/java/com/plannaplan/App.java +++ b/restservice/src/main/java/com/plannaplan/App.java @@ -46,7 +46,9 @@ public class App { /** * method to import mocked data to testing app after startz. It is called only - * in dev profile + * in dev profile. Note that tests are written to this app state so if you + * change ConfigData it can have an impact to other tests like + * CommisionControllerTest */ @EventListener(ApplicationReadyEvent.class) public void importData() { diff --git a/restservice/src/test/java/com/plannaplan/controllers/CommisionControllerTest.java b/restservice/src/test/java/com/plannaplan/controllers/CommisionControllerTest.java index 500693c..25990f5 100755 --- a/restservice/src/test/java/com/plannaplan/controllers/CommisionControllerTest.java +++ b/restservice/src/test/java/com/plannaplan/controllers/CommisionControllerTest.java @@ -15,7 +15,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. import java.nio.charset.Charset; import com.plannaplan.entities.User; -import com.plannaplan.services.ConfiguratorService; import com.plannaplan.services.UserService; import com.plannaplan.types.UserRoles;