Benoit Marty
a3b6bb3ec3
Fix test compilation warning after bump kotlin-gradle-plugin from 1.6.0 to 1.6.21
2022-05-10 17:46:59 +02:00
Benoit Marty
f54aa60803
Fix test compilation warning after bump kotlin-gradle-plugin from 1.6.0 to 1.6.21
2022-05-10 17:00:54 +02:00
Travis Ralston
c63a5c0201
Remove spec v1.3 check for threads
...
Citation: https://matrix.to/#/!ewdjhNcPcEmYNKzlWp:t2l.io/$CkPuvKdFZyFL547JCy5J3MfvLaWUo_a1XEdmiop1PKc?via=matrix.org&via=element.io&via=envs.net
2022-05-09 16:36:43 -06:00
ericdecanini
3fb03e2b2c
Reformats project based on editorconfig
2022-05-05 19:10:35 +02:00
Benoit Marty
3bcfd7c103
Fix tests
2022-04-28 11:03:46 +02:00
Benoit Marty
729a2e6372
Move pushrules package to the session package
2022-04-21 12:30:11 +02:00
ericdecanini
9b479ca8c0
Merge remote-tracking branch 'origin/develop' into bugfix/eric/softlogout-ux-broken
2022-04-20 18:23:27 +02:00
Benoit Marty
c9bbf6c53a
Move RecoveryKey functions to api package
2022-04-12 15:38:20 +02:00
Benoit Marty
ccce552097
Move md5() extension to api package
2022-04-12 15:38:20 +02:00
ericdecanini
ce579c1dd3
Merge remote-tracking branch 'origin/develop' into bugfix/eric/softlogout-ux-broken
...
# Conflicts:
# vector/src/main/java/im/vector/app/features/login/LoginActivity.kt
# vector/src/main/java/im/vector/app/features/signout/soft/SoftLogoutController.kt
2022-03-28 15:59:50 +02:00
Benoit Marty
012cdf4b4d
runBlocking -> runTest
...
https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-test/MIGRATION.md
2022-03-22 16:52:18 +01:00
Benoit Marty
86829008c3
runBlockingTest -> runTest
...
https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-test/MIGRATION.md
2022-03-22 16:39:39 +01:00
ericdecanini
a173accfa5
Replaces use of LoginType.value with name
2022-03-15 14:59:09 +01:00
ericdecanini
ae540297b1
Adds custom and direct login types
2022-03-15 14:53:59 +01:00
ariskotsomitopoulos
d215f03798
Merge branch 'develop' into feature/aris/thread_live_thread_list
2022-03-14 12:02:04 +01:00
ariskotsomitopoulos
f31b130b49
Fix unit tests
2022-03-10 19:11:14 +02:00
ericdecanini
bbc6e8bbce
Replaces caught Exception with HttpException
2022-03-09 16:41:18 +01:00
ericdecanini
70b5b9855a
Removes debug global error
2022-03-09 12:26:52 +01:00
ericdecanini
82b5fc9557
Removes unused imports
2022-03-08 16:50:49 +01:00
ericdecanini
e5299d716c
Fixes legal comments
2022-03-08 13:15:26 +01:00
ericdecanini
0af6ae6075
Adds logic for using stable and unstable hierarchy endpoints
2022-03-08 13:10:18 +01:00
ericdecanini
6836a12557
Fixes legal comments
2022-03-07 13:49:23 +01:00
ericdecanini
e1f227a545
Fixes legal comments in matrix sdk files added
2022-03-07 13:14:10 +01:00
ericdecanini
0d75273121
Adds stubbing and verification for migration setRequired
2022-03-07 12:22:25 +01:00
ericdecanini
6338941885
Temporarily removes unit tests
2022-03-07 10:28:48 +01:00
ericdecanini
858923846d
Adds Uri static mocking
2022-03-07 09:56:44 +01:00
ariskotsomitopoulos
bce5bc8389
Fix wrong versioning regex pattern
...
Add MSC3440 support using /version/ and /capabilities
2022-03-05 17:13:02 +02:00
ericdecanini
9bd3254e41
Removes HomeServerConnectionConfigFixture in fake adapter
2022-03-04 23:27:21 +01:00
ericdecanini
7896bf9023
Removes HomeServerConnectionConfigFixture
2022-03-04 21:36:10 +01:00
ericdecanini
2d07b80ace
Fixes broken migration test
2022-03-04 21:14:27 +01:00
ericdecanini
c996f876a2
Fixes Uri EMPTY must not be null
2022-03-04 21:10:52 +01:00
ericdecanini
489670cf6b
Adds validation failed test for SessionParamsCreator
2022-03-04 21:07:12 +01:00
ericdecanini
bb2369dad2
Fixes broken tests due to uninitialised HomeServerConnectionConfig homeServerUri
2022-03-04 15:02:03 +01:00
ericdecanini
275505b3e6
Fixes lint errors
2022-03-04 14:53:16 +01:00
ericdecanini
32bde5a344
Adds loginType UNSUPPORTED
2022-03-04 14:24:47 +01:00
ericdecanini
40dee006dd
Refactors SessionCreator with added tests
2022-03-03 17:51:50 +01:00
ericdecanini
47d5d09af2
Fixes lint errors
2022-03-03 14:46:11 +01:00
ericdecanini
d3d99dd3ba
Replaces mocks with fixtures in fake json adapters
2022-03-03 13:21:04 +01:00
ericdecanini
b82efe95bd
Moves test packages
2022-03-03 13:18:02 +01:00
ericdecanini
dffd568e14
Adds AuthTo005 realm migration
2022-03-03 13:14:49 +01:00
ericdecanini
d33081c349
Refactors SessionParamsMapperTest by adding fake json adapters
2022-03-03 11:47:31 +01:00
ericdecanini
187502c358
Refactors SessionParamsMapperTest by adding fake moshi
2022-03-03 11:32:23 +01:00
ericdecanini
25e73e5bd0
Adds SessionParamsMapper tests
2022-03-03 10:56:07 +01:00
Adam Brown
63e9e07d5e
using correct license for matrix-sdk test
2021-10-27 16:42:35 +01:00
Adam Brown
9949779b62
ensuring the store migration class is always equal to other store migration instances
...
- is needed as realm will throw if multiple migration instances are created and they don't match
2021-10-27 15:01:26 +01:00
Adam Brown
69bb554e20
lifting the request executor to its own file in the network package
...
- also creates a dedicated RequestModule instead of providing the executor via the pushers module
2021-10-12 11:39:14 +01:00
Adam Brown
aff787bb29
extracting the test fakes to their own package
2021-10-12 11:39:14 +01:00
Adam Brown
b7c911feee
adding test cases for when adding a pusher fails and when it already exists
2021-10-12 11:39:14 +01:00
Adam Brown
48d9dfb82d
adding test for the add pusher task happy flow
...
- introduces the concepts of Fakes for handling the dependencies, unforuntately realm/monarchy aren't very testable in their current state so we'll need to use mocks
2021-10-12 11:39:14 +01:00
Benoit Marty
d1e9f3131a
Big annoying commit: execute command ./gradlew ktlintFormat - Fix "colon-spacing"
2021-10-01 13:31:15 +02:00
Benoit Marty
2ca3c68611
Big annoying commit: execute command ./gradlew ktlintFormat - Fix "import-ordering"
2021-10-01 13:31:15 +02:00
Benoit Marty
fc22376050
Ignore warning in test.
...
There is probably a better way than using the GlobalScope, but I'm not sure how to do it now.
2021-09-03 17:02:14 +02:00
Benoit Marty
6a0ea11e7a
Follow the spec regarding waveform content
2021-07-13 17:58:14 +02:00
Benoit Marty
4189db0f89
Use Junit import
2021-05-04 10:50:31 +02:00
Valere
0d3c2b4bef
Fix space filtering
2021-04-28 11:15:58 +02:00
Benoit Marty
96b37a8206
Fix typo
2021-03-18 10:57:28 +01:00
Benoit Marty
f6032da788
Add more test
2021-03-18 10:44:15 +01:00
Benoit Marty
da9f0c6667
Fix an issue discovered by unit test
2021-03-18 10:44:15 +01:00
Benoit Marty
103ba463c3
Create getBetsChunkSize to avoid code duplication
2021-03-18 10:44:15 +01:00
Benoit Marty
8de4b0bb20
Small formatting
2021-01-08 15:55:32 +01:00
Benoit Marty
68947588d7
Replace deprecated shouldEqual and shouldEqualTo by shouldBeEqualTo
2020-10-12 22:30:18 +02:00
Benoit Marty
44114e66c2
Fix Copyright mention in SDK code
2020-10-08 15:04:55 +02:00
Benoit Marty
5e0fc3e17f
Rename class
2020-08-25 17:34:43 +02:00
Benoit Marty
1a068ee191
Add more tests
2020-08-25 17:34:02 +02:00
Benoit Marty
8226f60fad
Refactor test to avoid duplicated code
2020-08-25 17:31:51 +02:00
Benoit Marty
2e618999d9
Words containing my name should not trigger notifications ( Fixes #1781 )
...
It adds a specific behavior for rule with id RuleIds.RULE_ID_CONTAIN_USER_NAME
2020-08-25 17:26:54 +02:00
Benoit Marty
11b5512cb8
Rename package of SDK modules
2020-08-13 12:50:58 +02:00
Benoit Marty
532f5e58ea
Move class Versions to internal package
2020-06-04 11:30:24 +02:00
Benoit Marty
57a5714fb5
Add the ability to compare Homeserver version ( #1442 )
2020-06-04 11:24:31 +02:00
Benoit Marty
af0b798ef1
Ensure Timber log output when running tests
...
to squash
2020-04-24 13:38:28 +02:00
Benoit Marty
6349f9828d
Optimize import
2020-02-26 16:59:20 +01:00
Benoit Marty
f81eb298cb
Cleanup QRCode v1
2020-02-19 18:06:51 +01:00
Benoit Marty
66a2958c39
Add unit test to check byte array to string conversion
2020-02-19 14:21:41 +01:00
Ganard
a305ce302e
Coroutine sequencer: use semaphore
2020-02-14 19:37:51 +01:00
Benoit Marty
dd13b6bd99
Add test for DisplayName condition (passing)
2020-02-07 15:44:46 +01:00
Benoit Marty
9df699db59
Reorder tests
2020-02-07 15:35:09 +01:00
Benoit Marty
8bdb2b88fd
make the test compile
2020-02-07 15:32:36 +01:00
Benoit Marty
80f4f95f81
QRCode: requestId is not supposed to be an eventId
2020-01-31 11:11:27 +01:00
Benoit Marty
fb98d6ef42
QRCode: add other_device_key field and make it optional, along with other_user_key
2020-01-30 16:46:12 +01:00
Benoit Marty
2bccd19f84
QRcode: Url encode the keys
2020-01-30 10:17:04 +01:00
Benoit Marty
8b6ffc2fb1
ktlint
2020-01-29 16:18:33 +01:00
Valere
63e36b0403
Remove unused test
2020-01-29 10:16:57 +01:00
Benoit Marty
df49ab8362
QR code: update code which build URL
2020-01-28 15:48:09 +01:00
Benoit Marty
c323b61575
Ignore typo
2020-01-22 18:27:59 +01:00
Benoit Marty
cbf418c401
Update after MSC change
2020-01-22 18:22:01 +01:00
Benoit Marty
41c691f26c
Create QrCodeData class and method to convert to URL and vice versa, with TUs
2020-01-22 17:58:25 +01:00
Valere
6ab540045b
Refactoring / deprecation of MXDeviceInfo
...
introduced TrustLevels
2020-01-21 10:25:57 +01:00
Benoit Marty
35f011ba37
Fix ktlint issues
2020-01-09 14:20:17 +01:00
Benoit Marty
93cdce6c3e
Cleanup tests
2020-01-09 14:20:17 +01:00
Benoit Marty
ae3381227c
Add Unit tests from legacy SDK
2020-01-09 14:20:17 +01:00
Benoit Marty
e14b9b3b20
Fix test compilation issue
2020-01-09 08:03:14 +01:00
ganfra
5dd46e82d7
Sync: make only one big transaction to avoid having bad states
2019-12-13 18:21:44 +01:00
ganfra
fe2be90002
Sync: use the CoroutineSequencer but need more tests
2019-12-13 15:37:38 +01:00
ganfra
eab94b4f03
Sequencer: handle cancellation
2019-12-12 14:30:40 +01:00
ganfra
6b61c95843
Coroutines: introduce a sequencer
2019-12-11 20:39:07 +01:00
ganfra
ad9a48d5fa
Clean code
2019-11-05 18:36:30 +01:00
ganfra
93df8c56a8
Fix compilation error and use mockk instead of manual mocking (prone to error)
2019-11-04 17:09:03 +01:00
Benoit Marty
7c567b04bb
Make test compile and pass
2019-10-24 16:36:12 +02:00
Benoit Marty
723a007c39
Merge pull request #626 from vector-im/feature/myUserIdInject
...
Inject userId where possible
2019-10-21 16:01:48 +02:00
Benoit Marty
cd0a40c18d
Fix compil test issue
2019-10-18 14:34:44 +02:00
Benoit Marty
17636019e0
Change order of parameters
2019-10-18 14:32:34 +02:00
Benoit Marty
3622c0ecb4
Mark all as read
2019-10-11 16:22:32 +02:00
Benoit Marty
fbb23dfb66
ktlint: fix (no-empty-first-line-in-method-block) issues
2019-10-09 16:43:12 +02:00
Benoit Marty
15dc4d6369
Fix ktlint issue automatically by running ./ktlint --android -v -F
2019-10-09 15:24:05 +02:00
Benoit Marty
03f8120b7d
Create enum for Push rules. Also add some TODOs
2019-09-20 17:50:15 +02:00
Benoit Marty
65e123d87f
Split long lines
2019-07-11 13:32:28 +02:00
Valere
d0b145d031
Edit emote
2019-07-11 12:29:02 +02:00
Benoit Marty
7a08a11b19
Fix compilation of test
2019-07-10 18:17:03 +02:00
Valere
3aa30e5f15
Fix reply of reply
2019-07-10 18:06:44 +02:00
ganfra
dd07f5c2a6
TimelineEvent : update sender data when loading room members and prune event (+ remove RoomSummaryMapper param)
2019-07-08 15:32:24 +02:00
Benoit Marty
f41c0311fa
Fix done TODO
2019-07-03 11:58:50 +02:00
Benoit Marty
0f039fce32
Add 30 missing copyright block
2019-06-28 15:59:20 +02:00
Benoit Marty
71ae99012b
Code review and cleanup
2019-06-26 12:19:54 +02:00
Valere
1feb1f9c3f
Fix test
2019-06-26 12:19:54 +02:00
Valere
4e6b34b9d1
Fix issues on Notification Event resolver
2019-06-26 12:19:54 +02:00
Valere
0584fc3666
Get real push rules from server and evaluate them
2019-06-26 12:19:54 +02:00
Valere
0e46fc4c0a
WIP
2019-06-26 12:19:54 +02:00
Benoit Marty
1436667e7d
Crypto
2019-05-16 10:34:17 +02:00
ganfra
0266380485
Start introducing tests
2018-12-11 15:36:09 +01:00
ganfra
b406e8301a
first commit
2018-10-03 17:58:12 +02:00