You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/06/14 21:36:41 UTC

svn commit: r190652 [3/7] - in /incubator/beehive/trunk/wsm: drt/negative/WEB-INF/ drt/negative/WEB-INF/src/ drt/negative/WEB-INF/src/web/negative/ drt/tests/org/apache/beehive/wsm/jsr181/model/ drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/ drt/tests/org/apache/beehive/wsm/jsr181/processor/apt/ drt/tests/org/apache/beehive/wsm/jsr181/wsdl/ drt/webapp/WEB-INF/ drt/webapp/WEB-INF/src/ drt/webapp/WEB-INF/src/org/apache/beehive/wsm/axis/ drt/webapp/WEB-INF/src/web/ schemas/ src/api/javax/jws/ src/api/javax/jws/soap/ src/runtime/META-INF/services/ src/runtime/org/apache/beehive/wsm/axis/ src/runtime/org/apache/beehive/wsm/axis/ant/ src/runtime/org/apache/beehive/wsm/axis/databinding/ src/runtime/org/apache/beehive/wsm/axis/handlers/ src/runtime/org/apache/beehive/wsm/axis/registration/ src/runtime/org/apache/beehive/wsm/axis/tools/ src/runtime/org/apache/beehive/wsm/axis/util/ src/runtime/org/apache/beehive/wsm/databinding/ src/runtime/org/apache/beehive/wsm/databinding/xmlbeans/ src/runtime/org/apache/beehive/wsm/model/ src/runtime/org/apache/beehive/wsm/model/java/ src/runtime/org/apache/beehive/wsm/model/jsr181/ src/runtime/org/apache/beehive/wsm/processor/apt/ src/runtime/org/apache/beehive/wsm/registration/ src/runtime/org/apache/beehive/wsm/util/ src/runtime/org/apache/beehive/wsm/wsdl/

