SHOW:
|
|
- or go back to the newest paste.
1 | package org.openmrs.api; | |
2 | ||
3 | import static junit.framework.Assert.assertEquals; | |
4 | import static junit.framework.Assert.assertTrue; | |
5 | import static org.junit.Assert.*; | |
6 | import junit.framework.Assert; | |
7 | ||
8 | import org.junit.Test; | |
9 | import org.openmrs.Obs; | |
10 | import org.openmrs.api.context.Context; | |
11 | import org.openmrs.api.db.NoteDAO; | |
12 | import org.openmrs.notification.Note; | |
13 | import org.openmrs.notification.NoteService; | |
14 | import org.openmrs.test.Verifies; | |
15 | ||
16 | public class NoteServiceTest { | |
17 | ||
18 | - | //NoteDAO is an interface |
18 | + | |
19 | - | private Note note; |
19 | + | |
20 | - | private NoteDAO dao; |
20 | + | |
21 | - | |
21 | + | |
22 | ||
23 | Note note = noteService.getNote(1); | |
24 | ||
25 | noteService.voidNote(note, "testing void function"); | |
26 | assertTrue(note.getVoided()); | |
27 | } | |
28 | } |