Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Agaba-derrick committed Nov 17, 2024
1 parent fe81a85 commit 86a4458
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/test/java/org/openelisglobal/note/NoteServiceTest.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package org.openelisglobal.note;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openelisglobal.BaseWebContextSensitiveTest;
import org.openelisglobal.note.service.NoteService;
import org.openelisglobal.note.valueholder.Note;
import org.springframework.beans.factory.annotation.Autowired;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertEquals;

public class NoteServiceTest extends BaseWebContextSensitiveTest {

Expand Down Expand Up @@ -69,9 +70,7 @@ public void deleteAllNotes_shouldClearAllNotes() throws Exception {
note2.setSubject(subject2);
note2.setText(text2);
noteService.insert(note2);

noteService.deleteAll(noteService.getAll());

assertEquals(0, noteService.getAll().size());
}
}

0 comments on commit 86a4458

Please sign in to comment.