• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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