Matthieu Gautier
b9cf818cce
Update test with new error message
2024-07-02 17:03:27 +02:00
Emmanuel Engelhart
33044e4dea
Fix error message
2024-05-02 17:16:02 +02:00
Matthieu Gautier
d2ace702df
Update tests.
2024-04-22 11:07:23 +02:00
MohitMaliFtechiz
3eabde7434
Fixed testNonExistant
test.
2024-04-20 17:35:53 +05:30
Matthieu Gautier
fa44690eb7
Wrap new methods in kiwix::Library
.
...
- migrateBookmarks
- getBestTargetBookId
2024-02-26 13:46:40 +01:00
Matthieu Gautier
2eb8aa5096
Wrap new methods in libkiwix::Bookmark
.
...
- setBookName, getBookName
- setBookFlavour, getBookFlavour
2024-02-26 13:44:27 +01:00
Emmanuel Engelhart
435cf3a302
searchiterator.getSize() is deprecated
2023-12-16 14:33:35 +01:00
Matthieu Gautier
ed6a302d1c
Add a test on Illustration data coming from book.
2023-11-09 18:00:51 +01:00
Matthieu Gautier
c94a04bbdc
Make next()
throws NoSuchElementException if hasNext is false.
2023-08-07 17:16:40 +02:00
Matthieu Gautier
020c9375a9
Fix typo in setDataDirectory.
...
This is `libkiwix`, not `kiwixlib`.
2023-07-21 10:28:40 +02:00
Matthieu Gautier
ab7bbc1043
Try to trigger gc to call finalize
methods.
2023-06-30 11:54:26 +02:00
Matthieu Gautier
36ad3c0331
Fix indentation.
2023-06-30 11:32:55 +02:00
Matthieu Gautier
9d6ef87b57
Introduce EntryNotFoundException.
2023-06-30 11:32:55 +02:00
Matthieu Gautier
827ab31c38
Better testing of errors.
2023-06-30 10:37:37 +02:00
Matthieu Gautier
c36a29abc4
Wrap all cpp code in a try/catch on create corresponding java exception.
2023-06-29 17:11:50 +02:00
Matthieu Gautier
a2e6381a84
Construct the library different ways.
2023-06-28 15:25:54 +02:00
Matthieu Gautier
ddbf5a08c5
Separate how we test Library from how we create it.
2023-06-28 15:25:54 +02:00
Matthieu Gautier
73039e4ef4
Add a lot of test on libkiwix.
2023-06-28 15:25:54 +02:00
Matthieu Gautier
16ee15021a
Add a full coverage of libzim part.
2023-06-28 15:25:54 +02:00
Matthieu Gautier
eaf9b3aac9
[test] Get the suggestion result from the first result.
2023-06-21 11:39:17 +02:00
Matthieu Gautier
c7ac3a0878
Update test zim file.
...
zim files have been created using a recent version of zimwriterfs
(including the fix for openzim/zim-tools#355
2023-06-21 11:36:36 +02:00
Matthieu Gautier
f9131e901c
Add wrapper for libzim search and suggestion.
2023-06-20 16:47:13 +02:00
Matthieu Gautier
52cc2e48a8
Introduce TestBookmark.
2023-06-14 15:07:38 +02:00
Matthieu Gautier
83a6429565
Introduce TestBook, TestLibrary, TestManager and TestServer.
2023-06-14 14:49:10 +02:00
Matthieu Gautier
80f6920201
Introduce TestItem.java
2023-06-13 17:46:21 +02:00
Matthieu Gautier
d4f2f82e98
Introduce test package.
...
Jacoco don't track native methods, so our code coverage don't
include all the native methods, and it is exactly want we want to check.
By introducing a test package wrapping all native methods with a small
java function, we have the coverage of the wrapping methods.
2023-06-13 17:38:03 +02:00
Matthieu Gautier
3577824507
Deactivate testSearcher()
to fix.
...
`small.zim` doesn't seems to contain a xapian database, so searcher
cannot work.
2023-05-20 17:07:25 +02:00
Matthieu Gautier
9312e32435
Fix illustration.
...
`Book::getIllustration(size)` return a `shared_ptr<Illustration>`.
The current `buildWrapper` was creating a wrapper on a
`shared_ptr<Illustration>` (so a `shared_ptr<shared_ptr<Illustration>>`)
but we was converting to a `shared_ptr<Illustration>` and so we were doing
wrong reads.
By specializing the buildWrapper for `shared_ptr<T>`, we avoid the
"double shared_ptr" and we are good.
2023-05-20 17:07:25 +02:00
Matthieu Gautier
915866a5fe
Make Blob.getData return a byte[] instead of a String.
...
Blob IS a `char[]`. C++ allow a char[] to be stored in a string but in
java, a String is associated to a encoding.
Content in a Blob may have no encoding so we cannot convert to a string.
Fix the test part.
2023-05-20 17:07:25 +02:00
MohitMaliFtechiz
a0fd51228c
Added more test cases for bookmark
2023-05-20 17:07:25 +02:00
MohitMaliFtechiz
c38ccd8015
Added test cases for searcher, SuggestionSearcher. Added test cases for getting books from library
2023-05-20 17:07:25 +02:00
MohitMaliFtechiz
d6e4479621
Added test cases for checking is archive created with invalid zim file , added remove book from library by id tests
2023-05-20 17:07:25 +02:00
MohitMaliFtechiz
f2dfa01a72
Generating .aar file for android and .so file for testing via CmakeList as we are generating the .so file in app/CMakeList now test/CMakeList file is unused so we are removing it
2023-05-20 17:05:18 +02:00
MohitMaliFtechiz
160428de9d
Changes after review
2023-03-22 17:02:01 +05:30
MohitMaliFtechiz
33dd97d5f4
Removed commented code
2023-03-22 15:26:23 +05:30
MohitMaliFtechiz
4ee1e7fddf
Added new test cases for bookmark
2023-03-21 19:04:26 +05:30
MohitMaliFtechiz
57dd239b9a
Remove bookmark test cases added
2023-03-21 18:21:53 +05:30
MohitMali
441a154881
Add book to library for bookmark test
2023-03-14 19:00:10 +05:30
MohitMali
97f2b4d3f4
Added searcher test cases
2023-03-14 19:00:00 +05:30
MohitMali
09539e209e
Added test cases for libkiwix package
2023-03-14 18:52:33 +05:30
MohitMali
7d073926c9
Re-enable failed test cases
2023-03-13 19:05:24 +05:30
MohitMali
45f3e86801
Fixed jacoco report path
2023-03-13 18:55:48 +05:30
MohitMali
38043b0b67
Refactored test cases
2023-03-10 16:37:21 +05:30
Matthieu Gautier
3e02f1733f
Copy test from branch Issue#19
...
zim files has been changed but I don't know why.
Change came from commits 3cd8ed98 and 8bff08ca but it is not explain
what are the changes. @MohitMaliFtechiz ?
2022-12-20 11:53:08 +01:00
Matthieu Gautier
a0d95cb9c6
Move lib/src/main/java/org/kiwix/testing
to lib/src/test
2022-12-20 11:52:11 +01:00