Am Mittwoch, den 12.09.2007, 11:19 +0000 schrieb [EMAIL PROTECTED]:
> Author: mmao
> Date: Wed Sep 12 04:19:23 2007
> New Revision: 574887
> 

> Added:
> incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java
> URL:
> http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java?rev=574887&view=auto
> ==============================================================================
> ---
> incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java
>  (added)
> +++
> incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java
>  Wed Sep 12 04:19:23 2007
> @@ -0,0 +1,35 @@
> +/**
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements. See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership. The ASF licenses this file
> + * to you 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.cxf.systest.cxf993;
> +
> +import testnotification.NotificationServicePort;
> +
> +/**
> + * This class was generated by the CXF 2.1-incubator-SNAPSHOT
> + * Wed Sep 12 16:41:52 CST 2007
> + * Generated source version: 2.1-incubator-SNAPSHOT
> + * 
> + */
> +
> +public class Cxf993Impl implements NotificationServicePort {
> +    public String sendNotification(testnotification.SendNotification
> parameters) {
> +        return "dumy";

dummy

> +    }
> +}
> 
> Added: 
> incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Test.java
> URL: 
> http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Test.java?rev=574887&view=auto
> ==============================================================================
> --- 
> incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Test.java
>  (added)
> +++ 
> incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Test.java
>  Wed Sep 12 04:19:23 2007
> @@ -0,0 +1,55 @@
> +/**
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements. See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership. The ASF licenses this file
> + * to you 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.cxf.systest.cxf993;
> +
> +import java.net.URL;
> +import javax.xml.namespace.QName;
> +
> +import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
> +import org.junit.BeforeClass;
> +import org.junit.Test;
> +import testnotification.NotificationService;
> +import testnotification.NotificationServicePort;
> +import testnotification.SendNotification;
> +
> +public class Cxf993Test extends AbstractBusClientServerTestBase {
> +
> +    private final QName serviceName = new QName("urn://testnotification", 
> "NotificationService");
> +
> +    @BeforeClass
> +    public static void startServers() throws Exception {
> +        assertTrue("server did not launch correctly", 
> launchServer(Server.class));
> +    }
> +
> +    @Test
> +    public void testBasicConnection() throws Exception {
> +        assertEquals("dumy", getPort().sendNotification(new 
> SendNotification()));
> +    }
> +
> +    private NotificationServicePort getPort() {
> +        URL wsdl = getClass().getResource("/wsdl/cxf-993.wsdl");
> +        assertNotNull("WSDL is null", wsdl);
> +
> +        NotificationService service = new NotificationService(wsdl, 
> serviceName);
> +        assertNotNull("Service is ull ", service);
> +

null

> +        return service.getNotificationServicePort();
> +    }
> +}
> 


Reply via email to