fix: more tests working, still need fixes
Some checks failed
Format / formatting (push) Failing after 4s
Build / build (push) Failing after 5m8s
CI / build (push) Successful in 10s

This commit is contained in:
Théo Le Lez
2025-04-16 10:36:59 +02:00
parent 55112c8508
commit 6029457735
6 changed files with 168 additions and 18 deletions

View File

@ -62,11 +62,7 @@ public class EntrepreneurService {
public void updateEntrepreneurProjectParticipation(
long idEntrepreneur, Project projectParticipation) {
System.out.println("expected");
System.out.println(getEntrepreneurById(idEntrepreneur));
Entrepreneur entrepreneur = getEntrepreneurById(idEntrepreneur);
System.out.println("test");
System.out.println(entrepreneur);
entrepreneur.setProjectParticipation(projectParticipation);
this.entrepreneurRepository.save(entrepreneur);
}

View File

@ -51,6 +51,12 @@ public class SectionCellService {
this.sectionCellRepository.deleteById(id);
}
public void updateSectionCellReferenceId(Long idSectionCell, Long referenceId) {
SectionCell sectionCell = this.getSectionCellById(idSectionCell);
sectionCell.setIdReference(referenceId);
this.sectionCellRepository.save(sectionCell);
}
public void updateSectionCellContent(long idSectionCell, String content) {
SectionCell sectionCell = getSectionCellById(idSectionCell);
sectionCell.setContentSectionCell(content);