FIX:: checkstyle server user tests

This commit is contained in:
mlwauben
2019-03-26 09:59:00 +01:00
parent 72cb770861
commit d8ced45a67
4 changed files with 10 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
package greenify.server.data.model; package greenify.server.data.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import org.junit.Test; import org.junit.Test;
import static org.junit.Assert.*;
public class UserTest { public class UserTest {

View File

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

View File

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

View File

@@ -68,7 +68,8 @@ public class UserServiceTest {
@Test @Test
public void registerExceptionTest() { public void registerExceptionTest() {
assertThrows(ApplicationException.class, () -> userService.registerUser("alex", "password")); assertThrows(ApplicationException.class, () ->
userService.registerUser("alex", "password"));
} }
@Test @Test
@@ -92,7 +93,8 @@ public class UserServiceTest {
@Test @Test
public void setInputApplicationTestValue() { 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"));
} }