Package org.springsource.loaded.test.infra

Examples of org.springsource.loaded.test.infra.TestClassloaderWithRewriting


  }

  @SuppressWarnings("unused")
  @Test
  public void testServicesFileWithPluginAndNoNewline() throws Exception {
    binLoader = new TestClassloaderWithRewriting("meta3", true);
    String t = "simple.Basic";
    captureOn();
    TypeRegistry r = getTypeRegistry(t);
    String output = captureOff();
    assertContains("Instantiated ReloadEventProcessorPlugin1", output);
View Full Code Here


  }

  // registering a global plugin
  @Test
  public void testGlobalPluginRegistration() throws Exception {
    binLoader = new TestClassloaderWithRewriting("metaNotExist", true);
    String t = "simple.Basic";
    ReloadEventProcessorPlugin repp = new ReloadEventProcessorPlugin() {
      public void reloadEvent(String typename, Class<?> clazz, String encodedTimestamp) {
        System.out.println("Plugin: reloadEvent(" + typename + "," + clazz.getName() + "," + encodedTimestamp + ")");
      }
View Full Code Here

    }
  }

  @Test
  public void testPluginRerunStaticInitializerRequest() throws Exception {
    binLoader = new TestClassloaderWithRewriting("metaNotExist", true);
    String t = "simple.Basic";
    ReloadEventProcessorPlugin repp = new ReloadEventProcessorPlugin() {
      public void reloadEvent(String typename, Class<?> clazz, String encodedTimestamp) {
        System.out.println("Plugin: reloadEvent(" + typename + "," + clazz.getName() + "," + encodedTimestamp + ")");
      }
View Full Code Here

    }
  }

  @Test
  public void testPluginRerunStaticInitializerRequest2() throws Exception {
    binLoader = new TestClassloaderWithRewriting("metaNotExist", true);
    String t = "clinit.One";
    ReloadEventProcessorPlugin repp = new ReloadEventProcessorPlugin() {
      public void reloadEvent(String typename, Class<?> clazz, String encodedTimestamp) {
        System.out.println("Plugin: reloadEvent(" + typename + "," + clazz.getName() + "," + encodedTimestamp + ")");
      }
View Full Code Here

  @Before
  public void setUp() throws Exception {
    super.setup();
    GlobalConfiguration.reloadMessages = true;
    binLoader = new TestClassloaderWithRewriting(true, true, true);
    //cglibLoader = new URLClassLoader(new URL[]{new File("../testdata/lib/cglib-nodep-2.2.jar").toURI().toURL()});
  }
View Full Code Here

   * I'm interested in checking the performance difference between having compilable call sites on and off. So let's load a
   * program that simply makes a method call 1000s of times. No reloading, this is just to check the runtime cost of rewriting.
   */
  @Test
  public void benchmarkingGroovyMethodInvocations() throws Exception {
    binLoader = new TestClassloaderWithRewriting();
    String t = "simple.BasicH";
    String target = "simple.BasicETarget";

    TypeRegistry r = getTypeRegistry(t + "," + target);

View Full Code Here

TOP

Related Classes of org.springsource.loaded.test.infra.TestClassloaderWithRewriting

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.