@@ -24,6 +24,7 @@ import kotlin.math.ceil
24
24
import kotlin.math.log10
25
25
import kotlin.math.pow
26
26
import org.junit.Assert.assertEquals
27
+ import org.junit.Assert.assertTrue
27
28
import org.junit.Test
28
29
import org.junit.runner.RunWith
29
30
import org.junit.runners.JUnit4
@@ -444,7 +445,7 @@ class ManualCodeTest {
444
445
// Override the discriminator in the input payload with the short version,
445
446
// since that's what we will produce.
446
447
inPayload.setShortDiscriminatorValue(inPayload.getShortDiscriminatorValue())
447
- assertThat (inPayload == outPayload)
448
+ assertEquals (inPayload, outPayload)
448
449
}
449
450
450
451
/*
@@ -464,7 +465,7 @@ class ManualCodeTest {
464
465
// Override the discriminator in the input payload with the short version,
465
466
// since that's what we will produce.
466
467
inPayload.setShortDiscriminatorValue(inPayload.getShortDiscriminatorValue())
467
- assertThat (inPayload == outPayload)
468
+ assertEquals (inPayload, outPayload)
468
469
}
469
470
470
471
/*
@@ -479,15 +480,15 @@ class ManualCodeTest {
479
480
480
481
try {
481
482
ManualOnboardingPayloadParser .checkDecimalStringValidity(representationWithoutCheckDigit)
482
- assertThat (false )
483
+ assertTrue (false )
483
484
} catch (e: Exception ) {
484
485
println (" Expected exception occurred: ${e.message} " )
485
486
}
486
487
487
488
representationWithoutCheckDigit = " 1"
488
489
try {
489
490
ManualOnboardingPayloadParser .checkDecimalStringValidity(representationWithoutCheckDigit)
490
- assertThat (false )
491
+ assertTrue (false )
491
492
} catch (e: Exception ) {
492
493
println (" Expected exception occurred: ${e.message} " )
493
494
}
@@ -516,28 +517,28 @@ class ManualCodeTest {
516
517
517
518
try {
518
519
ManualOnboardingPayloadParser .checkCodeLengthValidity(" 01234567891" , false )
519
- assertThat (false )
520
+ assertTrue (false )
520
521
} catch (e: Exception ) {
521
522
println (" Expected exception occurred: ${e.message} " )
522
523
}
523
524
524
525
try {
525
526
ManualOnboardingPayloadParser .checkCodeLengthValidity(" 012345678" , false )
526
- assertThat (false )
527
+ assertTrue (false )
527
528
} catch (e: Exception ) {
528
529
println (" Expected exception occurred: ${e.message} " )
529
530
}
530
531
531
532
try {
532
533
ManualOnboardingPayloadParser .checkCodeLengthValidity(" 012345678901234567891" , true )
533
- assertThat (false )
534
+ assertTrue (false )
534
535
} catch (e: Exception ) {
535
536
println (" Expected exception occurred: ${e.message} " )
536
537
}
537
538
538
539
try {
539
540
ManualOnboardingPayloadParser .checkCodeLengthValidity(" 0123456789012345678" , true )
540
- assertThat (false )
541
+ assertTrue (false )
541
542
} catch (e: Exception ) {
542
543
println (" Expected exception occurred: ${e.message} " )
543
544
}
@@ -562,14 +563,14 @@ class ManualCodeTest {
562
563
563
564
try {
564
565
ManualOnboardingPayloadParser .toNumber(" 012345.123456789" )
565
- assertThat (false )
566
+ assertTrue (false )
566
567
} catch (e: Exception ) {
567
568
println (" Expected exception occurred: ${e.message} " )
568
569
}
569
570
570
571
try {
571
572
ManualOnboardingPayloadParser .toNumber(" /" )
572
- assertThat (false )
573
+ assertTrue (false )
573
574
} catch (e: Exception ) {
574
575
println (" Expected exception occurred: ${e.message} " )
575
576
}
@@ -631,22 +632,22 @@ class ManualCodeTest {
631
632
try {
632
633
index.set(1 )
633
634
ManualOnboardingPayloadParser .readDigitsFromDecimalString(" 12345" , index, 5 )
634
- assertThat (false )
635
+ assertTrue (false )
635
636
} catch (e: Exception ) {
636
637
println (" Expected exception occurred: ${e.message} " )
637
638
}
638
639
639
640
try {
640
641
ManualOnboardingPayloadParser .readDigitsFromDecimalString(" 12" , index, 5 )
641
- assertThat (false )
642
+ assertTrue (false )
642
643
} catch (e: Exception ) {
643
644
println (" Expected exception occurred: ${e.message} " )
644
645
}
645
646
646
647
try {
647
648
index.set(200 )
648
649
ManualOnboardingPayloadParser .readDigitsFromDecimalString(" 6256276377282" , index, 1 )
649
- assertThat (false )
650
+ assertTrue (false )
650
651
} catch (e: Exception ) {
651
652
println (" Expected exception occurred: ${e.message} " )
652
653
}
0 commit comments