xref: /aosp_15_r20/external/javassist/src/test/test/javassist/proxy/JASSIST113RegressionTest.java (revision f1fbf3c2ab775ce834e0af96b7a85bdc7a0eac65)
1 package test.javassist.proxy;
2 
3 import javassist.util.proxy.ProxyFactory;
4 import junit.framework.TestCase;
5 
6 /**
7  * Test for regression error detailed in JASSIST-113
8  */
9 public class JASSIST113RegressionTest extends TestCase
10 {
11     interface Bear
12     {
hibernate()13         void hibernate();
14     }
15 
testProxyFactoryWithNonPublicInterface()16     public void testProxyFactoryWithNonPublicInterface()
17     {
18         ProxyFactory proxyFactory = new ProxyFactory();
19         proxyFactory.setInterfaces(new Class[]{Bear.class});
20         proxyFactory.createClass();
21     }
22 }
23