You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by he...@apache.org on 2004/06/14 10:20:47 UTC

cvs commit: ws-axis/contrib/ews/test/org/apache/geronimo/ews/jaxrpcmapper MapperTest.java

hemapani    2004/06/14 01:20:47

  Modified:    contrib/ews/test/org/apache/geronimo/ews/jaxrpcmapper
                        MapperTest.java
  Log:
  fixed the testcases
  
  Revision  Changes    Path
  1.7       +56 -56    ws-axis/contrib/ews/test/org/apache/geronimo/ews/jaxrpcmapper/MapperTest.java
  
  Index: MapperTest.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/test/org/apache/geronimo/ews/jaxrpcmapper/MapperTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MapperTest.java	23 Feb 2004 10:20:49 -0000	1.6
  +++ MapperTest.java	14 Jun 2004 08:20:46 -0000	1.7
  @@ -12,61 +12,61 @@
    * @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
    */
   public class MapperTest 
  -    extends AbstractTestCase
  +	extends AbstractTestCase
   {
  -    /**
  -     * Create the test case
  -     *
  -     * @param testName name of the test case
  -     */
  -    public MapperTest( String testName )
  -    {
  -        super( testName );
  -    }
  -
  -    /**
  -     * @return the suite of tests being tested
  -     */
  -    public static Test suite()
  -    {
  -        return new TestSuite( MapperTest.class );
  -    }
  -
  -    /**
  -     * Rigourous Test :-)
  -     */
  -    public void testHeavyWeight() throws Exception {
  -        String args[] = new String[]{"-m", getTestFile("src/samples/mapper/heavyweight/BookQuote.xml"),
  -                                     "-o", getTestFile("target/generated/samples/mapper/heavyweight"),
  -                                     getTestFile("src/samples/mapper/heavyweight/BookQuote.wsdl")};
  -        WsdlToJ2ee.main(args);
  -    }
  -
  -    public void testLightWeight() throws Exception {
  -        String args[] = new String[]{"-m", getTestFile("src/samples/mapper/lightweight/BookQuote.xml"),
  -                                     "-o", getTestFile("target/generated/samples/mapper/lightweight"),
  -                                     getTestFile("src/samples/mapper/lightweight/BookQuote.wsdl")};
  -        WsdlToJ2ee.main(args);
  -    }
  -
  -    public void testGoogle() throws Exception {
  -        String args[] = new String[]{"-m",getTestFile("src/samples/mapper/google/GoogleSearch.xml"),
  -                                     "-o", getTestFile("target/generated/samples/mapper/google"),
  -                                     getTestFile("src/samples/mapper/google/GoogleSearch.wsdl")};
  -        WsdlToJ2ee.main(args);
  -    }
  -
  -    public void testFrenchZip() throws Exception {
  -        String args[] = new String[]{"-m",getTestFile("src/samples/mapper/frenchzip/FrenchZipMapping.xml"),
  -                                     "-o", getTestFile("target/generated/samples/mapper/frenchzip"),
  -                                     getTestFile("src/samples/mapper/frenchzip/FrenchZip.wsdl")};
  -        WsdlToJ2ee.main(args);
  -    }
  -
  -    public void testAnonymousTypes() throws Exception {
  -        String args[] = new String[]{"-m",getTestFile("src/samples/mapper/anonymous/mapping.xml"),
  -                                     "-o", getTestFile("target/generated/samples/mapper/anonymous"),
  -                                     getTestFile("src/samples/mapper/anonymous/anonymous.wsdl")};
  -        WsdlToJ2ee.main(args);
  -    }
  +	/**
  +	 * Create the test case
  +	 *
  +	 * @param testName name of the test case
  +	 */
  +	public MapperTest( String testName )
  +	{
  +		super( testName );
  +	}
  +
  +	/**
  +	 * @return the suite of tests being tested
  +	 */
  +	public static Test suite()
  +	{
  +		return new TestSuite( MapperTest.class );
  +	}
  +
  +	/**
  +	 * Rigourous Test :-)
  +	 */
  +	public void testHeavyWeight() throws Exception {
  +		String args[] = new String[]{"-m", getTestFile(sampleDir +"mapper/heavyweight/BookQuote.xml"),
  +									 "-o", getTestFile("target/generated/samples/mapper/heavyweight"),
  +									 getTestFile(sampleDir +"mapper/heavyweight/BookQuote.wsdl")};
  +		WsdlToJ2ee.main(args);
  +	}
  +
  +	public void testLightWeight() throws Exception {
  +		String args[] = new String[]{"-m", getTestFile(sampleDir +"mapper/lightweight/BookQuote.xml"),
  +									 "-o", getTestFile("target/generated/samples/mapper/lightweight"),
  +									 getTestFile(sampleDir +"mapper/lightweight/BookQuote.wsdl")};
  +		WsdlToJ2ee.main(args);
  +	}
  +
  +	public void testGoogle() throws Exception {
  +		String args[] = new String[]{"-m",getTestFile(sampleDir +"mapper/google/GoogleSearch.xml"),
  +									 "-o", getTestFile("target/generated/samples/mapper/google"),
  +									 getTestFile(sampleDir +"mapper/google/GoogleSearch.wsdl")};
  +		WsdlToJ2ee.main(args);
  +	}
  +
  +	public void testFrenchZip() throws Exception {
  +		String args[] = new String[]{"-m",getTestFile(sampleDir +"mapper/frenchzip/FrenchZipMapping.xml"),
  +									 "-o", getTestFile("target/generated/samples/mapper/frenchzip"),
  +									 getTestFile(sampleDir +"mapper/frenchzip/FrenchZip.wsdl")};
  +		WsdlToJ2ee.main(args);
  +	}
  +
  +//	  public void testAnonymousTypes() throws Exception {
  +//		  String args[] = new String[]{"-m",getTestFile(sampleDir +"mapper/anonymous/mapping.xml"),
  +//									   "-o", getTestFile("target/generated/samples/mapper/anonymous"),
  +//									   getTestFile(sampleDir +"mapper/anonymous/anonymous.wsdl")};
  +//		  WsdlToJ2ee.main(args);
  +//	  }
   }