我的用例是我正在使用dynamoDB映射器的transactionWrite()方法。我正在TransactionWriteRequest中进行2次放置操作。
现在,当我尝试使用verify(dynamoDBmapper).transactionWrite(writeRequest);
输出
=> Argument(s) are different! Wanted:
[java] dynamoDBMapper.transactionWrite(
[java] ...dynamodbv2.datamodeling.TransactionWriteRequest@4ee37ca3
[java] );
[java] -> at
...MyTestClass.myMethod_withValidData_returnSuccess(MyTestClass.java:99)
[java] Actual invocation has different arguments:
[java] dynamoDBMapper.transactionWrite(
[java] ...dynamodbv2.datamodeling.TransactionWriteRequest@45c8d09f