提交 577755d5 编写于 作者: J Juergen Hoeller

polishing

上级 61081294
...@@ -18,15 +18,16 @@ package org.springframework.mock.staticmock; ...@@ -18,15 +18,16 @@ package org.springframework.mock.staticmock;
/** /**
* Annotation-based aspect to use in test build to enable mocking static methods * Annotation-based aspect to use in test build to enable mocking static methods
* on Entity classes, as used by Roo for finders. * on JPA-annotated <code>@Entity</code> classes, as used by Roo for finders.
* <br> *
* Mocking will occur in the call stack of any method in a class (typically a test class) * <p>Mocking will occur in the call stack of any method in a class (typically a test class)
* that is annotated with the @MockStaticEntityMethods annotation. * that is annotated with the @MockStaticEntityMethods annotation.
* <br> *
* Also provides static methods to simplify the programming model for * <p>Also provides static methods to simplify the programming model for
* entering playback mode and setting expected return values. * entering playback mode and setting expected return values.
* <br> *
* Usage:<ol> * <p>Usage:
* <ol>
* <li>Annotate a test class with @MockStaticEntityMethods. * <li>Annotate a test class with @MockStaticEntityMethods.
* <li>In each test method, AnnotationDrivenStaticEntityMockingControl will begin in recording mode. * <li>In each test method, AnnotationDrivenStaticEntityMockingControl will begin in recording mode.
* Invoke static methods on Entity classes, with each recording-mode invocation * Invoke static methods on Entity classes, with each recording-mode invocation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册