FIX:: checkstyle server user tests

This commit is contained in:
mlwauben
2019-03-26 09:59:00 +01:00
committed by Merel Steenbergen
parent 71ea1e3a4b
commit 8ec3a508eb
4 changed files with 9 additions and 3 deletions

View File

@@ -3,8 +3,9 @@ package greenify.server.data.model;
import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import greenify.common.ApplicationException;
import static org.junit.Assert.assertNotEquals;
import org.junit.Test;
import static org.junit.Assert.*;
import java.util.ArrayList;

View File

@@ -1,7 +1,9 @@
package greenify.server.data.repository;
import static org.junit.Assert.assertEquals;
import greenify.server.data.model.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -57,5 +57,6 @@ public class UserControllerTest {
@Test
public void setInputTest() {
}
}

View File

@@ -73,7 +73,8 @@ public class UserServiceTest {
@Test
public void registerExceptionTest() {
assertThrows(ApplicationException.class, () -> userService.registerUser("alex", "password"));
assertThrows(ApplicationException.class, () ->
userService.registerUser("alex", "password"));
}
@Test
@@ -97,7 +98,8 @@ public class UserServiceTest {
@Test
public void setInputApplicationTestValue() {
assertThrows(ApplicationException.class, () -> userService.setInput("tom", "transportation_num_vehicles", "5.5"));
assertThrows(ApplicationException.class, () ->
userService.setInput("tom", "transportation_num_vehicles", "5.5"));
}
@Test