Package org.apache.flex.compiler.tree.mxml

Examples of org.apache.flex.compiler.tree.mxml.IMXMLWebServiceNode


public class MXMLWebServiceNodeTests extends MXMLInstanceNodeTests
  private IMXMLWebServiceNode getMXMLWebServiceNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLWebServiceNode node = (IMXMLWebServiceNode)findFirstDescendantOfType(fileNode, IMXMLWebServiceNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLWebServiceID));
    assertThat("getName", node.getName(), is("mx.rpc.soap.mxml.WebService"));
    return node;
  }
View Full Code Here


        "<mx:WebService id='ws' wsdl='http://whatever'>",
        "    <mx:operation name='op1'/>",
        "    <mx:operation name='op2'/>",
        "</mx:WebService>"
    };
    IMXMLWebServiceNode node = getMXMLWebServiceNode(code);
    assertThat("getChildCount", node.getChildCount(), is(3));
    IMXMLPropertySpecifierNode wsdlNode = (IMXMLPropertySpecifierNode)node.getChild(0);
    assertThat("", wsdlNode.getName(), is("wsdl"));
    IMXMLWebServiceOperationNode op1Node = (IMXMLWebServiceOperationNode)node.getChild(1);
    assertThat("", op1Node.getName(), is("mx.rpc.soap.mxml.Operation"));
    assertThat("", op1Node.getOperationName(), is("op1"));
    IMXMLWebServiceOperationNode op2Node = (IMXMLWebServiceOperationNode)node.getChild(2);
    assertThat("", op2Node.getName(), is("mx.rpc.soap.mxml.Operation"));
    assertThat("", op2Node.getOperationName(), is("op2"));
  }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.tree.mxml.IMXMLWebServiceNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.