Modified: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/Jsr181ModelTest.javax
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/Jsr181ModelTest.javax?rev=190652&r1=190651&r2=190652&view=diff
==============================================================================
--- incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/Jsr181ModelTest.javax (original)
+++ incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/Jsr181ModelTest.javax Tue Jun 14 12:36:38 2005
@@ -1,739 +1,739 @@
-package org.apache.beehive.wsm.jsr181.model;
-
-/*
- * Copyright 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.
- *
- * $Header:$
- */
-
-import java.lang.annotation.Annotation;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebService;
-import javax.jws.soap.InitParam;
-import javax.jws.soap.SOAPBinding;
-import javax.jws.soap.SOAPMessageHandler;
-
-import junit.framework.TestCase;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeHandlerChainAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeInitParamAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeOneWayAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeSOAPBindingAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeSOAPMessageHandlerAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeSOAPMessageHandlersAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeSecurityIdentityAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeSecurityRoleAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeWebMethodAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeWebParamAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeWebResultAnnotation;
-import org.apache.beehive.wsm.model.fakeAnnotations.FakeWebServiceAnnotation;
-
-//
-// TODO: test combination of type, method, annotation
-//
-
-public class Jsr181ModelTest extends TestCase {
-    @Override
-    public void setUp() {
-        // empty
-    }
-
-    @Override
-    public void tearDown() {
-        // empty
-    }
-
-    /////////////////////////
-    //
-    // TYPE constructor
-    //
-    /////////////////////////
-    //
-    // todo test constructor properly
-    //
-    public void testTYPEConstructor() throws Exception {
-        FakeWebServiceAnnotation fakeWebServiceAnnotation =
-                new FakeWebServiceAnnotation("name", "svcName", null, null, null);
-        FakeSOAPBindingAnnotation fakeSOAPBindingAnnotation =
-                new FakeSOAPBindingAnnotation(SOAPBinding.Style.RPC,
-                        SOAPBinding.Use.ENCODED,
-                        SOAPBinding.ParameterStyle.WRAPPED);
-        String fqClassname = "a.b.c.testclass";
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        typeAnnotations.add(fakeSOAPBindingAnnotation);
-        Collection<Jsr181MethodMetadata> webMethods =
-                new ArrayList<Jsr181MethodMetadata>();
-
-        // does missing @WebService throw an error?
-        try {
-            Jsr181TypeMetadata type =
-                new Jsr181TypeMetadataImpl(null, fqClassname, null, typeAnnotations, webMethods);
-            fail("Failed to generate error for TYPE without @WebService annotation");
-        }
-        catch (IllegalArgumentException e) {
-            // good case
-        }        
-
-        // does missing fqClassname throw an error?
-        try {
-            Jsr181TypeMetadata type =
-                new Jsr181TypeMetadataImpl(fakeWebServiceAnnotation, null, null, typeAnnotations, webMethods);
-            fail("Failed to generate error for TYPE without TYPE name");
-        }
-        catch (IllegalArgumentException e) {
-            // good case
-        }
-
-        // does missing annotations throw an error?
-        try {
-            Jsr181TypeMetadata type =
-                   new Jsr181TypeMetadataImpl(fakeWebServiceAnnotation, fqClassname, null, null, webMethods);
-            fail("Failed to generate error for TYPE without TYPE annotations");
-        } catch (IllegalArgumentException e) {
-            // good case
-        }
-    }
-
-    /////////////////////////
-    //
-    // METHOD constructor
-    //
-    /////////////////////////
-    //
-    // todo test constructor properly
-    //
-    public void testMETHODConstructor() throws Exception {
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-
-        /*
-         * @WebMethod not required anymore -> endpointInterface/implementation bean
-        try {
-            Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, null, null);
-            fail("Error, the METHOD annotation should fail without @WebMethod");
-        }
-        catch (IllegalArgumentException e)
-        {
-            // good case
-        }
-        
-        try {
-            Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
-            fail("Error, the METHOD annotation should fail without @WebMethod");
-        }
-        catch (IllegalArgumentException e)
-        {
-            // good case
-        }
-         */
-
-        methodAnnotations.add(new FakeWebMethodAnnotation("", ""));
-        try {
-            Jsr181MethodMetadata method =
-                    new Jsr181MethodMetadataImpl(null, void.class, false, methodAnnotations, null);
-            fail("Error, the METHOD annotation should fail without method name");
-        } catch (IllegalArgumentException e) {
-            // good case
-        }
-        try {
-            Jsr181MethodMetadata method =
-                    new Jsr181MethodMetadataImpl("methodName", null, false, methodAnnotations, null);
-            fail("Error, the METHOD annotation should fail without return type class");
-        } catch (IllegalArgumentException e) {
-            // good case
-        }
-    }
-
-    /////////////////////////
-    //
-    // PARAMETER constructor
-    //
-    /////////////////////////
-    //
-    // todo test constructor properly
-    //
-    public void testPARAMETERConstructor() throws Exception {
-        try {
-            Jsr181ParameterMetadata param =
-                    new Jsr181ParameterMetadataImpl(null, "paramname", null);
-            fail("Java type is required in for constructor");
-        } catch (IllegalArgumentException e) {
-            // good case
-        }
-    }
-
-    /////////////////////////
-    //
-    // @WebService
-    //
-    /////////////////////////
-    
-    public void testTYPEWebServiceDefaults() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation =
-                new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        Jsr181TypeMetadata type =
-               new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertEquals("testclass", type.getWsName());
-        assertEquals("http://c.b.a", type.getWsTargetNamespace());
-        assertEquals("testclassService", type.getWsServiceName());
-        assertEquals("", type.getWsWsdlLocation());
-        assertEquals("", type.getWsEndpointInterface());
-    }
-
-    public void testTYPEWebService() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation =
-                new FakeWebServiceAnnotation("testname", "testserviceName", "testwsdllocation", "testtargetnamespace", "");
-        typeAnnotations.add(wsAnnotation);
-        Jsr181TypeMetadata type =
-               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertEquals("testname", type.getWsName());
-        assertEquals("testtargetnamespace", type.getWsTargetNamespace());
-        assertEquals("testserviceName", type.getWsServiceName());
-        assertEquals("testwsdllocation", type.getWsWsdlLocation());
-//        assertEquals("testendpointinterface", type.getWsEndpointInterface());
-    }
-
-    /////////////////////////
-    //
-    // @WebMethod
-    //
-    /////////////////////////
-    
-    public void testMETHODWebMethodDefaults() throws Exception {
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-        methodAnnotations.add(new FakeWebMethodAnnotation("", ""));
-        Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
-        assertEquals("methodname", method.getWmOperationName());
-        assertEquals("", method.getWmAction());
-    }
-
-    public void testMETHODWebMethod() throws Exception {
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-        WebMethod mAnnotation =
-                new FakeWebMethodAnnotation("operationname", "action");
-        methodAnnotations.add(mAnnotation);
-        Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
-        assertEquals("operationname", method.getWmOperationName());
-        assertEquals("action", method.getWmAction());
-    }
-
-    /////////////////////////
-    //
-    // @Oneway
-    //
-    /////////////////////////
-    
-    public void testMETHODOneWayDefaults() throws Exception {
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-        methodAnnotations.add(new FakeWebMethodAnnotation("", ""));
-        Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
-        assertFalse(method.isOneWay());
-    }
-
-    public void testMETHODOneWay() throws Exception {
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-        methodAnnotations.add(new FakeWebMethodAnnotation("", ""));
-        methodAnnotations.add(new FakeOneWayAnnotation());
-        Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
-        assertTrue(method.isOneWay());
-    }
-    
-    /////////////////////////
-    //
-    // @WebParam
-    //
-    /////////////////////////
- 
-    public void testPARAMETERWebParamDefaults() throws Exception {
-        Collection<Annotation> paramAnnotations = new ArrayList<Annotation>();
-        WebParam wpAnnotation = new FakeWebParamAnnotation("", "", WebParam.Mode.IN, false);
-        paramAnnotations.add(wpAnnotation);
-        Jsr181ParameterMetadata param =
-                new Jsr181ParameterMetadataImpl(String.class, "paramname", paramAnnotations);
-        
-        /*** *** ***/
-
-        // create param list
-        List<Jsr181ParameterMetadata> params =
-                new ArrayList<Jsr181ParameterMetadata>();
-
-        // create methods
-        Collection<Jsr181MethodMetadata> methods =
-                new ArrayList<Jsr181MethodMetadata>();
-        params.add(param);
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-        WebMethod methodAnnotation =
-                new FakeWebMethodAnnotation("operationname", "action");
-        methodAnnotations.add(methodAnnotation);
-        Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, params);
-        methods.add(method);
-        
-        // create annotations
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-
-        // create type
-        Jsr181TypeMetadata type =
-                new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methods);
-
-        /*** *** ***/
-        
-        assertEquals("paramname", param.getWpName());
-        assertEquals(type.getWsTargetNamespace(), param.getWpTargetNamespace());
-        assertEquals(WebParam.Mode.IN, param.getWpMode());
-        assertFalse(param.isWpHeader());
-    }
-
-    public void testPARAMETERWebParam() throws Exception {
-        Collection<Annotation> paramAnnotations = new ArrayList<Annotation>();
-        WebParam wpAnnotation =
-                new FakeWebParamAnnotation("paramname", "targetNamespace", WebParam.Mode.INOUT, true);
-        paramAnnotations.add(wpAnnotation);
-        Jsr181ParameterMetadata param =
-                new Jsr181ParameterMetadataImpl(String.class, "paramname", paramAnnotations);
-        assertEquals("paramname", param.getWpName());
-        assertEquals("targetNamespace", param.getWpTargetNamespace());
-        assertEquals(WebParam.Mode.INOUT, param.getWpMode());
-        assertTrue(param.isWpHeader());
-    }
-
-    /////////////////////////
-    //
-    // @WebResult
-    //
-    /////////////////////////
-    
-    public void testMETHODWebResultDefaults() throws Exception {
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-        WebMethod mAnnotation =
-                new FakeWebMethodAnnotation("operationname", "action");
-        methodAnnotations.add(mAnnotation);
-        methodAnnotations.add(new FakeWebResultAnnotation("result", ""));
-        Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
-        
-        /*** *** ***/
-
-        // create methods
-        Collection<Jsr181MethodMetadata> methods =
-                new ArrayList<Jsr181MethodMetadata>();
-        methods.add(method);
-        
-        // create annotations
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-
-        // create type
-        Jsr181TypeMetadata type =
-               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methods);
-
-        /*** *** ***/
-
-        assertEquals("result", method.getWrName());
-        assertEquals(type.getWsTargetNamespace(), method.getWrTargetNamespace());
-    }
-
-    public void testMETHODWebResult() throws Exception {
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-        WebMethod mAnnotation =
-                new FakeWebMethodAnnotation("operationname", "action");
-        methodAnnotations.add(mAnnotation);
-        methodAnnotations.add(new FakeWebResultAnnotation("result", "targetNamespace"));
-        Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
-        assertEquals("result", method.getWrName());
-        assertEquals("targetNamespace", method.getWrTargetNamespace());
-    }
-
-    /////////////////////////
-    //
-    // @HandlerChain
-    //
-    /////////////////////////
-    
-    // no default values to check
-    
-    public void testTYPEHandlerChain() throws Exception {
-        String hcFileName = "/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/handlerChainConfig.xml";
-        String hcName = "testname";
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        typeAnnotations.add(new FakeHandlerChainAnnotation(hcFileName, hcName));
-        Jsr181TypeMetadata type =
-               new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertEquals(hcFileName, type.getHcFileName());
-        assertEquals(hcName, type.getHcName());
-    }
-
-    /////////////////////////
-    //
-    // @SOAPBinding
-    //
-    /////////////////////////
-    
-    // no default values to check
-
-    public void testTYPESOAPBinding() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation =
-                new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        typeAnnotations.add(new FakeSOAPBindingAnnotation(SOAPBinding.Style.RPC,
-                SOAPBinding.Use.ENCODED,
-                SOAPBinding.ParameterStyle.BARE));
-        Jsr181TypeMetadata type =
-               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertEquals(SOAPBinding.Style.RPC, type.getSoapBinding().getStyle());
-        assertEquals(SOAPBinding.Use.ENCODED, type.getSoapBinding().getUse());
-        assertEquals(SOAPBinding.ParameterStyle.BARE, type.getSoapBinding().getParameterStyle());
-    }
-
-    /////////////////////////
-    //
-    // @SOAPMessageHandlers
-    //
-    /////////////////////////
-
-    // test empty handler list
-    public void testTYPESoapMessageHandlersDefaults1() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        FakeSOAPMessageHandlerAnnotation[] emptyHandlers =
-                new FakeSOAPMessageHandlerAnnotation[0];
-        typeAnnotations.add(new FakeSOAPMessageHandlersAnnotation(emptyHandlers));
-        Jsr181TypeMetadata type =
-              new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertTrue(type.getSoapHandlers().isEmpty());
-    }
-
-    // test single default handler in handlers list
-    public void testTYPESoapMessageHandlersDefaults2() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        SOAPMessageHandler[] defaultHandlers = {
-            new FakeSOAPMessageHandlerAnnotation("", "soaphandlerclass", new FakeInitParamAnnotation[0], new String[0], new String[0])
-        };
-        typeAnnotations.add(new FakeSOAPMessageHandlersAnnotation(defaultHandlers));
-        Jsr181TypeMetadata type =
-               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertEquals("number of handlers returned: " + type.getSoapHandlers().size(),
-                1, type.getSoapHandlers().size());
-        SOAPMessageHandlerInfo handler = type.getSoapHandlers().get(0);
-        assertEquals("soaphandlerclass", handler.getName());
-        assertEquals("soaphandlerclass", handler.getClassName());
-        assertEquals(0, handler.getParameterMap().size());
-        assertEquals(0, handler.getRoles().size());
-        assertEquals(0, handler.getHeaders().size());
-    }
-
-    public void testTYPESoapMessageHandlers() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        InitParam[] params = {
-            new FakeInitParamAnnotation("paramname", "paramvalue")
-        };
-        String[] roles = {"roles"};
-        String[] headers = {"namespace.localname"};
-        SOAPMessageHandler[] defaultHandlers = {
-            new FakeSOAPMessageHandlerAnnotation("", "soaphandlerclass", params, roles, headers)
-        };
-        typeAnnotations.add(new FakeSOAPMessageHandlersAnnotation(defaultHandlers));
-        Jsr181TypeMetadata type =
-              new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        
-        // handlers
-        List<SOAPMessageHandlerInfo> soapHandlers = type.getSoapHandlers();
-        assertEquals("number of handlers returned: " + soapHandlers.size(),
-                1, soapHandlers.size());
-        SOAPMessageHandlerInfo handler = soapHandlers.get(0);
-        assertEquals("soaphandlerclass", handler.getName());
-        assertEquals("soaphandlerclass", handler.getClassName());
-        assertEquals(1, handler.getParameterMap().size());
-        assertEquals(1, handler.getRoles().size());
-        assertEquals(1, handler.getHeaders().size());
-
-        // params
-        Map.Entry<String, String> me =
-                handler.getParameterMap().entrySet().iterator().next();
-        assertEquals("paramname", me.getKey());
-        assertEquals("paramvalue", me.getValue());
-
-        // roles
-        assertEquals("roles", handler.getRoles().iterator().next());
-        
-        // headers
-        String s = handler.getHeaders().iterator().next();
-        assertEquals(s, "namespace.localname");
-    }
-
-    /////////////////////////
-    //
-    // @SecurityRoles
-    //
-    /////////////////////////
-
-    public void testTYPESecurityRolesDefaults() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        typeAnnotations.add(new FakeSecurityRoleAnnotation(null, null));
-        Jsr181TypeMetadata type =
-              new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertNull(type.getSecurityRoles().getRolesAllowed());
-        assertNull(type.getSecurityRoles().getRolesReferenced());
-    }
-
-    public void testTYPESecurityRoles() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        String[] rolesAllowed = {"rolesallowed"};
-        String[] rolesReferenced = {"rolesreferenced"};
-        typeAnnotations.add(new FakeSecurityRoleAnnotation(rolesAllowed, rolesReferenced));
-        Jsr181TypeMetadata type =
-               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertEquals(1, type.getSecurityRoles().getRolesAllowed().size());
-        assertEquals("rolesallowed", (String) type.getSecurityRoles().getRolesAllowed().iterator().next());
-        assertEquals(1, type.getSecurityRoles().getRolesReferenced().size());
-        assertEquals("rolesreferenced", type.getSecurityRoles().getRolesReferenced().iterator().next());
-    }
-
-    /////////////////////////
-    //
-    // @SecurityIdentity
-    //
-    /////////////////////////
-
-    public void testTYPESecurityIdentityDefaults() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        typeAnnotations.add(new FakeSecurityIdentityAnnotation(null));
-        Jsr181TypeMetadata type =
-                new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertNull(type.getSiValue());
-    }
-
-    public void testTYPESecurityIdentity() throws Exception {
-        Collection<Jsr181MethodMetadata> methodMetadata =
-                new ArrayList<Jsr181MethodMetadata>();
-        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
-        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
-        typeAnnotations.add(wsAnnotation);
-        typeAnnotations.add(new FakeSecurityIdentityAnnotation("value"));
-        Jsr181TypeMetadata type =
-                new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
-        assertEquals(type.getSiValue(), "value");
-    }
-
-    /////////////////////////
-    //
-    // JSR-181 Rules
-    //
-    /////////////////////////
-
-    public void testTYPESOAPHandlerWithHandlerChain() throws Exception {
-        boolean hasPassed = false;
-        try {
-            Collection<Annotation> typeAnnotations =
-                    new ArrayList<Annotation>();
-            WebService wsAnnotation =
-                    new FakeWebServiceAnnotation("name",
-                            "serviceName",
-                            "wsdlLocation",
-                            "targetNamespace",
-                            "esndpointInterface");
-            typeAnnotations.add(wsAnnotation);
-            typeAnnotations.add(new FakeSOAPMessageHandlersAnnotation(new SOAPMessageHandler[0]));
-            typeAnnotations.add(new FakeHandlerChainAnnotation("fileName", "chainName"));
-            Jsr181TypeMetadata type =
-                    new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, new ArrayList<Jsr181MethodMetadata>());
-        } catch (Exception e) {
-            hasPassed = true;
-        }
-        if (!hasPassed) {
-            fail("Error not caught: @SOAPMessageHandlers cannot be combined with @HandlerChain");
-        }
-    }
-
-    public void testMETHODSecurityRoleDefaults() throws Exception {
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-        WebMethod mAnnotation =
-                new FakeWebMethodAnnotation("operationname", "action");
-        methodAnnotations.add(mAnnotation);
-        methodAnnotations.add(new FakeSecurityRoleAnnotation(null, null));
-        Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
-        assertNull(method.getSecurityRoles().getRolesAllowed());
-        assertNull(method.getSecurityRoles().getRolesReferenced());
-    }
-
-    public void testMETHODSecurityRole() throws Exception {
-        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-        WebMethod mAnnotation =
-                new FakeWebMethodAnnotation("operationname", "action");
-        methodAnnotations.add(mAnnotation);
-        String[] rolesAllowed = {"rolesallowed"};
-        String[] rolesReferenced = {"rolesreferenced"};
-        methodAnnotations.add(new FakeSecurityRoleAnnotation(rolesAllowed,
-                rolesReferenced));
-        Jsr181MethodMetadata method =
-                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
-        assertEquals(1, method.getSecurityRoles().getRolesAllowed().size());
-        assertEquals("rolesallowed", method.getSecurityRoles().getRolesAllowed().iterator().next());
-        assertEquals(1, method.getSecurityRoles().getRolesReferenced().size());
-        assertEquals("rolesreferenced", method.getSecurityRoles().getRolesReferenced().iterator().next());
-    }
-
-    public void testMETHODOnewayWithWebResult() throws Exception {
-        boolean hasPassed = false;
-        try {
-            Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-            FakeWebMethodAnnotation mAnnotation =
-                    new FakeWebMethodAnnotation("operationname", "action");
-            methodAnnotations.add(mAnnotation);
-            methodAnnotations.add(new FakeOneWayAnnotation());
-            methodAnnotations.add(new FakeWebResultAnnotation("result", ""));
-            Jsr181MethodMetadata method = new Jsr181MethodMetadataImpl("methodname",
-                    void.class,
-                    false,
-                    methodAnnotations,
-                    null);
-        } catch (Exception e) {
-            hasPassed = true;
-        }
-        if (!hasPassed) {
-            fail("Error not caught: @Oneway method has @WebResult");
-        }
-    }
-
-    public void testMETHODOnewayWithReturnType() throws Exception {
-        boolean hasPassed = false;
-        try {
-            Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
-            FakeWebMethodAnnotation mAnnotation =
-                    new FakeWebMethodAnnotation("operationname", "action");
-            methodAnnotations.add(mAnnotation);
-            methodAnnotations.add(new FakeOneWayAnnotation());
-            Jsr181MethodMetadata method = new Jsr181MethodMetadataImpl("methodname",
-                    int.class,
-                    false,
-                    methodAnnotations,
-                    null);
-        } catch (Exception e) {
-            hasPassed = true;
-        }
-        if (!hasPassed) {
-            fail("Error not caught: @Oneway method has non-void return type");
-        }
-    }
-
-    public void testMETHODOnewayWithExceptions() throws Exception {
-        boolean hasPassed = false;
-        try {
-            Collection<Annotation> methodAnnotations =
-                    new ArrayList<Annotation>();
-            FakeWebMethodAnnotation mAnnotation =
-                    new FakeWebMethodAnnotation("operationname", "action");
-            methodAnnotations.add(mAnnotation);
-            methodAnnotations.add(new FakeOneWayAnnotation());
-            Jsr181MethodMetadata method = new Jsr181MethodMetadataImpl("methodname",
-                    void.class,
-                    true,
-                    methodAnnotations,
-                    null);
-        } catch (Exception e) {
-            hasPassed = true;
-        }
-        if (!hasPassed) {
-            fail("Error not caught: @Oneway method throws exceptions");
-        }
-    }
-
-    public void testMETHODOnewayOUTParam() throws Exception {
-        boolean hasPassed = false;
-        try {
-            Collection<Annotation> methodAnnotations =
-                    new ArrayList<Annotation>();
-            FakeWebMethodAnnotation mAnnotation =
-                    new FakeWebMethodAnnotation("operationname", "action");
-            methodAnnotations.add(mAnnotation);
-            methodAnnotations.add(new FakeOneWayAnnotation());
-            List<Jsr181ParameterMetadata> params =
-                    new ArrayList<Jsr181ParameterMetadata>();
-            Collection<Annotation> paramAnnotations =
-                    new ArrayList<Annotation>();
-            FakeWebParamAnnotation pAnnotation =
-                    new FakeWebParamAnnotation("param", "", WebParam.Mode.OUT, false);
-            paramAnnotations.add(pAnnotation);
-            Jsr181ParameterMetadata param =
-                    new Jsr181ParameterMetadataImpl(String.class, // javaType
-                            "paramname", // name
-                            paramAnnotations // annotations
-                    );
-            params.add(param);
-            Jsr181MethodMetadata method = new Jsr181MethodMetadataImpl("methodname",
-                    void.class,
-                    false,
-                    methodAnnotations,
-                    params);
-        } catch (Exception e) {
-            hasPassed = true;
-        }
-        if (!hasPassed) {
-            fail("Error not caught: @Oneway method has OUT or INOUT parameters");
-        }
-    }
+package org.apache.beehive.wsm.jsr181.model;
+
+/*
+ * Copyright 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.
+ *
+ * $Header:$
+ */
+
+import java.lang.annotation.Annotation;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.InitParam;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPMessageHandler;
+
+import junit.framework.TestCase;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeHandlerChainAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeInitParamAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeOneWayAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeSOAPBindingAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeSOAPMessageHandlerAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeSOAPMessageHandlersAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeSecurityIdentityAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeSecurityRoleAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeWebMethodAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeWebParamAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeWebResultAnnotation;
+import org.apache.beehive.wsm.model.fakeAnnotations.FakeWebServiceAnnotation;
+
+//
+// TODO: test combination of type, method, annotation
+//
+
+public class Jsr181ModelTest extends TestCase {
+    @Override
+    public void setUp() {
+        // empty
+    }
+
+    @Override
+    public void tearDown() {
+        // empty
+    }
+
+    /////////////////////////
+    //
+    // TYPE constructor
+    //
+    /////////////////////////
+    //
+    // todo test constructor properly
+    //
+    public void testTYPEConstructor() throws Exception {
+        FakeWebServiceAnnotation fakeWebServiceAnnotation =
+                new FakeWebServiceAnnotation("name", "svcName", null, null, null);
+        FakeSOAPBindingAnnotation fakeSOAPBindingAnnotation =
+                new FakeSOAPBindingAnnotation(SOAPBinding.Style.RPC,
+                        SOAPBinding.Use.ENCODED,
+                        SOAPBinding.ParameterStyle.WRAPPED);
+        String fqClassname = "a.b.c.testclass";
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        typeAnnotations.add(fakeSOAPBindingAnnotation);
+        Collection<Jsr181MethodMetadata> webMethods =
+                new ArrayList<Jsr181MethodMetadata>();
+
+        // does missing @WebService throw an error?
+        try {
+            Jsr181TypeMetadata type =
+                new Jsr181TypeMetadataImpl(null, fqClassname, null, typeAnnotations, webMethods);
+            fail("Failed to generate error for TYPE without @WebService annotation");
+        }
+        catch (IllegalArgumentException e) {
+            // good case
+        }        
+
+        // does missing fqClassname throw an error?
+        try {
+            Jsr181TypeMetadata type =
+                new Jsr181TypeMetadataImpl(fakeWebServiceAnnotation, null, null, typeAnnotations, webMethods);
+            fail("Failed to generate error for TYPE without TYPE name");
+        }
+        catch (IllegalArgumentException e) {
+            // good case
+        }
+
+        // does missing annotations throw an error?
+        try {
+            Jsr181TypeMetadata type =
+                   new Jsr181TypeMetadataImpl(fakeWebServiceAnnotation, fqClassname, null, null, webMethods);
+            fail("Failed to generate error for TYPE without TYPE annotations");
+        } catch (IllegalArgumentException e) {
+            // good case
+        }
+    }
+
+    /////////////////////////
+    //
+    // METHOD constructor
+    //
+    /////////////////////////
+    //
+    // todo test constructor properly
+    //
+    public void testMETHODConstructor() throws Exception {
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+
+        /*
+         * @WebMethod not required anymore -> endpointInterface/implementation bean
+        try {
+            Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, null, null);
+            fail("Error, the METHOD annotation should fail without @WebMethod");
+        }
+        catch (IllegalArgumentException e)
+        {
+            // good case
+        }
+        
+        try {
+            Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
+            fail("Error, the METHOD annotation should fail without @WebMethod");
+        }
+        catch (IllegalArgumentException e)
+        {
+            // good case
+        }
+         */
+
+        methodAnnotations.add(new FakeWebMethodAnnotation("", ""));
+        try {
+            Jsr181MethodMetadata method =
+                    new Jsr181MethodMetadataImpl(null, void.class, false, methodAnnotations, null);
+            fail("Error, the METHOD annotation should fail without method name");
+        } catch (IllegalArgumentException e) {
+            // good case
+        }
+        try {
+            Jsr181MethodMetadata method =
+                    new Jsr181MethodMetadataImpl("methodName", null, false, methodAnnotations, null);
+            fail("Error, the METHOD annotation should fail without return type class");
+        } catch (IllegalArgumentException e) {
+            // good case
+        }
+    }
+
+    /////////////////////////
+    //
+    // PARAMETER constructor
+    //
+    /////////////////////////
+    //
+    // todo test constructor properly
+    //
+    public void testPARAMETERConstructor() throws Exception {
+        try {
+            Jsr181ParameterMetadata param =
+                    new Jsr181ParameterMetadataImpl(null, "paramname", null);
+            fail("Java type is required in for constructor");
+        } catch (IllegalArgumentException e) {
+            // good case
+        }
+    }
+
+    /////////////////////////
+    //
+    // @WebService
+    //
+    /////////////////////////
+    
+    public void testTYPEWebServiceDefaults() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation =
+                new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        Jsr181TypeMetadata type =
+               new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertEquals("testclass", type.getWsName());
+        assertEquals("http://c.b.a", type.getWsTargetNamespace());
+        assertEquals("testclassService", type.getWsServiceName());
+        assertEquals("", type.getWsWsdlLocation());
+        assertEquals("", type.getWsEndpointInterface());
+    }
+
+    public void testTYPEWebService() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation =
+                new FakeWebServiceAnnotation("testname", "testserviceName", "testwsdllocation", "testtargetnamespace", "");
+        typeAnnotations.add(wsAnnotation);
+        Jsr181TypeMetadata type =
+               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertEquals("testname", type.getWsName());
+        assertEquals("testtargetnamespace", type.getWsTargetNamespace());
+        assertEquals("testserviceName", type.getWsServiceName());
+        assertEquals("testwsdllocation", type.getWsWsdlLocation());
+//        assertEquals("testendpointinterface", type.getWsEndpointInterface());
+    }
+
+    /////////////////////////
+    //
+    // @WebMethod
+    //
+    /////////////////////////
+    
+    public void testMETHODWebMethodDefaults() throws Exception {
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+        methodAnnotations.add(new FakeWebMethodAnnotation("", ""));
+        Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
+        assertEquals("methodname", method.getWmOperationName());
+        assertEquals("", method.getWmAction());
+    }
+
+    public void testMETHODWebMethod() throws Exception {
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+        WebMethod mAnnotation =
+                new FakeWebMethodAnnotation("operationname", "action");
+        methodAnnotations.add(mAnnotation);
+        Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
+        assertEquals("operationname", method.getWmOperationName());
+        assertEquals("action", method.getWmAction());
+    }
+
+    /////////////////////////
+    //
+    // @Oneway
+    //
+    /////////////////////////
+    
+    public void testMETHODOneWayDefaults() throws Exception {
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+        methodAnnotations.add(new FakeWebMethodAnnotation("", ""));
+        Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
+        assertFalse(method.isOneWay());
+    }
+
+    public void testMETHODOneWay() throws Exception {
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+        methodAnnotations.add(new FakeWebMethodAnnotation("", ""));
+        methodAnnotations.add(new FakeOneWayAnnotation());
+        Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
+        assertTrue(method.isOneWay());
+    }
+    
+    /////////////////////////
+    //
+    // @WebParam
+    //
+    /////////////////////////
+ 
+    public void testPARAMETERWebParamDefaults() throws Exception {
+        Collection<Annotation> paramAnnotations = new ArrayList<Annotation>();
+        WebParam wpAnnotation = new FakeWebParamAnnotation("", "", WebParam.Mode.IN, false);
+        paramAnnotations.add(wpAnnotation);
+        Jsr181ParameterMetadata param =
+                new Jsr181ParameterMetadataImpl(String.class, "paramname", paramAnnotations);
+        
+        /*** *** ***/
+
+        // create param list
+        List<Jsr181ParameterMetadata> params =
+                new ArrayList<Jsr181ParameterMetadata>();
+
+        // create methods
+        Collection<Jsr181MethodMetadata> methods =
+                new ArrayList<Jsr181MethodMetadata>();
+        params.add(param);
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+        WebMethod methodAnnotation =
+                new FakeWebMethodAnnotation("operationname", "action");
+        methodAnnotations.add(methodAnnotation);
+        Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, params);
+        methods.add(method);
+        
+        // create annotations
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+
+        // create type
+        Jsr181TypeMetadata type =
+                new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methods);
+
+        /*** *** ***/
+        
+        assertEquals("paramname", param.getWpName());
+        assertEquals(type.getWsTargetNamespace(), param.getWpTargetNamespace());
+        assertEquals(WebParam.Mode.IN, param.getWpMode());
+        assertFalse(param.isWpHeader());
+    }
+
+    public void testPARAMETERWebParam() throws Exception {
+        Collection<Annotation> paramAnnotations = new ArrayList<Annotation>();
+        WebParam wpAnnotation =
+                new FakeWebParamAnnotation("paramname", "targetNamespace", WebParam.Mode.INOUT, true);
+        paramAnnotations.add(wpAnnotation);
+        Jsr181ParameterMetadata param =
+                new Jsr181ParameterMetadataImpl(String.class, "paramname", paramAnnotations);
+        assertEquals("paramname", param.getWpName());
+        assertEquals("targetNamespace", param.getWpTargetNamespace());
+        assertEquals(WebParam.Mode.INOUT, param.getWpMode());
+        assertTrue(param.isWpHeader());
+    }
+
+    /////////////////////////
+    //
+    // @WebResult
+    //
+    /////////////////////////
+    
+    public void testMETHODWebResultDefaults() throws Exception {
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+        WebMethod mAnnotation =
+                new FakeWebMethodAnnotation("operationname", "action");
+        methodAnnotations.add(mAnnotation);
+        methodAnnotations.add(new FakeWebResultAnnotation("result", ""));
+        Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
+        
+        /*** *** ***/
+
+        // create methods
+        Collection<Jsr181MethodMetadata> methods =
+                new ArrayList<Jsr181MethodMetadata>();
+        methods.add(method);
+        
+        // create annotations
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+
+        // create type
+        Jsr181TypeMetadata type =
+               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methods);
+
+        /*** *** ***/
+
+        assertEquals("result", method.getWrName());
+        assertEquals(type.getWsTargetNamespace(), method.getWrTargetNamespace());
+    }
+
+    public void testMETHODWebResult() throws Exception {
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+        WebMethod mAnnotation =
+                new FakeWebMethodAnnotation("operationname", "action");
+        methodAnnotations.add(mAnnotation);
+        methodAnnotations.add(new FakeWebResultAnnotation("result", "targetNamespace"));
+        Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
+        assertEquals("result", method.getWrName());
+        assertEquals("targetNamespace", method.getWrTargetNamespace());
+    }
+
+    /////////////////////////
+    //
+    // @HandlerChain
+    //
+    /////////////////////////
+    
+    // no default values to check
+    
+    public void testTYPEHandlerChain() throws Exception {
+        String hcFileName = "/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/handlerChainConfig.xml";
+        String hcName = "testname";
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        typeAnnotations.add(new FakeHandlerChainAnnotation(hcFileName, hcName));
+        Jsr181TypeMetadata type =
+               new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertEquals(hcFileName, type.getHcFileName());
+        assertEquals(hcName, type.getHcName());
+    }
+
+    /////////////////////////
+    //
+    // @SOAPBinding
+    //
+    /////////////////////////
+    
+    // no default values to check
+
+    public void testTYPESOAPBinding() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation =
+                new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        typeAnnotations.add(new FakeSOAPBindingAnnotation(SOAPBinding.Style.RPC,
+                SOAPBinding.Use.ENCODED,
+                SOAPBinding.ParameterStyle.BARE));
+        Jsr181TypeMetadata type =
+               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertEquals(SOAPBinding.Style.RPC, type.getSoapBinding().getStyle());
+        assertEquals(SOAPBinding.Use.ENCODED, type.getSoapBinding().getUse());
+        assertEquals(SOAPBinding.ParameterStyle.BARE, type.getSoapBinding().getParameterStyle());
+    }
+
+    /////////////////////////
+    //
+    // @SOAPMessageHandlers
+    //
+    /////////////////////////
+
+    // test empty handler list
+    public void testTYPESoapMessageHandlersDefaults1() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        FakeSOAPMessageHandlerAnnotation[] emptyHandlers =
+                new FakeSOAPMessageHandlerAnnotation[0];
+        typeAnnotations.add(new FakeSOAPMessageHandlersAnnotation(emptyHandlers));
+        Jsr181TypeMetadata type =
+              new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertTrue(type.getSoapHandlers().isEmpty());
+    }
+
+    // test single default handler in handlers list
+    public void testTYPESoapMessageHandlersDefaults2() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        SOAPMessageHandler[] defaultHandlers = {
+            new FakeSOAPMessageHandlerAnnotation("", "soaphandlerclass", new FakeInitParamAnnotation[0], new String[0], new String[0])
+        };
+        typeAnnotations.add(new FakeSOAPMessageHandlersAnnotation(defaultHandlers));
+        Jsr181TypeMetadata type =
+               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertEquals("number of handlers returned: " + type.getSoapHandlers().size(),
+                1, type.getSoapHandlers().size());
+        SOAPMessageHandlerInfo handler = type.getSoapHandlers().get(0);
+        assertEquals("soaphandlerclass", handler.getName());
+        assertEquals("soaphandlerclass", handler.getClassName());
+        assertEquals(0, handler.getParameterMap().size());
+        assertEquals(0, handler.getRoles().size());
+        assertEquals(0, handler.getHeaders().size());
+    }
+
+    public void testTYPESoapMessageHandlers() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        InitParam[] params = {
+            new FakeInitParamAnnotation("paramname", "paramvalue")
+        };
+        String[] roles = {"roles"};
+        String[] headers = {"namespace.localname"};
+        SOAPMessageHandler[] defaultHandlers = {
+            new FakeSOAPMessageHandlerAnnotation("", "soaphandlerclass", params, roles, headers)
+        };
+        typeAnnotations.add(new FakeSOAPMessageHandlersAnnotation(defaultHandlers));
+        Jsr181TypeMetadata type =
+              new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        
+        // handlers
+        List<SOAPMessageHandlerInfo> soapHandlers = type.getSoapHandlers();
+        assertEquals("number of handlers returned: " + soapHandlers.size(),
+                1, soapHandlers.size());
+        SOAPMessageHandlerInfo handler = soapHandlers.get(0);
+        assertEquals("soaphandlerclass", handler.getName());
+        assertEquals("soaphandlerclass", handler.getClassName());
+        assertEquals(1, handler.getParameterMap().size());
+        assertEquals(1, handler.getRoles().size());
+        assertEquals(1, handler.getHeaders().size());
+
+        // params
+        Map.Entry<String, String> me =
+                handler.getParameterMap().entrySet().iterator().next();
+        assertEquals("paramname", me.getKey());
+        assertEquals("paramvalue", me.getValue());
+
+        // roles
+        assertEquals("roles", handler.getRoles().iterator().next());
+        
+        // headers
+        String s = handler.getHeaders().iterator().next();
+        assertEquals(s, "namespace.localname");
+    }
+
+    /////////////////////////
+    //
+    // @SecurityRoles
+    //
+    /////////////////////////
+
+    public void testTYPESecurityRolesDefaults() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        typeAnnotations.add(new FakeSecurityRoleAnnotation(null, null));
+        Jsr181TypeMetadata type =
+              new  Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertNull(type.getSecurityRoles().getRolesAllowed());
+        assertNull(type.getSecurityRoles().getRolesReferenced());
+    }
+
+    public void testTYPESecurityRoles() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        String[] rolesAllowed = {"rolesallowed"};
+        String[] rolesReferenced = {"rolesreferenced"};
+        typeAnnotations.add(new FakeSecurityRoleAnnotation(rolesAllowed, rolesReferenced));
+        Jsr181TypeMetadata type =
+               new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertEquals(1, type.getSecurityRoles().getRolesAllowed().size());
+        assertEquals("rolesallowed", (String) type.getSecurityRoles().getRolesAllowed().iterator().next());
+        assertEquals(1, type.getSecurityRoles().getRolesReferenced().size());
+        assertEquals("rolesreferenced", type.getSecurityRoles().getRolesReferenced().iterator().next());
+    }
+
+    /////////////////////////
+    //
+    // @SecurityIdentity
+    //
+    /////////////////////////
+
+    public void testTYPESecurityIdentityDefaults() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        typeAnnotations.add(new FakeSecurityIdentityAnnotation(null));
+        Jsr181TypeMetadata type =
+                new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertNull(type.getSiValue());
+    }
+
+    public void testTYPESecurityIdentity() throws Exception {
+        Collection<Jsr181MethodMetadata> methodMetadata =
+                new ArrayList<Jsr181MethodMetadata>();
+        Collection<Annotation> typeAnnotations = new ArrayList<Annotation>();
+        WebService wsAnnotation = new FakeWebServiceAnnotation("", "", "", "", "");
+        typeAnnotations.add(wsAnnotation);
+        typeAnnotations.add(new FakeSecurityIdentityAnnotation("value"));
+        Jsr181TypeMetadata type =
+                new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, methodMetadata);
+        assertEquals(type.getSiValue(), "value");
+    }
+
+    /////////////////////////
+    //
+    // JSR-181 Rules
+    //
+    /////////////////////////
+
+    public void testTYPESOAPHandlerWithHandlerChain() throws Exception {
+        boolean hasPassed = false;
+        try {
+            Collection<Annotation> typeAnnotations =
+                    new ArrayList<Annotation>();
+            WebService wsAnnotation =
+                    new FakeWebServiceAnnotation("name",
+                            "serviceName",
+                            "wsdlLocation",
+                            "targetNamespace",
+                            "esndpointInterface");
+            typeAnnotations.add(wsAnnotation);
+            typeAnnotations.add(new FakeSOAPMessageHandlersAnnotation(new SOAPMessageHandler[0]));
+            typeAnnotations.add(new FakeHandlerChainAnnotation("fileName", "chainName"));
+            Jsr181TypeMetadata type =
+                    new Jsr181TypeMetadataImpl(wsAnnotation, "a.b.c.testclass", null, typeAnnotations, new ArrayList<Jsr181MethodMetadata>());
+        } catch (Exception e) {
+            hasPassed = true;
+        }
+        if (!hasPassed) {
+            fail("Error not caught: @SOAPMessageHandlers cannot be combined with @HandlerChain");
+        }
+    }
+
+    public void testMETHODSecurityRoleDefaults() throws Exception {
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+        WebMethod mAnnotation =
+                new FakeWebMethodAnnotation("operationname", "action");
+        methodAnnotations.add(mAnnotation);
+        methodAnnotations.add(new FakeSecurityRoleAnnotation(null, null));
+        Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
+        assertNull(method.getSecurityRoles().getRolesAllowed());
+        assertNull(method.getSecurityRoles().getRolesReferenced());
+    }
+
+    public void testMETHODSecurityRole() throws Exception {
+        Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+        WebMethod mAnnotation =
+                new FakeWebMethodAnnotation("operationname", "action");
+        methodAnnotations.add(mAnnotation);
+        String[] rolesAllowed = {"rolesallowed"};
+        String[] rolesReferenced = {"rolesreferenced"};
+        methodAnnotations.add(new FakeSecurityRoleAnnotation(rolesAllowed,
+                rolesReferenced));
+        Jsr181MethodMetadata method =
+                new Jsr181MethodMetadataImpl("methodname", void.class, false, methodAnnotations, null);
+        assertEquals(1, method.getSecurityRoles().getRolesAllowed().size());
+        assertEquals("rolesallowed", method.getSecurityRoles().getRolesAllowed().iterator().next());
+        assertEquals(1, method.getSecurityRoles().getRolesReferenced().size());
+        assertEquals("rolesreferenced", method.getSecurityRoles().getRolesReferenced().iterator().next());
+    }
+
+    public void testMETHODOnewayWithWebResult() throws Exception {
+        boolean hasPassed = false;
+        try {
+            Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+            FakeWebMethodAnnotation mAnnotation =
+                    new FakeWebMethodAnnotation("operationname", "action");
+            methodAnnotations.add(mAnnotation);
+            methodAnnotations.add(new FakeOneWayAnnotation());
+            methodAnnotations.add(new FakeWebResultAnnotation("result", ""));
+            Jsr181MethodMetadata method = new Jsr181MethodMetadataImpl("methodname",
+                    void.class,
+                    false,
+                    methodAnnotations,
+                    null);
+        } catch (Exception e) {
+            hasPassed = true;
+        }
+        if (!hasPassed) {
+            fail("Error not caught: @Oneway method has @WebResult");
+        }
+    }
+
+    public void testMETHODOnewayWithReturnType() throws Exception {
+        boolean hasPassed = false;
+        try {
+            Collection<Annotation> methodAnnotations = new ArrayList<Annotation>();
+            FakeWebMethodAnnotation mAnnotation =
+                    new FakeWebMethodAnnotation("operationname", "action");
+            methodAnnotations.add(mAnnotation);
+            methodAnnotations.add(new FakeOneWayAnnotation());
+            Jsr181MethodMetadata method = new Jsr181MethodMetadataImpl("methodname",
+                    int.class,
+                    false,
+                    methodAnnotations,
+                    null);
+        } catch (Exception e) {
+            hasPassed = true;
+        }
+        if (!hasPassed) {
+            fail("Error not caught: @Oneway method has non-void return type");
+        }
+    }
+
+    public void testMETHODOnewayWithExceptions() throws Exception {
+        boolean hasPassed = false;
+        try {
+            Collection<Annotation> methodAnnotations =
+                    new ArrayList<Annotation>();
+            FakeWebMethodAnnotation mAnnotation =
+                    new FakeWebMethodAnnotation("operationname", "action");
+            methodAnnotations.add(mAnnotation);
+            methodAnnotations.add(new FakeOneWayAnnotation());
+            Jsr181MethodMetadata method = new Jsr181MethodMetadataImpl("methodname",
+                    void.class,
+                    true,
+                    methodAnnotations,
+                    null);
+        } catch (Exception e) {
+            hasPassed = true;
+        }
+        if (!hasPassed) {
+            fail("Error not caught: @Oneway method throws exceptions");
+        }
+    }
+
+    public void testMETHODOnewayOUTParam() throws Exception {
+        boolean hasPassed = false;
+        try {
+            Collection<Annotation> methodAnnotations =
+                    new ArrayList<Annotation>();
+            FakeWebMethodAnnotation mAnnotation =
+                    new FakeWebMethodAnnotation("operationname", "action");
+            methodAnnotations.add(mAnnotation);
+            methodAnnotations.add(new FakeOneWayAnnotation());
+            List<Jsr181ParameterMetadata> params =
+                    new ArrayList<Jsr181ParameterMetadata>();
+            Collection<Annotation> paramAnnotations =
+                    new ArrayList<Annotation>();
+            FakeWebParamAnnotation pAnnotation =
+                    new FakeWebParamAnnotation("param", "", WebParam.Mode.OUT, false);
+            paramAnnotations.add(pAnnotation);
+            Jsr181ParameterMetadata param =
+                    new Jsr181ParameterMetadataImpl(String.class, // javaType
+                            "paramname", // name
+                            paramAnnotations // annotations
+                    );
+            params.add(param);
+            Jsr181MethodMetadata method = new Jsr181MethodMetadataImpl("methodname",
+                    void.class,
+                    false,
+                    methodAnnotations,
+                    params);
+        } catch (Exception e) {
+            hasPassed = true;
+        }
+        if (!hasPassed) {
+            fail("Error not caught: @Oneway method has OUT or INOUT parameters");
+        }
+    }
 }

