[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Tests don't work in eclipse

adrian@jboss.org do-not-reply at jboss.com
Tue Apr 3 08:49:28 EDT 2007


The xml-test resources should be combined with the normal resources.

However, currently the tests add xml-test to the resource name to retrieve.
org.jboss.test.kernel.dependency.test.OldAbstractKernelDependencyTest

  
  |    protected void deploy(int number) throws Throwable
  |    {
  |       String packageName = Classes.getPackageName(getClass());
  |       packageName = packageName.replace('.', '/');
  |       String name = "/xml-test/" + packageName + '/' + getName() + number + ".xml";
  |       getLog().debug("Using " + name);
  |       URL url = getResource(name);
  |       if (url == null)
  |          throw new RuntimeException("Resource not found: " + name);
  |       getLog().debug("url=" + url);
  |       util.deploy(url);
  |    }
  | 

In fact, as the name suggests, the tests need updating to the "new" abstract test case.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034054#4034054

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034054



More information about the jboss-dev-forums mailing list