Search in sources :

Example 1 with A

use of io.vertigo.core.component.aop.data.components.A in project vertigo by KleeGroup.

the class AspectTest method testUnwrapp.

@Test
public final void testUnwrapp() {
    final AopPlugin aopPlugin = getApp().getConfig().getBootConfig().getAopPlugin();
    final F f = getApp().getComponentSpace().resolve(F.class);
    // Il y a des aspects sur la classe donc elle doit ĂȘtre dewrappable
    assertNotEquals(F.class.getName(), f.getClass().getName());
    assertEquals(F.class.getName(), aopPlugin.unwrap(f).getClass().getName());
    // Il y a pas d'aspect
    final A myA = getApp().getComponentSpace().resolve(A.class);
    assertEquals(A.class.getName(), myA.getClass().getName());
    assertEquals(A.class.getName(), aopPlugin.unwrap(myA).getClass().getName());
}
Also used : A(io.vertigo.core.component.aop.data.components.A) F(io.vertigo.core.component.aop.data.components.F) AopPlugin(io.vertigo.core.component.AopPlugin) Test(org.junit.jupiter.api.Test)

Aggregations

AopPlugin (io.vertigo.core.component.AopPlugin)1 A (io.vertigo.core.component.aop.data.components.A)1 F (io.vertigo.core.component.aop.data.components.F)1 Test (org.junit.jupiter.api.Test)1