Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1be99b13 authored by Peter S's avatar Peter S
Browse files

create more test methods

parent 94e23a8f
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -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