Examples of TestClassloaderWithRewriting


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

  // I'm looking to determine what in the caller needs clearing out based on
  // what it has
  // cached about the target
  @Test
  public void basic6() throws Exception {
    binLoader = new TestClassloaderWithRewriting();
    String t = "simple.BasicF";
    String target = "simple.BasicFTarget";
    // GlobalConfiguration.logging = true;
    // GlobalConfiguration.isRuntimeLogging = true;
View Full Code Here

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

  @Ignore // test has intermittent problems
  // checking call site caching in the caller - do we need to clear it out?
  // Are we just not having to because isCompilable is off?
  @Test
  public void methodCallTargetComingAndGoing() throws Exception {
    binLoader = new TestClassloaderWithRewriting();
    String t = "simple.BasicG";
    String target = "simple.BasicGTarget";
    TypeRegistry r = getTypeRegistry(t + "," + target);
    ReloadableType rtype = r.addType(t, loadBytesForClass(t));
    ReloadableType rtypeTarget = r.addType(target, loadBytesForClass(target));
View Full Code Here

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

  }

  // Needs groovy 1.7.8
  @Test
  public void simpleValues() throws Exception {
    binLoader = new TestClassloaderWithRewriting();
    String t = "simple.Values";
    String target = "simple.BasicFTarget";
    // GlobalConfiguration.logging = true;
    // GlobalConfiguration.isRuntimeLogging = true;
View Full Code Here

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

  /**
   * Reloading enums written in groovy - very simple enum
   */
  @Test
  public void enums() throws Exception {
    binLoader = new TestClassloaderWithRewriting();
    String enumtype = "enums.WhatAnEnum";
    String intface = "enums.ExtensibleEnum";
    String runner = "enums.RunnerA";
    TypeRegistry typeRegistry = getTypeRegistry(enumtype + "," + intface + "," + runner);
//    ReloadableType rtypeIntface =
View Full Code Here

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

  /**
   * Reloading enums - more complex enum (grails-7776)
   */
  @Test
  public void enums2() throws Exception {
    binLoader = new TestClassloaderWithRewriting();
    String enumtype = "enums.WhatAnEnumB";
    String intface = "enums.ExtensibleEnumB";
    String runner = "enums.RunnerB";
    String closure = "enums.WhatAnEnumB$__clinit__closure1";
    TypeRegistry typeRegistry = getTypeRegistry(enumtype + "," + intface + "," + runner + "," + closure);
View Full Code Here

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

   * indexes into the callsite cache using wrong indices.
   */
  @Ignore // until I can find time
  @Test
  public void staticInitializerReloading5() throws Exception {
    binLoader = new TestClassloaderWithRewriting();
    String t = "clinitg.Four";
    String t2 = "clinitg.FourHelper";
    TypeRegistry typeRegistry = getTypeRegistry(t);
    ReloadableType rtype = typeRegistry.addType(t, loadBytesForClass(t));
    // ReloadableType rtype2 =
View Full Code Here

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

  @Before
  public void setUp() throws Exception {
    super.setup();
    GlobalConfiguration.reloadMessages = true;
    binLoader = new TestClassloaderWithRewriting(true, true, true);
  }
View Full Code Here

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

  }

  // Test a simple plugin that processes reload events
  @Test
  public void testSimplePlugin() throws Exception {
    binLoader = new TestClassloaderWithRewriting("meta1", true);
    String t = "simple.Basic";
    captureOn();
    TypeRegistry r = getTypeRegistry(t);
    String output = captureOff();
    assertContains("Instantiated ReloadEventProcessorPlugin1", output);
View Full Code Here

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

  }

  // Test a simple plugin that processes reload events
  @Test
  public void testSimplePluginWithUnableToReloadEvent() throws Exception {
    binLoader = new TestClassloaderWithRewriting("meta1", true);
    String t = "simple.Basic";
    captureOn();
    TypeRegistry r = getTypeRegistry(t);
    String output = captureOff();
    assertContains("Instantiated ReloadEventProcessorPlugin1", output);
View Full Code Here

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

  }

  @SuppressWarnings("unused")
  @Test
  public void testServicesFileWithPluginCommentedOut() throws Exception {
    binLoader = new TestClassloaderWithRewriting("meta2", true);
    String t = "simple.Basic";
    captureOn();
    TypeRegistry r = getTypeRegistry(t);
    String output = captureOff();
    assertDoesNotContain("Instantiated ReloadEventProcessorPlugin1", output);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.