File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -583,7 +583,7 @@ public void testSourceMapExtensions() throws Exception {
583
583
assertThat (sourceMap .has ("google_test" )).isFalse ();
584
584
assertThat (sourceMap .get ("x_google_test" ).getAsJsonObject ().get ("number" ).getAsInt ())
585
585
.isEqualTo (1 );
586
- assertThat (sourceMap .get ("x_google_array" ).getAsJsonArray (). size ()). isEqualTo (0 );
586
+ assertThat (sourceMap .get ("x_google_array" ).getAsJsonArray ()). hasSize (0 );
587
587
assertThat (sourceMap .get ("x_google_int" ).getAsInt ()).isEqualTo (2 );
588
588
assertThat (sourceMap .get ("x_google_str" ).getAsString ()).isEqualTo ("Some text" );
589
589
}
Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ public void testToJson() {
470
470
makeDeps ();
471
471
makeGraph ();
472
472
JsonArray modules = graph .toJson ();
473
- assertThat (modules . size ()). isEqualTo (7 );
473
+ assertThat (modules ). hasSize (7 );
474
474
for (int i = 0 ; i < modules .size (); i ++) {
475
475
JsonObject m = modules .get (i ).getAsJsonObject ();
476
476
assertThat (m .get ("name" )).isNotNull ();
@@ -481,7 +481,7 @@ public void testToJson() {
481
481
JsonObject m = modules .get (3 ).getAsJsonObject ();
482
482
assertThat (m .get ("name" ).getAsString ()).isEqualTo ("moduleD" );
483
483
assertThat (m .get ("dependencies" ).getAsJsonArray ().toString ()).isEqualTo ("[\" moduleB\" ]" );
484
- assertThat (m .get ("transitive-dependencies" ).getAsJsonArray (). size ()). isEqualTo (2 );
484
+ assertThat (m .get ("transitive-dependencies" ).getAsJsonArray ()). hasSize (2 );
485
485
assertThat (m .get ("inputs" ).getAsJsonArray ().toString ()).isEqualTo ("[]" );
486
486
}
487
487
Original file line number Diff line number Diff line change @@ -565,7 +565,7 @@ public void testPrototypeReferences() {
565
565
List <Reference > refs = table .getReferenceList (prototype );
566
566
567
567
// One of the refs is implicit in the declaration of the function.
568
- assertWithMessage (refs .toString ()).that (refs . size ()). isEqualTo (2 );
568
+ assertWithMessage (refs .toString ()).that (refs ). hasSize (2 );
569
569
}
570
570
571
571
@ Test
@@ -635,7 +635,7 @@ public void testPrototypeReferences_es6Class() {
635
635
List <Reference > refs = table .getReferenceList (prototype );
636
636
637
637
// The class declaration creates an implicit .prototype reference.
638
- assertWithMessage (refs .toString ()).that (refs . size ()). isEqualTo (1 );
638
+ assertWithMessage (refs .toString ()).that (refs ). hasSize (1 );
639
639
assertNode (refs .get (0 ).getNode ().getParent ()).hasToken (Token .CLASS );
640
640
}
641
641
You can’t perform that action at this time.
0 commit comments