Skip to content

Commit 90752f9

Browse files
committed
Deprecate mock.staticmock package
Issue: SPR-14485
1 parent 3663aa6 commit 90752f9

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

spring-aspects/src/main/java/org/springframework/mock/staticmock/AbstractMethodMockingControl.aj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ import org.springframework.util.ObjectUtils;
3636
* @author Rod Johnson
3737
* @author Ramnivas Laddad
3838
* @author Sam Brannen
39+
* @deprecated as of Spring 4.3, in favor of a custom aspect for such purposes
3940
*/
41+
@Deprecated
4042
public abstract aspect AbstractMethodMockingControl percflow(mockStaticsTestMethod()) {
4143

4244
private final Expectations expectations = new Expectations();

spring-aspects/src/main/java/org/springframework/mock/staticmock/AnnotationDrivenStaticEntityMockingControl.aj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ import org.aspectj.lang.annotation.SuppressAjWarnings;
5959
* @author Ramnivas Laddad
6060
* @author Sam Brannen
6161
* @see MockStaticEntityMethods
62+
* @deprecated as of Spring 4.3, in favor of a custom aspect for such purposes
6263
*/
64+
@Deprecated
6365
@RequiredTypes("javax.persistence.Entity")
6466
public aspect AnnotationDrivenStaticEntityMockingControl extends AbstractMethodMockingControl {
6567

spring-aspects/src/main/java/org/springframework/mock/staticmock/MockStaticEntityMethods.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
*
3030
* @author Rod Johnson
3131
* @author Sam Brannen
32+
* @deprecated as of Spring 4.3, in favor of a custom aspect for such purposes
3233
*/
34+
@Deprecated
3335
@Retention(RetentionPolicy.RUNTIME)
3436
@Target(ElementType.TYPE)
3537
public @interface MockStaticEntityMethods {

0 commit comments

Comments
 (0)