1 /*
2 * Copyright 2007 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.rice.ken.services.ws.impl;
17
18 import java.io.IOException;
19 import java.io.InputStream;
20
21 import org.apache.commons.io.IOUtils;
22 import org.apache.log4j.Logger;
23 import org.junit.Ignore;
24 import org.junit.Test;
25
26 /**
27 * Tests XFire Notification web service. See KEW SimpleDocumentActionsWebServiceTest
28 * @author Kuali Rice Team (rice.collab@kuali.org)
29 */
30 @Ignore // requires webapp to be up
31 public class NotificationWebServiceTest {
32 private static final Logger LOG = Logger.getLogger(NotificationWebServiceTest.class);
33 private static final String notificationMessageAsXml;
34
35 static {
36 InputStream notificationXML = NotificationWebServiceTest.class.getResourceAsStream("webservice_notification.xml");
37 try {
38 notificationMessageAsXml = IOUtils.toString(notificationXML);
39 } catch (IOException ioe) {
40 throw new RuntimeException("Error loading webservice_notification.xml");
41 }
42 }
43
44 @Test
45 public void test() throws Exception {
46 /*NotificationWebServiceSoapBindingStub stub = new NotificationWebServiceSoapBindingStub(new URL(getWebServiceURL()), null);
47
48 String responseAsXml = stub.sendNotification(notificationMessageAsXml);
49
50 LOG.info(responseAsXml);
51 assertTrue(StringUtils.contains(responseAsXml, "<status>Success</status>"));*/
52 }
53 }