Examples of ModelItem


Examples of com.eviware.soapui.model.ModelItem

  public String toString()
  {
    StringBuffer result = new StringBuffer();
    result.append( "${" );

    ModelItem modelItem = property.getModelItem();

    if( modelItem instanceof Project )
      result.append( PropertyExpansionImpl.PROJECT_REFERENCE );
    else if( modelItem instanceof TestSuite )
      result.append( PropertyExpansionImpl.TESTSUITE_REFERENCE );
    else if( modelItem instanceof TestCase )
      result.append( PropertyExpansionImpl.TESTCASE_REFERENCE );
    else if( modelItem instanceof SecurityTest )
      result.append( PropertyExpansionImpl.SECURITYTEST_REFERENCE );
    else if( modelItem instanceof MockService )
      result.append( PropertyExpansionImpl.MOCKSERVICE_REFERENCE );
    else if( modelItem instanceof MockResponse )
      result.append( PropertyExpansionImpl.MOCKRESPONSE_REFERENCE );
    else if( modelItem instanceof TestStep )
      result.append( modelItem.getName() ).append( PROPERTY_SEPARATOR );
    else if( modelItem instanceof TestRequest )
      result.append( ( ( TestRequest )modelItem ).getTestStep().getName() ).append( PROPERTY_SEPARATOR );

    result.append( property.getName() );
    if( StringUtils.hasContent( xpath ) )
View Full Code Here

Examples of com.eviware.soapui.model.ModelItem

   * property-expansion
   */

  public static boolean canExpandProperty( ModelItem contextModelItem, TestProperty property )
  {
    ModelItem propertyModelItem = property.getModelItem();

    // global / anonymous reference?
    if( propertyModelItem == null || propertyModelItem instanceof Project )
      return true;

View Full Code Here

Examples of com.eviware.soapui.model.ModelItem

    if( context instanceof MockRunContext )
    {
      objects.put( "mockRunner", ( ( MockRunContext )context ).getMockRunner() );
    }

    ModelItem modelItem = context.getModelItem();
    if( modelItem instanceof TestCase )
    {
      objects.put( "testCase", modelItem );

      objects.put( "testSuite", ( ( TestCase )modelItem ).getTestSuite() );
View Full Code Here

Examples of com.eviware.soapui.model.ModelItem

      PropertyExpansion[] propertyExpansions = PropertyExpansionUtils.getPropertyExpansions( getTestCase(), true,
          true );
      for( PropertyExpansion pe : propertyExpansions )
      {
        MutablePropertyExpansion mpe = ( MutablePropertyExpansion )pe;
        ModelItem modelItem = mpe.getProperty().getModelItem();
        if( modelItem == this
            || ( ( modelItem instanceof WsdlTestRequest && ( ( WsdlTestRequest )modelItem ).getTestStep() == this ) ) )
        {
          properties.add( mpe );
        }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.impl.ModelItem

    public Difference() {
        this.name = "";
        this.description = "";
        this.layer = Layer.UNDEFINED;
        this.status = Status.UNDEFINED;
        this.amElement = new ModelItem();
        this.dmElement = new ModelItem();
        this.parentElement = new ModelItem();
        this.subDifferences = new ArrayList<IDifference>();
    }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.impl.ModelItem

    protected void setUp() throws Exception {
        super.setUp();

        // an AM with an interface and a member in it
        // member: "public void aMember();"
        voidTypeAM = new ModelItem();
        voidTypeAM.setName("void");
       
        amModelItem = new ModelItem();
        amModelItem.setType("interface");
        amModelItem.setName("AnInterface");

        amMember = new Operation();
        amMember.addModifier("public");
        amMember.setType(voidTypeAM);
        amMember.setNamespace(amModelItem.getIdentifier());
        amMember.setName("aMember");

        amModelItem.addMember(amMember);

        // the DM with an interface and a member
        voidTypeDM = new ModelItem();
        voidTypeDM.setName("void");
       
        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AnInterface");

        dmMember = new Operation();
        dmMember.addModifier("public");
View Full Code Here

Examples of net.sf.jmd.metarepresentation.impl.ModelItem

        architectsModel.setType(Model.Type.AM);
       
        developersModel = new Model();
        developersModel.setType(Model.Type.DM);
       
        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AddedInterface");

        developersModel.addModelItem(dmModelItem);
       
View Full Code Here

Examples of net.sf.jmd.metarepresentation.impl.ModelItem

        architectsModel.setType(Model.Type.AM);

        developersModel = new Model();
        developersModel.setType(Model.Type.DM);

        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AddedInterface");

        amModelItem = new ModelItem();
        amModelItem.setType("interface");
        amModelItem.setName("AddedInterface");

        architectsModel.addModelItem(amModelItem);
        developersModel.addModelItem(dmModelItem);
View Full Code Here

Examples of net.sf.jmd.metarepresentation.impl.ModelItem

    /**
     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception {
        super.setUp();
        amModelItem = new ModelItem();
        amModelItem.setType("interface");
        amModelItem.setName("AnInterface");

        architectsModel = new Model();
        architectsModel.setType(Model.Type.AM);
        architectsModel.addModelItem(amModelItem);

        dmModelItem = new ModelItem();
        dmModelItem.setType("interface");
        dmModelItem.setName("AnInterface");

        developersModel = new Model();
        developersModel.setType(Model.Type.DM);
View Full Code Here

Examples of net.sf.jmd.metarepresentation.impl.ModelItem

               
    }
   
    private void setUpAM() {
       
        amInterface = new ModelItem();
        amInterface.setName("AnInterface");
        amInterface.setType("interface");
       
        IMember amMethod =  new Operation();
        amMethod.setName("myMethod");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.