Package org.jboss.forge.classloader.mock

Examples of org.jboss.forge.classloader.mock.SimpleEnumFactory


      {
         Assert.fail("Should have received a " + ClassCastException.class.getName() + " but was: " + e);
      }

      Object delegate = foreignType.newInstance();
      SimpleEnumFactory enhancedFactory = (SimpleEnumFactory) ClassLoaderAdapterBuilder.callingLoader(thisLoader)
               .delegateLoader(dep1Loader).enhance(delegate);

      Assert.assertTrue(Proxies.isForgeProxy(enhancedFactory));
      SimpleEnum enhancedInstance = enhancedFactory.getEnum();
      Assert.assertFalse(Proxies.isForgeProxy(enhancedInstance));

      enhancedFactory.useEnum(SimpleEnum.STOPPED);
   }
View Full Code Here

TOP

Related Classes of org.jboss.forge.classloader.mock.SimpleEnumFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.