create more test methods

This commit is contained in:
Peter S 2020-05-04 22:52:57 +08:00
parent 94e23a8f5b
commit 1be99b1349

View file

@ -70,7 +70,7 @@ public class NotesDatabaseTest {
public void testAddDeleteNote() {
long accountID = account.getId();
CloudNote cloudNote = new CloudNote(1, Calendar.getInstance(),
"A Great Day", getCurDate() + " This is a really great day bro.",
"A Great Day", /*getCurDate() + */" This is a really great day bro.",
true, "Diary", null);
// Pre-check
@ -86,6 +86,7 @@ public class NotesDatabaseTest {
Log.i("Test_testAddDeleteNote_Cur_Note", "Title: " + note.getTitle());
Log.i("Test_testAddDeleteNote_Cur_Note", "Content: " + note.getContent());
Log.i("Test_testAddDeleteNote_Cur_Note", "Category: " + note.getCategory());
assertEquals("A Great Day", note.getTitle());
// Check if this note is in all notes
notes = db.getNotes(accountID);
@ -106,6 +107,11 @@ public class NotesDatabaseTest {
Log.i("Test_testAddDeleteNote_All_Notes_After_Deletion", "Size: " + String.valueOf(deleted_size));
}
@Test
public void testAddMultipleNotes() {
}
@Test
public void searchNotes() {
@ -113,6 +119,7 @@ public class NotesDatabaseTest {
@Test
public void getCategories() {
}
@Test
@ -121,10 +128,12 @@ public class NotesDatabaseTest {
@Test
public void setCategory() {
// Unable to test with SSO
}
@Test
public void updateNoteAndSync() {
// Unable to test with SSO
}
@Test