rmannibucau commented on code in PR #128: URL: https://github.com/apache/openwebbeans/pull/128#discussion_r2081576339
########## webbeans-impl/src/test/java/org/apache/webbeans/test/interceptors/factory/InterceptorDecoratorProxyFactoryTest.java: ########## @@ -41,22 +45,59 @@ import org.apache.webbeans.proxy.InterceptorHandler; import org.apache.webbeans.proxy.OwbInterceptorProxy; import org.apache.webbeans.test.interceptors.factory.beans.TonsOfMethodsInterceptedClass; +import org.apache.webbeans.util.Asserts; import org.apache.webbeans.util.ClassUtil; import org.apache.webbeans.test.util.CustomBaseType; import org.apache.webbeans.test.util.CustomType; import org.apache.webbeans.test.util.ExtendedSpecificClass; import org.apache.webbeans.test.util.GenericInterface; import org.apache.webbeans.test.util.SpecificClass; +import org.apache.webbeans.util.WebBeansUtil; import org.junit.Assert; import org.junit.Test; +import static org.junit.Assert.assertSame; + /** * Test the {@link org.apache.webbeans.proxy.InterceptorDecoratorProxyFactory} */ public class InterceptorDecoratorProxyFactoryTest extends AbstractUnitTest { + @Test + public void testEnsureOneProxyPerAT() + { + // we take a fresh URLClassLoader to not blur the test classpath with synthetic classes. + ClassLoader classLoader = new URLClassLoader(new URL[0]); Review Comment: try()? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@openwebbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org