Loading app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java +10 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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); Loading @@ -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() { Loading @@ -113,6 +119,7 @@ public class NotesDatabaseTest { @Test public void getCategories() { } @Test Loading @@ -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 Loading Loading
app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java +10 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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); Loading @@ -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() { Loading @@ -113,6 +119,7 @@ public class NotesDatabaseTest { @Test public void getCategories() { } @Test Loading @@ -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 Loading