Examples of JVMOutput


Examples of org.springsource.loaded.test.ReloadingJVM.JVMOutput

    jvm.clearTestdataDirectory();
  }

  @Test
  public void testEcho() throws Exception {
    JVMOutput result = jvm.echo("hello");
    assertStdout("hello", result);
  }
View Full Code Here

Examples of org.springsource.loaded.test.ReloadingJVM.JVMOutput

    assertStdout("hello", result);
  }

  @Test
  public void testRunClass() throws Exception {
    JVMOutput output = jvm.run("jvmtwo.Runner");
    assertStdout("jvmtwo.Runner.run() running", output);
  }
View Full Code Here

Examples of org.springsource.loaded.test.ReloadingJVM.JVMOutput

    jvm.copyToTestdataDirectory("issue34.Interface1");
    jvm.copyToTestdataDirectory("issue34.Interface2");
    jvm.copyToTestdataDirectory("issue34.Implementation1");
    jvm.copyToTestdataDirectory("issue34.Implementation2");
    jvm.copyToTestdataDirectory("issue34.Implementation3");
    JVMOutput output = jvm.run("issue34.Implementation3");
    assertStdout("Hello World!\n", output);   
  }
View Full Code Here

Examples of org.springsource.loaded.test.ReloadingJVM.JVMOutput

 
  @Test
  public void serialization() throws Exception {
    jvm.copyToTestdataDirectory("remote.Serialize");
    jvm.copyToTestdataDirectory("remote.Person");
    JVMOutput output = null;

    // When the Serialize class is run directly, we see: byteinfo:len=98:crc=c1047cf6
    // When run via the non separate JVM test, we see: byteinfo:len=98:crc=7e07276a
    // When run here, we see: byteinfo:len=98:crc=c1047cf6
 
View Full Code Here

Examples of org.springsource.loaded.test.ReloadingJVM.JVMOutput

  // Deserializing something serialized earlier
  @Test
  public void serialization2() throws Exception {
    jvm.copyToTestdataDirectory("remote.Serialize");
    jvm.copyToTestdataDirectory("remote.Person");
    JVMOutput output = null;
   
    output = jvm.run("remote.Serialize");
    assertStdoutContains("check ok\n", output);

    jvm.newInstance("a", "remote.Serialize");
    JVMOutput jo = jvm.call("a","checkPredeserializedData");
    assertStdoutContains("Pre-serialized form checked ok\n", jo);
  }
View Full Code Here

Examples of org.springsource.loaded.test.ReloadingJVM.JVMOutput

    // Notes on serialization
    // When SerializeG run standalone, reports byteinfo:len=283:crc=245529d9
    // When run in agented JVM, reports byteinfo:len=283:crc=245529d9
   
    jvm.newInstance("a", "remote.SerializeG");
    JVMOutput jo = jvm.call("a","checkPredeserializedData");
    assertStdoutContains("Pre-serialized groovy form checked ok\n", jo);
  }
View Full Code Here

Examples of org.springsource.loaded.test.ReloadingJVM.JVMOutput

  @Test
  public void githubIssue34_2() throws Exception {
    jvm.copyToTestdataDirectory("issue34.InnerEnum$sorters");
    jvm.copyToTestdataDirectory("issue34.InnerEnum$MyComparator");
    jvm.copyToTestdataDirectory("issue34.InnerEnum$sorters$1");
    JVMOutput output = jvm.run("issue34.InnerEnum");
    assertStdout("Hello World!\n", output);   
  }
View Full Code Here

Examples of org.springsource.loaded.test.ReloadingJVM.JVMOutput

  @Ignore
  @Test
  public void reloadedPerformance() throws Exception {
//    debug();
    jvm.newInstance("a","remote.Perf1");
    JVMOutput jo = jvm.call("a","time"); // 75ms
    jo = jvm.call("a","time"); // 75ms
    pause(5);
    jvm.updateClass("remote.Perf1",retrieveRename("remote.Perf1","remote.Perf2"));
    pause(2);
    // In Perf2 the static method is gone, why does it give us a NSME?
View Full Code Here

Examples of org.springsource.loaded.test.ReloadingJVM.JVMOutput

  public void testClassMakingSuperCalls() throws Exception {
    String supertype="grails.Top";
    String subtype="foo.Controller";
    jvm.copyToTestdataDirectory(supertype);
    jvm.copyToTestdataDirectory(subtype);
    JVMOutput jo = jvm.newInstance("bb",subtype);
    System.out.println(jo);
    pause(1);
    assertStdout("Top.foo() running\nController.foo() running\n", jvm.call("bb", "foo"));
    pause(1);
    jvm.updateClass(subtype,retrieveRename(subtype,subtype+"2"));
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.