FileDocCategorySizeDatePackage
Interop3TestCase.javaAPI DocApache Axis 1.41472Sat Apr 22 18:57:28 BST 2006test.wsdl.interop3

Interop3TestCase

public class Interop3TestCase extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        try {
            if (args.length != 1) {
                usage();
                System.exit(0);
            }
            Properties props = new Properties();
            props.load(new FileInputStream(args[0]));
            Iterator it = props.keySet().iterator();
            while (it.hasNext()) {
                String key = (String) it.next();
                URL value = new URL((String) props.get(key));
                try {
                    Class test = ClassUtils.forName(key);
                    Field urlField = test.getField("url");
                    urlField.set(null, value);
                    TestRunner.run(new TestSuite(test));                    
                }
                catch (Throwable t) {
                    System.err.println("Failure running " + key);
                    t.printStackTrace();
                }
            }
        }
        catch (Throwable t) {
        }
    
public static voidusage()

        System.out.println("java test.wsdl.interop3.Interop3TestCase <URL property file>");