File tree Expand file tree Collapse file tree
agentscope-core/src/test/java/io/agentscope/core/tool Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -742,10 +742,10 @@ void testGenericMap_WithCustomClassValue() throws Exception {
742742 Assertions .assertFalse (
743743 ToolTestUtils .isErrorResponse (response ), "Should not fail with ClassCastException" );
744744 String content = ToolTestUtils .extractContent (response );
745- // The order of map entries is not guaranteed, so check for both possibilities
745+ // The order of map entries is not guaranteed, so check that both key-value pairs are present.
746746 Assertions .assertTrue (
747- content .contains ("ProductA" ) && content .contains ("ProductB" ),
748- "Response should contain both product names" );
747+ content .contains ("key1= ProductA" ) && content .contains ("key2= ProductB" ),
748+ "Response should contain both key-value pairs. Actual: " + content );
749749 }
750750
751751 /** Test nested generic types like List<List<Integer>>. */
You can’t perform that action at this time.
0 commit comments