Deprecate mock.staticmock package

Issue: SPR-14485
This commit is contained in:
Juergen Hoeller 2016-07-20 21:41:30 +02:00
parent 3663aa675a
commit 90752f9d87
3 changed files with 6 additions and 0 deletions

View File

@ -36,7 +36,9 @@ import org.springframework.util.ObjectUtils;
* @author Rod Johnson * @author Rod Johnson
* @author Ramnivas Laddad * @author Ramnivas Laddad
* @author Sam Brannen * @author Sam Brannen
* @deprecated as of Spring 4.3, in favor of a custom aspect for such purposes
*/ */
@Deprecated
public abstract aspect AbstractMethodMockingControl percflow(mockStaticsTestMethod()) { public abstract aspect AbstractMethodMockingControl percflow(mockStaticsTestMethod()) {
private final Expectations expectations = new Expectations(); private final Expectations expectations = new Expectations();

View File

@ -59,7 +59,9 @@ import org.aspectj.lang.annotation.SuppressAjWarnings;
* @author Ramnivas Laddad * @author Ramnivas Laddad
* @author Sam Brannen * @author Sam Brannen
* @see MockStaticEntityMethods * @see MockStaticEntityMethods
* @deprecated as of Spring 4.3, in favor of a custom aspect for such purposes
*/ */
@Deprecated
@RequiredTypes("javax.persistence.Entity") @RequiredTypes("javax.persistence.Entity")
public aspect AnnotationDrivenStaticEntityMockingControl extends AbstractMethodMockingControl { public aspect AnnotationDrivenStaticEntityMockingControl extends AbstractMethodMockingControl {

View File

@ -29,7 +29,9 @@ import java.lang.annotation.Target;
* *
* @author Rod Johnson * @author Rod Johnson
* @author Sam Brannen * @author Sam Brannen
* @deprecated as of Spring 4.3, in favor of a custom aspect for such purposes
*/ */
@Deprecated
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface MockStaticEntityMethods { public @interface MockStaticEntityMethods {