portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/registry/src/test/org/apache/jetspeed/containers test.registry.groovy
Date Tue, 09 Mar 2004 16:20:31 GMT
weaver      2004/03/09 08:20:31

  Added:       components/registry/src/test/org/apache/jetspeed/containers
                        test.registry.groovy
  Log:
  test assembly script for registry tests
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/components/registry/src/test/org/apache/jetspeed/containers/test.registry.groovy
  
  Index: test.registry.groovy
  ===================================================================
  import org.picocontainer.defaults.DefaultPicoContainer
  
  import org.apache.jetspeed.components.util.NanoQuickAssembler
  import java.io.File
  
  // WARNING!!!!!!
  // DO NOT use {Class}.class as it appears to be broken in Groovy
  // You end getting a Class instance of the type java.lang.Class
  // instead of the requested type!  This causes AssignabilityExceptions
  // in pico.  You need to use Class.forName() instead.
  
  
  
  // create the root container
  container = new DefaultPicoContainer()
  
  ClassLoader cl = Thread.currentThread().getContextClassLoader()
  
  NanoQuickAssembler.assemble(cl, "org/apache/jetspeed/containers/rdbms.container.groovy",
container)
  
  NanoQuickAssembler.assemble(cl, "org/apache/jetspeed/containers/persistence.container.groovy",
container)
  
  //
  // Portlet Registry
  //
  
  NanoQuickAssembler.assemble(cl, "org/apache/jetspeed/containers/registry.container.groovy",
container)
  
  return container
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message