FIX:: checkstyle server user tests
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package greenify.server.data.model;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotEquals;
|
||||
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class UserTest {
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,8 @@ public class UserServiceTest {
|
||||
|
||||
@Test
|
||||
public void registerExceptionTest() {
|
||||
assertThrows(ApplicationException.class, () -> userService.registerUser("alex", "password"));
|
||||
assertThrows(ApplicationException.class, () ->
|
||||
userService.registerUser("alex", "password"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -92,7 +93,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"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user