文件名称:aws-mockito-request-matcher:一个 Mockito 匹配器,它使我更容易阅读验证和何时使用 aws 请求对象
文件大小:8KB
文件格式:ZIP
更新时间:2024-07-14 04:41:20
Java
AWS 请求对象的 #Mockito 匹配器 一个匹配,使得verify和when有点与AWS的请求打交道时更具可读性。 你可以这样做: verify(ec2Client) . deleteSnapshot( new DeleteSnapshotRequest () . withSnapshotId( " test_snapshot " )); 但这读起来容易一些 verify(ec2Client) . deleteSnapshot( awsRqst(r - > r . getSnapshotId() . equals( " test_snapshot " ))); 或这个: @Test public void itShouldTerminateTheInstanceUponUnbind() { aws . terminateEc2Instance( " test_ins
【文件预览】:
aws-mockito-request-matcher-master
----pom.xml(742B)
----LICENSE(11KB)
----src()
--------main()
----.gitignore(40B)
----README.md(2KB)