Package org.apache.geronimo.axis.preconditions

Source Code of org.apache.geronimo.axis.preconditions.EWSTest

/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.geronimo.axis.preconditions;

import org.apache.geronimo.axis.AbstractTestCase;
import org.apache.geronimo.axis.GeronimoWsDeployContext;
import org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2ee;

import java.io.File;

/**
* <p>This test case represents the code generation with the EWS module.
* This test case needed the $JAVA_HOME/lib.tools.jar at the classapth.</p>
*/
public class EWSTest extends AbstractTestCase {
    public EWSTest(String testName) {
        super(testName);
    }

    public void testEchoPOJO() throws Exception {
        GeronimoWsDeployContext deployContext =
                new GeronimoWsDeployContext(getTestFile("target/samples/echo.war"),
                        outDir + "/echo-war");
        Ws4J2ee ws4j2ee = new Ws4J2ee(deployContext, null);
        ws4j2ee.generate();
        File out = new File(outDir + "/echo-war", "echo-ewsimpl.jar");
        assertTrue(out.exists());
    }

    protected void setUp() throws Exception {
        new File(outDir).mkdirs();
    }

    protected void tearDown() throws Exception {
    }
}
TOP

Related Classes of org.apache.geronimo.axis.preconditions.EWSTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.