@Test public void testUsingGroovyConfig() throws IOException { ServiceElement service = new ServiceElement(); service.getServiceBeanConfig().setConfigArgs(getGroovyConfig()); String[] args = ConfigHelper.getConfigArgs(service); Assert.assertNotNull(args); Assert.assertEquals(1, args.length); File file = new File(args[0]); Assert.assertFalse(file.exists()); Configuration configuration = new GroovyConfig(args, Thread.currentThread().getContextClassLoader()); Assert.assertNotNull(configuration); }
public static String[] getConfigArgs(final ServiceElement service) throws IOException { return getConfigArgs(service, Thread.currentThread().getContextClassLoader()); }
ConfigHelper { public static String[] getConfigArgs(final ServiceElement service) throws IOException { return getConfigArgs(service, Thread.currentThread().getContextClassLoader()); } }
ConfigHelper { public static String[] getConfigArgs(final ServiceElement service) throws IOException { return getConfigArgs(service, Thread.currentThread().getContextClassLoader()); }  }
ConfigHelper { public static String[] getConfigArgs(final ServiceElement service) throws IOException { return getConfigArgs(service, Thread.currentThread().getContextClassLoader()); }  static String[] getConfigArgs(final ServiceElement service); static String[] getConfigArgs(final ServiceElement service, final ClassLoader cl); }
ConfigHelper { public static String[] getConfigArgs(final ServiceElement service) throws IOException { return getConfigArgs(service, Thread.currentThread().getContextClassLoader()); }  static String[] getConfigArgs(final ServiceElement service); static String[] getConfigArgs(final ServiceElement service, final ClassLoader cl); static final String CLASSPATH_RESOURCE; static final String FILE_RESOURCE; }