Skip to content

Commit

Permalink
Fixed wrong team in project test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoRosendo committed Aug 7, 2023
1 parent 8027707 commit 0fdae7e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand All @@ -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"),
Expand Down Expand Up @@ -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)
)
Expand Down

0 comments on commit 0fdae7e

Please sign in to comment.