Package com.puppetlabs.geppetto.pp

Examples of com.puppetlabs.geppetto.pp.ImportExpression


        if(result == null)
          result = defaultCase(theEObject);
        return result;
      }
      case PPPackage.IMPORT_EXPRESSION: {
        ImportExpression importExpression = (ImportExpression) theEObject;
        T result = caseImportExpression(importExpression);
        if(result == null)
          result = caseExpression(importExpression);
        if(result == null)
          result = defaultCase(theEObject);
View Full Code Here


  }

  @Test
  public void test_Validate_ImportExpression_NotOk() {
    PuppetManifest pp = pf.createPuppetManifest();
    ImportExpression ip = pf.createImportExpression();
    pp.getStatements().add(ip);

    tester.validate(ip).assertError(IPPDiagnostics.ISSUE__REQUIRED_EXPRESSION);
  }
View Full Code Here

  }

  @Test
  public void test_Validate_ImportExpression_Ok() {
    PuppetManifest pp = pf.createPuppetManifest();
    ImportExpression ip = pf.createImportExpression();
    ip.getValues().add(createSqString("somewhere/*.pp"));
    pp.getStatements().add(ip);

    tester.validate(ip).assertOK();
    ip.getValues().add(createSqString("nowhere/*.pp"));
    tester.validate(ip).assertOK();
  }
 
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.pp.ImportExpression

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.