Package net.sf.parteg.base.testsuiteexport

Examples of net.sf.parteg.base.testsuiteexport.Variable


    List<org.eclipse.uml2.uml.Class> oInstantiatedClasses = new ArrayList<org.eclipse.uml2.uml.Class>();
    for(org.eclipse.uml2.uml.Class oContextClass : Configuration.getStateMachineClassMap().values()) {
      if(!oInstantiatedClasses.contains(oContextClass)) {
        oInstantiatedClasses.add(oContextClass);
        // add new variable definition
        Variable oVar = TestsuiteexportFactory.eINSTANCE.createVariable();
        oVar.setName(m_sObjectName);
        oVar.setType(oContextClass.getName());
        oVar.setValue("");
        m_oCurrentTestCase.getDefine().add(oVar);
      }
    }
   
    // collect real parameters - and their sub attributes
    HashSet<TCGParameter> colRealParameter = new HashSet<TCGParameter>();
   
    // iterate through all collected parameter instances
    for(EventParameterInstance oParameter : in_colParameters.keySet()) {
      TCGParameter oSuperParam = TCGParameterHelperClass.getSuperParameter(
          oParameter.getParameter());
     
      if(!oParameter.isReturnParameter()) {

        // the super parameter is not the original parameter and was not used yet
        if(!oSuperParam.equals(oParameter.getParameter())) {
          if(!colRealParameter.contains(oSuperParam)) {
            colRealParameter.add(oSuperParam);
            // print all complex parameters
            Variable oVar = TestsuiteexportFactory.eINSTANCE.createVariable();
            oVar.setName(oSuperParam.getName()
                + oParameter.getTransitionInstance().getName());
            oVar.setType(getClassName(oSuperParam.getValueType()));
            oVar.setValue("");
            m_oCurrentTestCase.getDefine().add(oVar);
          }
          // print the referenced attribute properties
          boolean define = false; // only assign parameter values
          printParameterValue(in_colParameters, oParameter, define);
View Full Code Here


          sValue = getClassName(in_oParameter.getParameter().getValueType()) + "." + oValue.getValue();
        else
          sValue = oValue.getValue();
      }
     
      Variable oVar = TestsuiteexportFactory.eINSTANCE.createVariable();
      oVar.setName(TCGParameterHelperClass.getFullParameterInstanceAttributeName(in_oParameter));
      oVar.setType(getClassName(in_oParameter.getParameter().getValueType()));
      oVar.setValue(sValue);
      if(in_bDefine == true)
        m_oCurrentTestCase.getDefine().add(oVar);
      else
        m_oCurrentTestCase.getAssign().add(oVar);
    }
View Full Code Here

TOP

Related Classes of net.sf.parteg.base.testsuiteexport.Variable

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.