You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JASSIST113RegressionTest.java 507B

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