WebServiceApplicationTest.java revision 869a36e2649ae064c98063cf1e55198488d78d12
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: WebServiceApplicationTest.java,v 1.1 2009/08/19 05:41:01 veiming Exp $
*/
public class WebServiceApplicationTest {
private static final String WSDL = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-581-SNAPSHOT. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-581-SNAPSHOT. --><definitions xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:tns=\"http://services.geotracking.us/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns=\"http://schemas.xmlsoap.org/wsdl/\" targetNamespace=\"http://services.geotracking.us/\" name=\"UsaGeoTrackingService\"> <types> <xsd:schema> <xsd:import namespace=\"http://services.geotracking.us/\" schemaLocation=\"http://192.18.47.152:8080/UsaGeoTrackingService/UsaGeoTracking?xsd=1\"></xsd:import> </xsd:schema> </types> <message name=\"findAll\"> <part name=\"parameters\" element=\"tns:findAll\"></part> </message> <message name=\"findAllResponse\"> <part name=\"parameters\" element=\"tns:findAllResponse\"></part> </message> <message name=\"getTrackingById\"> <part name=\"parameters\" element=\"tns:getTrackingById\"></part> </message> <message name=\"getTrackingByIdResponse\"> <part name=\"parameters\" element=\"tns:getTrackingByIdResponse\"></part> </message> <portType name=\"UsaGeoTracking\"> <operation name=\"findAll\"> <input message=\"tns:findAll\"></input> <output message=\"tns:findAllResponse\"></output> </operation> <operation name=\"getTrackingById\"> <input message=\"tns:getTrackingById\"></input> <output message=\"tns:getTrackingByIdResponse\"></output> </operation> </portType> <binding name=\"UsaGeoTrackingPortBinding\" type=\"tns:UsaGeoTracking\"> <soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\" style=\"document\"></soap:binding> <operation name=\"findAll\"> <soap:operation soapAction=\"\"></soap:operation> <input> <soap:body use=\"literal\"></soap:body> </input> <output> <soap:body use=\"literal\"></soap:body> </output> </operation> <operation name=\"getTrackingById\"> <soap:operation soapAction=\"\"></soap:operation> <input> <soap:body use=\"literal\"></soap:body> </input> <output> <soap:body use=\"literal\"></soap:body> </output> </operation> </binding> <service name=\"UsaGeoTrackingService\"> <port name=\"UsaGeoTrackingPort\" binding=\"tns:UsaGeoTrackingPortBinding\"> <soap:address location=\"http://192.18.47.152:8080/UsaGeoTrackingService/UsaGeoTracking\"></soap:address> </port> </service> </definitions>";
private static final String POLICY_NAME =
"WebServiceApplicationTestPolicy";
private static final String URL = "http://192.18.47.152:8080/UsaGeoTrackingService/UsaGeoTracking/";
private Subject adminSubject;
try {
} finally {
try {
}
} catch (IOException ex) {
//ignore
}
}
actions);
}
public void cleanup() throws EntitlementException {
}
@Test
public void testEvaluation()
throws Exception {
if (!allow) {
throw new Exception(
"WebServiceApplicationTest.testEvaluation: incorrect policy decision.");
}
}
@Test
public void testApplication() throws Exception {
throw new Exception(
"WebServiceApplicationTest.testApplication: incorrect class");
}
throw new Exception(
"WebServiceApplicationTest.testApplication: incorrect actions");
}
throw new Exception(
"WebServiceApplicationTest.testApplication: expect findAll action");
}
throw new Exception(
"WebServiceApplicationTest.testApplication: expect getTrackingById action");
}
throw new Exception(
"WebServiceApplicationTest.testApplication: incorrect resources");
}
throw new Exception(
"WebServiceApplicationTest.testApplication: incorrect resources");
}
}
}