Package org.springsource.loaded.test.infra

Examples of org.springsource.loaded.test.infra.TestClassLoader.findResource()


  // Just attempt to access something in the testdata project through the classloader
  @Test
  public void loader() {
    TestClassLoader tcl = new TestClassLoader(toURLs(TestDataPath), this.getClass().getClassLoader());
    URL url = tcl.findResource("data/SimpleClass.class");
    Assert.assertNotNull(url);
    url = tcl.findResource("data/MissingClass.class");
    Assert.assertNull(url);
  }
View Full Code Here


  @Test
  public void loader() {
    TestClassLoader tcl = new TestClassLoader(toURLs(TestDataPath), this.getClass().getClassLoader());
    URL url = tcl.findResource("data/SimpleClass.class");
    Assert.assertNotNull(url);
    url = tcl.findResource("data/MissingClass.class");
    Assert.assertNull(url);
  }

  // Check loading of data as a byte array
  // Size changed here from 331 to 394 when switched to AspectJ project for testcode!
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.