File tree Expand file tree Collapse file tree
pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ void PDFBox6150() throws IOException
170170
171171 field .setValue ("DE" );
172172
173- assertTrue ("DE" . equals ( field .getValue ().get (0 ) ), "The fields value should be set to DE" );
173+ assertEquals ("DE" , field .getValue ().get (0 ), "The fields value should be set to DE" );
174174
175175 // Read the content of the normal appearance stream and check that it contains the display value for DE
176176 // which is Deutschland
Original file line number Diff line number Diff line change 2121import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
2222import static org .junit .jupiter .api .Assertions .assertEquals ;
2323import static org .junit .jupiter .api .Assertions .assertFalse ;
24+ import static org .junit .jupiter .api .Assertions .assertNotEquals ;
2425import static org .junit .jupiter .api .Assertions .assertNotNull ;
2526import static org .junit .jupiter .api .Assertions .assertNull ;
2627import static org .junit .jupiter .api .Assertions .assertThrows ;
@@ -395,14 +396,14 @@ void testEquals()
395396
396397 // Different fields should not be equal
397398 field2 .setPartialName ("differentField" );
398- assertFalse (field1 . equals ( field2 ) );
399+ assertNotEquals (field1 , field2 );
399400
400401 // Field should equal itself
401402 assertEquals (field1 , field1 );
402403
403404 // Field should not equal null or other types
404- assertFalse (field1 . equals ( null ) );
405- assertFalse (field1 . equals ( "not a field" ) );
405+ assertNotNull (field1 );
406+ assertNotEquals (field1 , "not a field" );
406407 }
407408
408409 /**
You can’t perform that action at this time.
0 commit comments