FIX:: checkstyle server user tests
This commit is contained in:
committed by
Merel Steenbergen
parent
71ea1e3a4b
commit
8ec3a508eb
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -57,5 +57,6 @@ public class UserControllerTest {
|
||||
|
||||
@Test
|
||||
public void setInputTest() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user