Propchange: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/Jsr181ModelTest.javax
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeHandlerChainAnnotation.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeHandlerChainAnnotation.java?rev=190652&r1=190651&r2=190652&view=diff
==============================================================================
--- incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeHandlerChainAnnotation.java (original)
+++ incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeHandlerChainAnnotation.java Tue Jun 14 12:36:38 2005
@@ -1,61 +1,61 @@
-package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
-
-import java.lang.annotation.Annotation;
-
-import javax.jws.HandlerChain;
-
-/*
- * Copyright 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.
- *
- * $Header:$
- */
-
-//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeHandlerChainAnnotation.java
-
-public class FakeHandlerChainAnnotation implements Annotation, HandlerChain {
-
-    String file;
-    String name;
-
-    /**
-     * 
-     */
-    public FakeHandlerChainAnnotation(String file, String name) {
-        this.file = file;
-        this.name = name;
-    }
-
-    /* (non-Javadoc)
-     * @see java.lang.annotation.Annotation#annotationType()
-     */
-    public Class<? extends Annotation> annotationType() {
-        return HandlerChain.class;
-    }
-
-    /* (non-Javadoc)
-     * @see javax.jws.HandlerChain#file()
-     */
-    public String file() {
-        return file;
-    }
-
-    /* (non-Javadoc)
-     * @see javax.jws.HandlerChain#name()
-     */
-    public String name() {
-        return name;
-    }
-
-}
+package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
+
+import java.lang.annotation.Annotation;
+
+import javax.jws.HandlerChain;
+
+/*
+ * Copyright 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.
+ *
+ * $Header:$
+ */
+
+//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeHandlerChainAnnotation.java
+
+public class FakeHandlerChainAnnotation implements Annotation, HandlerChain {
+
+    String file;
+    String name;
+
+    /**
+     * 
+     */
+    public FakeHandlerChainAnnotation(String file, String name) {
+        this.file = file;
+        this.name = name;
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.annotation.Annotation#annotationType()
+     */
+    public Class<? extends Annotation> annotationType() {
+        return HandlerChain.class;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.HandlerChain#file()
+     */
+    public String file() {
+        return file;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.HandlerChain#name()
+     */
+    public String name() {
+        return name;
+    }
+
+}

Propchange: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeHandlerChainAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeInitParamAnnotation.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeInitParamAnnotation.java?rev=190652&r1=190651&r2=190652&view=diff
==============================================================================
--- incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeInitParamAnnotation.java (original)
+++ incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeInitParamAnnotation.java Tue Jun 14 12:36:38 2005
@@ -1,61 +1,61 @@
-package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
-
-import java.lang.annotation.Annotation;
-
-import javax.jws.soap.InitParam;
-
-/*
- * Copyright 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.
- *
- * $Header:$
- */
-
-//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeInitParamAnnotation.java
-
-public class FakeInitParamAnnotation implements Annotation, InitParam {
-
-    private String name;
-    private String value;
-
-    /**
-     * 
-     */
-    public FakeInitParamAnnotation(String name, String value) {
-        this.name = name;
-        this.value = value;
-    }
-
-    /* (non-Javadoc)
-     * @see java.lang.annotation.Annotation#annotationType()
-     */
-    public Class<? extends Annotation> annotationType() {
-        return InitParam.class;
-    }
-
-    /* (non-Javadoc)
-     * @see javax.jws.InitParam#name()
-     */
-    public String name() {
-        return name;
-    }
-
-    /* (non-Javadoc)
-     * @see javax.jws.InitParam#value()
-     */
-    public String value() {
-        return value;
-    }
-
-}
+package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
+
+import java.lang.annotation.Annotation;
+
+import javax.jws.soap.InitParam;
+
+/*
+ * Copyright 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.
+ *
+ * $Header:$
+ */
+
+//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeInitParamAnnotation.java
+
+public class FakeInitParamAnnotation implements Annotation, InitParam {
+
+    private String name;
+    private String value;
+
+    /**
+     * 
+     */
+    public FakeInitParamAnnotation(String name, String value) {
+        this.name = name;
+        this.value = value;
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.annotation.Annotation#annotationType()
+     */
+    public Class<? extends Annotation> annotationType() {
+        return InitParam.class;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.InitParam#name()
+     */
+    public String name() {
+        return name;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.InitParam#value()
+     */
+    public String value() {
+        return value;
+    }
+
+}

Propchange: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeInitParamAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeOneWayAnnotation.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeOneWayAnnotation.java?rev=190652&r1=190651&r2=190652&view=diff
==============================================================================
--- incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeOneWayAnnotation.java (original)
+++ incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeOneWayAnnotation.java Tue Jun 14 12:36:38 2005
@@ -1,43 +1,43 @@
-package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
-
-import java.lang.annotation.Annotation;
-
-import javax.jws.Oneway;
-
-/*
- * Copyright 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.
- *
- * $Header:$
- */
-
-//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeOneWayAnnotation.java
-
-public class FakeOneWayAnnotation implements Annotation, Oneway {
-
-    /**
-     * 
-     */
-    public FakeOneWayAnnotation() {
-        super();
-    }
-
-    /* (non-Javadoc)
-     * @see java.lang.annotation.Annotation#annotationType()
-     */
-    public Class<? extends Annotation> annotationType() {
-        return Oneway.class;
-    }
-
-}
+package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
+
+import java.lang.annotation.Annotation;
+
+import javax.jws.Oneway;
+
+/*
+ * Copyright 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.
+ *
+ * $Header:$
+ */
+
+//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeOneWayAnnotation.java
+
+public class FakeOneWayAnnotation implements Annotation, Oneway {
+
+    /**
+     * 
+     */
+    public FakeOneWayAnnotation() {
+        super();
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.annotation.Annotation#annotationType()
+     */
+    public Class<? extends Annotation> annotationType() {
+        return Oneway.class;
+    }
+
+}

Propchange: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeOneWayAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPBindingAnnotation.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPBindingAnnotation.java?rev=190652&r1=190651&r2=190652&view=diff
==============================================================================
--- incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPBindingAnnotation.java (original)
+++ incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPBindingAnnotation.java Tue Jun 14 12:36:38 2005
@@ -1,53 +1,53 @@
-package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
-
-/*
- * Copyright 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.
- *
- * $Header:$
- */
-
-import java.lang.annotation.Annotation;
-
-import javax.jws.soap.SOAPBinding;
-
-public class FakeSOAPBindingAnnotation implements SOAPBinding, Annotation {
-    private SOAPBinding.Style style;
-    private SOAPBinding.Use use;
-    private SOAPBinding.ParameterStyle parameterStyle;
-
-    public FakeSOAPBindingAnnotation(SOAPBinding.Style style,
-                                     SOAPBinding.Use use,
-                                     SOAPBinding.ParameterStyle parameterStyle) {
-        this.style = style;
-        this.use = use;
-        this.parameterStyle = parameterStyle;
-    }
-
-    public Style style() {
-        return style;
-    }
-
-    public Use use() {
-        return use;
-    }
-
-    public ParameterStyle parameterStyle() {
-        return parameterStyle;
-    }
-
-    public Class annotationType() {
-        return SOAPBinding.class;
-    }
+package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
+
+/*
+ * Copyright 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.
+ *
+ * $Header:$
+ */
+
+import java.lang.annotation.Annotation;
+
+import javax.jws.soap.SOAPBinding;
+
+public class FakeSOAPBindingAnnotation implements SOAPBinding, Annotation {
+    private SOAPBinding.Style style;
+    private SOAPBinding.Use use;
+    private SOAPBinding.ParameterStyle parameterStyle;
+
+    public FakeSOAPBindingAnnotation(SOAPBinding.Style style,
+                                     SOAPBinding.Use use,
+                                     SOAPBinding.ParameterStyle parameterStyle) {
+        this.style = style;
+        this.use = use;
+        this.parameterStyle = parameterStyle;
+    }
+
+    public Style style() {
+        return style;
+    }
+
+    public Use use() {
+        return use;
+    }
+
+    public ParameterStyle parameterStyle() {
+        return parameterStyle;
+    }
+
+    public Class annotationType() {
+        return SOAPBinding.class;
+    }
 }

Propchange: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPBindingAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPMessageHandlerAnnotation.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPMessageHandlerAnnotation.java?rev=190652&r1=190651&r2=190652&view=diff
==============================================================================
--- incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPMessageHandlerAnnotation.java (original)
+++ incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPMessageHandlerAnnotation.java Tue Jun 14 12:36:38 2005
@@ -1,96 +1,96 @@
-package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
-
-import java.lang.annotation.Annotation;
-
-import javax.jws.soap.InitParam;
-import javax.jws.soap.SOAPMessageHandler;
-
-/*
- * Copyright 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.
- *
- * $Header:$
- */
-
-//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeSOAPMessageHandlerAnnotation.java
-
-public class FakeSOAPMessageHandlerAnnotation implements Annotation,
-        SOAPMessageHandler {
-
-    String name;
-    String className;
-    InitParam[] initParams;
-    String[] roles;
-    String[] headers;
-
-    /**
-     * @param name
-     * @param className
-     * @param initParams
-     * @param roles
-     * @param headers
-     */
-    public FakeSOAPMessageHandlerAnnotation(String name, String className,
-                                            InitParam[] initParams, String[] roles, String[] headers) {
-        super();
-        this.name = name;
-        this.className = className;
-        this.initParams = initParams;
-        this.roles = roles;
-        this.headers = headers;
-    }
-
-    /* (non-Javadoc)
-     * @see java.lang.annotation.Annotation#annotationType()
-     */
-    public Class<? extends Annotation> annotationType() {
-        return SOAPMessageHandler.class;
-    }
-
-    /* (non-Javadoc)
-     * @see javax.jws.soap.SOAPMessageHandler#name()
-     */
-    public String name() {
-        return name;
-    }
-
-    /* (non-Javadoc)
-     * @see javax.jws.soap.SOAPMessageHandler#className()
-     */
-    public String className() {
-        return className;
-    }
-
-    /* (non-Javadoc)
-     * @see javax.jws.soap.SOAPMessageHandler#initParams()
-     */
-    public InitParam[] initParams() {
-        return initParams;
-    }
-
-    /* (non-Javadoc)
-     * @see javax.jws.soap.SOAPMessageHandler#roles()
-     */
-    public String[] roles() {
-        return roles;
-    }
-
-    /* (non-Javadoc)
-     * @see javax.jws.soap.SOAPMessageHandler#headers()
-     */
-    public String[] headers() {
-        return headers;
-    }
-
-}
+package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
+
+import java.lang.annotation.Annotation;
+
+import javax.jws.soap.InitParam;
+import javax.jws.soap.SOAPMessageHandler;
+
+/*
+ * Copyright 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.
+ *
+ * $Header:$
+ */
+
+//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeSOAPMessageHandlerAnnotation.java
+
+public class FakeSOAPMessageHandlerAnnotation implements Annotation,
+        SOAPMessageHandler {
+
+    String name;
+    String className;
+    InitParam[] initParams;
+    String[] roles;
+    String[] headers;
+
+    /**
+     * @param name
+     * @param className
+     * @param initParams
+     * @param roles
+     * @param headers
+     */
+    public FakeSOAPMessageHandlerAnnotation(String name, String className,
+                                            InitParam[] initParams, String[] roles, String[] headers) {
+        super();
+        this.name = name;
+        this.className = className;
+        this.initParams = initParams;
+        this.roles = roles;
+        this.headers = headers;
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.annotation.Annotation#annotationType()
+     */
+    public Class<? extends Annotation> annotationType() {
+        return SOAPMessageHandler.class;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.soap.SOAPMessageHandler#name()
+     */
+    public String name() {
+        return name;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.soap.SOAPMessageHandler#className()
+     */
+    public String className() {
+        return className;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.soap.SOAPMessageHandler#initParams()
+     */
+    public InitParam[] initParams() {
+        return initParams;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.soap.SOAPMessageHandler#roles()
+     */
+    public String[] roles() {
+        return roles;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.soap.SOAPMessageHandler#headers()
+     */
+    public String[] headers() {
+        return headers;
+    }
+
+}

Propchange: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeSOAPMessageHandlerAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native