fix: comparaison between two projects instead of their IDs

This commit is contained in:
Pierre Tellier
2025-04-06 20:14:43 +02:00
parent aaa6e46d0c
commit 9e1f568ea4
2 changed files with 10 additions and 1 deletions
MyINPulse-back/src
main
java
enseirb
myinpulse
test

@ -87,13 +87,17 @@ public class EntrepreneurApiServiceTest {
@Test
void editValidSectionCell() {
System.out.println("START\n\n\n");
entrepreneurApiService.editSectionCell(
IterableToList(sectionCells).getFirst().getIdSectionCell(),
"modified content",
"entrepreneur@mail.fr");
// We get the data from the database again.
sectionCells = sectionCellService.getSectionCellsByProject(project, 2L);
assertEquals(
"modified content",
IterableToList(sectionCells).getFirst().getContentSectionCell());
System.out.println("END\n\n\n");
}
@Test