source: trunk/autoquest-httpmonitor-test/src/main/java/de/ugoe/cs/autoquest/httpmonitor/DummyServiceImpl.java @ 1390

Last change on this file since 1390 was 1390, checked in by pharms, 10 years ago
  • added test cases for SOAP message exchange
File size: 1.8 KB
Line 
1//   Copyright 2012 Georg-August-Universität Göttingen, Germany
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
14
15package de.ugoe.cs.autoquest.httpmonitor;
16
17import dummyservice.DummyServicePortTypeImpl;
18import dummyservice.SynStatus;
19import dummyservice.UserInfo;
20import dummyservice.VerifyUserInMsgType;
21import dummyservice.VerifyUserOutMsgType;
22
23/**
24 * <p>
25 * Dummy implementation of a SOAP service for testing
26 * </p>
27 *
28 * @author Patrick Harms
29 */
30public class DummyServiceImpl extends DummyServicePortTypeImpl {
31
32    /* (non-Javadoc)
33     * @see eu.midas_project.enduser.api.identityandauthenticationservice_wsdl.IdentityAndAuthPortTypeImpl#verifyUser(eu.midas_project.enduser.api.identityandauthenticationtypes.VerifyUserInMsgType)
34     */
35    @Override
36    public VerifyUserOutMsgType verifyUser(VerifyUserInMsgType content) {
37        System.out.println("DummyServiceImpl.verifyUser");
38
39        VerifyUserOutMsgType result = new VerifyUserOutMsgType();
40        result.setMsg("OK");
41        result.setStatus(SynStatus.DONE);
42        UserInfo userInfo = new UserInfo();
43        userInfo.setUsername("dummyUser");
44        userInfo.setIsAdmin(true);
45        userInfo.setFullname("Dummy User");
46        userInfo.setEmail("dummy.user@midas_project.eu");
47        result.setUserInfo(userInfo);
48        return result;
49    }
50
51}
Note: See TracBrowser for help on using the repository browser.