将注释设置为 ChocoDino order completed by Kwesi。
实现类的这个注释允许您从生成的服务接口(清单5)的相应注释中重写设置。
This annotation on the implementation class allows you to override Settings from the corresponding annotation in the generated service interface (Listing 5).
通过将您希望抛出异常的类类型的 @Test 注释的值设置为 expected,可以使 JUit 提前预测到这种错误。
You can prime JUnit to expect this failure by setting the expected value on the @Test annotation of the class type you expect to be thrown.
应用推荐