Added test to implement and some tests failed rightnow
This commit is contained in:
parent
67c8b9bf25
commit
4b07793849
@ -57,4 +57,19 @@ public class UserServiceTest {
|
|||||||
assertTrue(true);
|
assertTrue(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void shouldFindStudents() {
|
||||||
|
assertTrue(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void shouldReturnAllStudents() {
|
||||||
|
assertTrue(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void shouldntFindStudents() {
|
||||||
|
assertTrue(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,5 +6,6 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|||||||
spring.jpa.open-in-view=true
|
spring.jpa.open-in-view=true
|
||||||
spring.jpa.hibernate.ddl-auto=create-drop
|
spring.jpa.hibernate.ddl-auto=create-drop
|
||||||
spring.jackson.serialization.fail-on-empty-beans=false
|
spring.jackson.serialization.fail-on-empty-beans=false
|
||||||
|
spring.main.allow-bean-definition-overriding=true
|
||||||
|
|
||||||
server.port=1285
|
server.port=1285
|
@ -3,14 +3,9 @@ package com.plannaplan.controllers;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.plannaplan.App;
|
import com.plannaplan.App;
|
||||||
import com.plannaplan.entities.Course;
|
|
||||||
import com.plannaplan.entities.User;
|
import com.plannaplan.entities.User;
|
||||||
import com.plannaplan.responses.mappers.CoursesResponseMappers;
|
|
||||||
import com.plannaplan.responses.mappers.UserResponseMappers;
|
import com.plannaplan.responses.mappers.UserResponseMappers;
|
||||||
import com.plannaplan.responses.models.GetCoursesResponse;
|
|
||||||
import com.plannaplan.responses.models.GetCoursesWithGroupsResponse;
|
|
||||||
import com.plannaplan.responses.models.SearchForStudentsResponse;
|
import com.plannaplan.responses.models.SearchForStudentsResponse;
|
||||||
import com.plannaplan.services.CourseService;
|
|
||||||
import com.plannaplan.services.UserService;
|
import com.plannaplan.services.UserService;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.plannaplan.controllers;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class UsersControllerTest {
|
||||||
|
@Test
|
||||||
|
public void shouldRestrun200OK() {
|
||||||
|
assertTrue(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void shouldRestrunForbiden() {
|
||||||
|
assertTrue(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void shouldFailedDueToMissingParam() {
|
||||||
|
assertTrue(false);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.plannaplan.responses.mappers;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class UserResponseMappersTest {
|
||||||
|
@Test
|
||||||
|
public void shlouldMapListToResponseList() {
|
||||||
|
assertTrue(false);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.plannaplan.responses.models;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class SearchForStudentsResponseTest {
|
||||||
|
@Test
|
||||||
|
public void shouldMapUserToResponseElement() {
|
||||||
|
assertTrue(false);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user