diff --git a/src/test/kotlin/pt/up/fe/ni/website/backend/controller/ProjectControllerTest.kt b/src/test/kotlin/pt/up/fe/ni/website/backend/controller/ProjectControllerTest.kt index ae2c2da4..f95dbf88 100644 --- a/src/test/kotlin/pt/up/fe/ni/website/backend/controller/ProjectControllerTest.kt +++ b/src/test/kotlin/pt/up/fe/ni/website/backend/controller/ProjectControllerTest.kt @@ -1,5 +1,6 @@ package pt.up.fe.ni.website.backend.controller +import pt.up.fe.ni.website.backend.model.constants.ProjectConstants as Constants import com.epages.restdocs.apispec.ResourceDocumentation.parameterWithName import com.fasterxml.jackson.databind.ObjectMapper import java.util.Calendar @@ -27,7 +28,6 @@ import pt.up.fe.ni.website.backend.model.CustomWebsite import pt.up.fe.ni.website.backend.model.Project import pt.up.fe.ni.website.backend.model.TimelineEvent import pt.up.fe.ni.website.backend.model.constants.ActivityConstants -import pt.up.fe.ni.website.backend.model.constants.ProjectConstants as Constants import pt.up.fe.ni.website.backend.repository.AccountRepository import pt.up.fe.ni.website.backend.repository.ProjectRepository import pt.up.fe.ni.website.backend.utils.TestUtils @@ -81,7 +81,7 @@ internal class ProjectControllerTest @Autowired constructor( val testProject = Project( "Awesome project", "this is a test project", - mutableListOf(testAccount2), + mutableListOf(testAccount), mutableListOf(), "awesome-project", "cool-image.png", @@ -93,7 +93,7 @@ internal class ProjectControllerTest @Autowired constructor( listOf( CustomWebsite("https://test-website.com", "https://test-website.com/logo.png", "Test") ), - mutableListOf(testAccount), + mutableListOf(testAccount2), listOf( TimelineEvent(TestUtils.createDate(2020, 7, 28), "This is a new event"), TimelineEvent(TestUtils.createDate(2001, 2, 12), "This is an old event"), @@ -1466,7 +1466,7 @@ internal class ProjectControllerTest @Autowired constructor( ) @Test - fun `should remove a account from project's hall of fame `() { + fun `should remove an account from project's hall of fame`() { mockMvc.perform( put("/projects/{idProject}/removeHallOfFameMember/{idAccount}", testProject.id, testAccount2.id) )