Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.openmrs.api;
- import static junit.framework.Assert.assertEquals;
- import static junit.framework.Assert.assertTrue;
- import static org.junit.Assert.*;
- import junit.framework.Assert;
- import org.junit.Test;
- import org.openmrs.Obs;
- import org.openmrs.api.context.Context;
- import org.openmrs.api.db.NoteDAO;
- import org.openmrs.notification.Note;
- import org.openmrs.notification.NoteService;
- import org.openmrs.test.Verifies;
- public class NoteServiceTest {
- @Test
- @Verifies(value = "should void the Note and set the voidReason", method = "voidNote(Note,String)")
- public void voidNote_shouldVoidTheNoteAndSetTheVoidReason() throws Exception {
- NoteService noteService = Context.getNoteService();
- Note note = noteService.getNote(1);
- noteService.voidNote(note, "testing void function");
- assertTrue(note.getVoided());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement