Search in sources :

Example 1 with LockMixin

use of test.mixin.LockMixin in project spring-framework by spring-projects.

the class AbstractAopProxyTests method testMixinWithIntroductionInfo.

@Test
public void testMixinWithIntroductionInfo() throws Throwable {
    TestBean tb = new TestBean();
    ProxyFactory pc = new ProxyFactory();
    pc.addInterface(ITestBean.class);
    // We don't use an IntroductionAdvisor, we can just add an advice that implements IntroductionInfo
    pc.addAdvice(new LockMixin());
    pc.setTarget(tb);
    testTestBeanIntroduction(pc);
}
Also used : TestBean(org.springframework.beans.testfixture.beans.TestBean) ITestBean(org.springframework.beans.testfixture.beans.ITestBean) LockMixin(test.mixin.LockMixin) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 ITestBean (org.springframework.beans.testfixture.beans.ITestBean)1 TestBean (org.springframework.beans.testfixture.beans.TestBean)1 LockMixin (test.mixin.LockMixin)1