Commit graph

33 commits

Author SHA1 Message Date
Peter S
13c20ae4ac provide a demo of searchCategories 2020-05-05 01:05:56 +08:00
Hui-Ouyang16
89f98a7678 refactor some test case and find a bug in searchNotes 2020-05-04 23:52:11 +08:00
Peter S
1be99b1349 create more test methods 2020-05-04 22:52:58 +08:00
Hui-Ouyang16
94e23a8f5b fixed the timezone problem 2020-05-04 22:01:18 +08:00
Peter S
261c7cd7a0 add a first test method: testAddDeleteNote 2020-05-04 21:45:57 +08:00
Peter S
e1e37740e1 add an instrumented test to test NotesDatabase.java 2020-05-04 19:46:39 +08:00
Stefan Niedermann
f07605d3a6 Initial support for instrumented tests 2020-04-18 23:23:38 +02:00
stefan-niedermann
75bdb4c2cc Mock TextUtils and moved NoteLinksUtilsTest to test package
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-24 18:48:20 +01:00
Christoph Loy
ea0bfdfd90 Revert unneeded diffs in NoteLinksUtilsTest 2020-02-24 18:25:15 +01:00
Christoph Loy
f61701487c Move NoteLinksUtilsTest back to androidTest and revert to using TextUtils in NoteLinksUtils 2020-02-24 18:25:15 +01:00
Christoph Loy
eb9cba14f3 Move Tests from androidTests to tests 2020-02-24 18:25:15 +01:00
stefan-niedermann
a72e2a03d4 Add MarkdownUtilTest
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-23 18:16:07 +01:00
stefan-niedermann
8848b73d92 Adjust some old unit tests
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-23 17:39:43 +01:00
stefan-niedermann
196bc2c3b8 Merge branch '623-note-links' of https://github.com/lenzls/nextcloud-notes
# Conflicts:
#	app/build.gradle
#	app/src/main/java/it/niedermann/owncloud/notes/android/fragment/NotePreviewFragment.java
2020-01-18 09:01:06 +01:00
Simon Lenz
ebe5f73429 #623 - implement note-to-note links 2019-12-28 14:19:49 +01:00
stefan-niedermann
dc0fa0c56b Chores 2019-10-12 16:47:06 +02:00
Niedermann IT-Dienstleistungen
45aeab0270 Introduce ButterKnife and code reformat
http://jakewharton.github.io/butterknife/
2018-04-11 15:37:28 +02:00
Niedermann IT-Dienstleistungen
ec492b85ec #358 Better URL handling 2018-04-09 11:27:34 +02:00
schaarsc
231de0a64c integrate cert4android 2017-06-26 22:48:03 +02:00
korelstar
accb42b756 speed-up synchronization and introduce categories 2017-02-26 09:20:05 +01:00
Niedermann IT-Dienstleistungen
958759f84f Rx markdown, Undo for "Swipe to delete", Nextcloud rebrand
Rx markdown, Undo for "Swipe to delete", Nextcloud rebrand
2017-01-19 11:00:56 +01:00
korelstar
8384792d27 New Feature: set note as favorite; refactoring NotesListViewActivity.refreshList (#151)
Fix #118 Every touch brings to the top
Fix #92 Option to change sort method
2016-11-06 20:39:34 +01:00
korelstar
abf8dc4702 Extend "excerpt" with text from the following lines (#138)
Use multiple lines up to 200 characters for generating excerpt
2016-10-17 22:01:18 +02:00
korelstar
ee084e4565 Fix #87 Heading doesn't allow hyphens
Enhancing removeMarkDown
2016-10-17 21:36:08 +02:00
korelstar
d9b3d87ac0 Fixing sychronization and concurrency issues (#123)
* Improved presentation of errors if login (SettingsActivity) or synchronization fails.

* Show icon if a note is not synchronized (hint to a possible error)

* Refactoring: move common code to new private method getNotesRawQuery(String sql, String[] selectionArgs)
New method getLocalModifiedNotes() is a preparation for bugfixing #117

* last part from the previous refactoring

* use material design icon and remove old holo icon

* Refactoring NoteSQLiteOpenHelper and NoteServerSyncHelper in order to fix several bugs belonging concurrency and synchronization. Outstanding: documentation, testing, cosmetic changes

* Show icon if a note is not synchronized (hint to a possible error)

* Refactoring: move common code to new private method getNotesRawQuery(String sql, String[] selectionArgs)
New method getLocalModifiedNotes() is a preparation for bugfixing #117

* last part from the previous refactoring

* use material design icon and remove old holo icon

* Refactoring NoteSQLiteOpenHelper and NoteServerSyncHelper in order to fix several bugs belonging concurrency and synchronization. Outstanding: documentation, testing, cosmetic changes

* only pull remote changes if this was demanded by the caller

* restructure the communication between synchronization task and user interface using callbacks, only try to sync if not offline, otherwise show an error message.

* updateNoteAndSync(): only make database changes, if the content really changed (see #104)

* javadoc and cleanup

* Bugfix for EditNoteActivity: invoke callbacks directly if note wasn't changed in edit (before, callback was never invoked in this case)

* Make sure, that saveDataWithUI is not called, when the previous saveAndSync is still running. In addition, start next saveAndSync not before a small delay has passed.

* rename auto-sync method; adjust DELAYs

* Quick Bugfix: Toast in AsyncTask have to be in onPostExecute

* Bugfix: save edited note in offline mode, too

* Bugfix: Show error message in UI thread

* reduce writes to local storage

* reduce logging

* Refactor: remove recurrent code

* UI enhancement when editing notes (with no changes)
2016-08-13 21:10:19 +02:00
Stefan Niedermann
ef67a889ec #27 use black background for widgets 2015-10-23 12:09:49 +02:00
Stefan Niedermann
ba5b309d8f Fix Unit Tests 2015-10-23 11:48:15 +02:00
Stefan Niedermann
9a1ed65f24 Fix Compliation Errors and added some Tests 2015-10-23 11:39:52 +02:00
Stefan Niedermann
e92f1156c2 create new instance of NoteSQLiteOpenHelper on SettingsChangedEvent 2015-10-21 19:05:20 +02:00
Stefan Niedermann
f9a2efc692 Removed AndDown-Dependency and switched to Bypass library 2015-10-21 17:47:07 +02:00
Stefan Niedermann
727c8a93f2 - Fix #6 (Show Excerpt instead of Modified Date in List-View)
- Add some further JUnit Tests
2015-10-06 22:51:56 +02:00
Stefan Niedermann
9097f0050a Add some basic JUnit Tests 2015-10-06 21:10:23 +02:00
Stefan Niedermann
820540ce48 Initial commit 2015-10-01 17:54:20 +02:00