Package org.jboss.forge.classloader.mock

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


      Assert.assertNotNull(file);
      Assert.assertTrue(file.getClass().equals(File.class));

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

      Assert.assertTrue(Proxies.isForgeProxy(enhancedFactory));
      File result = enhancedFactory.getFile();
      Assert.assertFalse(Proxies.isForgeProxy(result));

      enhancedFactory.useFile(new File("foo"));
   }
View Full Code Here

TOP

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

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.