@@ -337,9 +337,9 @@ class NavDeepLinkTest {
337
337
assertWithMessage(" Args should not be null" )
338
338
.that(matchArgs)
339
339
.isNotNull()
340
- assertWithMessage(" Args should contain the argument and it should be null " )
341
- .that(matchArgs?.getString (" myarg" ))
342
- .isNull ()
340
+ assertWithMessage(" Args should not contain the argument" )
341
+ .that(matchArgs?.containsKey (" myarg" ))
342
+ .isFalse ()
343
343
}
344
344
345
345
// Ensure case when matching the exact argument query (i.e. param names in braces) is handled
@@ -374,9 +374,9 @@ class NavDeepLinkTest {
374
374
assertWithMessage(" Args should not be null" )
375
375
.that(matchArgs)
376
376
.isNotNull()
377
- assertWithMessage(" Args should contain the argument and it should be null " )
378
- .that(matchArgs?.getString (" myarg" ))
379
- .isNull ()
377
+ assertWithMessage(" Args should not contain the argument" )
378
+ .that(matchArgs?.containsKey (" myarg" ))
379
+ .isFalse ()
380
380
}
381
381
382
382
@Test
@@ -451,9 +451,9 @@ class NavDeepLinkTest {
451
451
assertWithMessage(" Args should contain the id" )
452
452
.that(matchArgs?.getInt(" id" ))
453
453
.isEqualTo(id)
454
- assertWithMessage(" Args should contain optional" )
455
- .that(matchArgs?.getString (" optional" ))
456
- .isNull ()
454
+ assertWithMessage(" Args should not contain optional" )
455
+ .that(matchArgs?.containsKey (" optional" ))
456
+ .isFalse ()
457
457
}
458
458
459
459
// Make sure we allow extra params that may not been part of the given deep link
@@ -541,9 +541,9 @@ class NavDeepLinkTest {
541
541
assertWithMessage(" Args should not be null" )
542
542
.that(matchArgs)
543
543
.isNotNull()
544
- assertWithMessage(" Args should contain the argument and it should be null " )
545
- .that(matchArgs?.getString (" myarg" ))
546
- .isNull ()
544
+ assertWithMessage(" Args should not contain the argument" )
545
+ .that(matchArgs?.containsKey (" myarg" ))
546
+ .isFalse ()
547
547
}
548
548
549
549
@Test
@@ -579,9 +579,9 @@ class NavDeepLinkTest {
579
579
assertWithMessage(" Args should not be null" )
580
580
.that(matchArgs)
581
581
.isNotNull()
582
- assertWithMessage(" Args should contain the argument and it should be null " )
583
- .that(matchArgs?.getString (" myarg" ))
584
- .isNull ()
582
+ assertWithMessage(" Args should not contain the argument" )
583
+ .that(matchArgs?.containsKey (" myarg" ))
584
+ .isFalse ()
585
585
}
586
586
587
587
@Test
@@ -632,9 +632,9 @@ class NavDeepLinkTest {
632
632
assertWithMessage(" Args should not be null" )
633
633
.that(matchArgs)
634
634
.isNotNull()
635
- assertWithMessage(" Args should contain the argument and it should be null " )
636
- .that(matchArgs?.getString (" myarg" ))
637
- .isNull ()
635
+ assertWithMessage(" Args should not contain the argument" )
636
+ .that(matchArgs?.containsKey (" myarg" ))
637
+ .isFalse ()
638
638
}
639
639
640
640
@Test
@@ -745,12 +745,12 @@ class NavDeepLinkTest {
745
745
assertWithMessage(" Args should not be null" )
746
746
.that(matchArgs)
747
747
.isNotNull()
748
- assertWithMessage(" Args should contain the first name" )
749
- .that(matchArgs?.getString (" first" ))
750
- .isNull ()
751
- assertWithMessage(" Args should contain the last name" )
752
- .that(matchArgs?.getString (" last" ))
753
- .isNull ()
748
+ assertWithMessage(" Args should not contain the first name" )
749
+ .that(matchArgs?.containsKey (" first" ))
750
+ .isFalse ()
751
+ assertWithMessage(" Args should not contain the last name" )
752
+ .that(matchArgs?.containsKey (" last" ))
753
+ .isFalse ()
754
754
}
755
755
756
756
@Test
@@ -804,9 +804,9 @@ class NavDeepLinkTest {
804
804
assertWithMessage(" Args should not be null" )
805
805
.that(matchArgs)
806
806
.isNotNull()
807
- assertWithMessage(" Args should contain arg as null " )
808
- .that(matchArgs?.getString (" myarg" ))
809
- .isNull ()
807
+ assertWithMessage(" Args should not contain the argument " )
808
+ .that(matchArgs?.containsKey (" myarg" ))
809
+ .isFalse ()
810
810
}
811
811
812
812
// Handle the case were the input is wild card and separator with no argument
@@ -918,9 +918,9 @@ class NavDeepLinkTest {
918
918
assertWithMessage(" Args should not be null" )
919
919
.that(matchArgs)
920
920
.isNotNull()
921
- assertWithMessage(" Args should contain the path as null " )
922
- .that(matchArgs?.getString (" path" ))
923
- .isNull ()
921
+ assertWithMessage(" Args should not contain the path" )
922
+ .that(matchArgs?.containsKey (" path" ))
923
+ .isFalse ()
924
924
}
925
925
926
926
// Handle the case were the input could be entire path except for the argument
0 commit comments