Examples of Plan


Examples of aima.core.search.nondeterministic.Plan

    // push...
    if (currentStep instanceof Action) {
      return (Action) this.stack.pop();
    } // case: next step is a plan
    else if (currentStep instanceof Plan) {
      Plan newPlan = (Plan) currentStep;
      if (newPlan.size() > 0) {
        this.stack.push(newPlan.removeFirst());
      } else {
        this.stack.pop();
      }
      return this.execute(percept);
    } // case: next step is an if-then
View Full Code Here

Examples of br.eti.kinoshita.tap4j.model.Plan

  protected void extractPlan( Matcher matcher )
  {
    Integer initialTest = Integer.parseInt( matcher.group(1) );
    Integer lastTest = Integer.parseInt( matcher.group(3) );
   
    Plan plan = null;
    plan = new Plan( initialTest, lastTest );
   
    String skipToken = matcher.group(4);
    if ( skipToken != null )
    {
      String reason = matcher.group( 5 );
      final SkipPlan skip = new SkipPlan( reason );
      plan.setSkip(skip);
    }
   
    String commentToken = matcher.group( 6 );
    if ( commentToken != null )
    {
      String text = matcher.group ( 7 );
      final Comment comment = new Comment( text );
      plan.setComment( comment );
    }
   
    this.plan = plan;
  }
View Full Code Here

Examples of br.eti.kinoshita.tap4j.model.Plan

    {
      TestSet testSet = new TestSet();
     
      List<ITestResult> testResults = testResultsPerClass.get( clazz );
     
      testSet.setPlan( new Plan(testResults.size()) );
     
      for ( ITestResult testResult : testResults )
      {
        TestResult tapTestResult = TestNGTAPUtils.generateTAPTestResult( testResult, testSet.getNumberOfTestResults()+1 );
        testSet.addTestResult( tapTestResult );
View Full Code Here

Examples of br.eti.kinoshita.tap4j.model.Plan

    for( ITestNGMethod method : keySet )
    {
      TestSet testSet = new TestSet();
     
      List<ITestResult> testResults = testResultsPerMethod.get( method );
      testSet.setPlan( new Plan(testResults.size()) );
     
      for ( ITestResult testResult : testResults )
      {
        TestResult tapTestResult = TestNGTAPUtils.generateTAPTestResult( testResult, testSet.getNumberOfTestResults()+1 );
        testSet.addTestResult( tapTestResult );
View Full Code Here

Examples of br.eti.kinoshita.tap4j.model.Plan

     
      Set<Class<?>> testResultsSet = this.getTestResultsSetPerSuite(suite);
     
      Integer totalTestResults = this.getTotalTestResultsByTestSuite(testResultsSet);

      testSet.setPlan( new Plan( totalTestResults ) );
     
      for( Class<?> testResultClass : testResultsSet )
      {
        List<ITestResult> testResults = testResultsPerSuite.get( testResultClass );
       
View Full Code Here

Examples of br.eti.kinoshita.tap4j.model.Plan

          {
            Integer totalTestResultsByGroup = this.getTotalTestResultsByTestGroup(group);
           
            testSet = new TestSet();
             
            testSet.setPlan( new Plan( totalTestResultsByGroup ) );
           
            List<ITestResult> testResults = testResultsPerGroup.get( group );
             
            for ( ITestResult testResult : testResults )
            {
View Full Code Here

Examples of com.alibaba.wasp.plan.Plan

    context.setTsr(reader);
    // create table
    String createTable = DruidParserTestUtil.SEED[0];
    context.setSql(createTable);
    druidParser.generatePlan(context);
    Plan plan = context.getPlan();
    if (plan instanceof CreateTablePlan) {
      CreateTablePlan createPlan = (CreateTablePlan) plan;
      table = createPlan.getTable();
      TableSchemaCacheReader.getService(conf).createTable(table);
      reader.addSchema(table.getTableName(), table);
View Full Code Here

Examples of com.alibaba.wasp.plan.Plan

  public void testInsert() throws IOException {
    String insert = "Insert into User(user_id,name) values(1,'binlijin');";
    // insert
    context.setSql(insert);
    druidParser.generatePlan(context);
    Plan plan = context.getPlan();
    if (plan instanceof InsertPlan) {
      InsertPlan insertPlan = (InsertPlan) plan;
      List<InsertAction> units = insertPlan.getActions();
      Assert.assertEquals(units.size(), 1);
      // EntityGroup execute insert
View Full Code Here

Examples of com.alibaba.wasp.plan.Plan

  public void testUpdate() throws IOException {
    String update = "UPDATE User SET name = 'Mike' WHERE user_id = 123;";
    // update
    context.setSql(update);
    druidParser.generatePlan(context);
    Plan plan = context.getPlan();
    if (plan instanceof UpdatePlan) {
      UpdatePlan updatePlan = (UpdatePlan) plan;
      List<UpdateAction> units = updatePlan.getActions();
      Assert.assertEquals(units.size(), 1);
      // EntityGroup execute update
View Full Code Here

Examples of com.alibaba.wasp.plan.Plan

  public void testDelete() throws IOException {
    String delete = "DELETE FROM User WHERE user_id = 123;";
    // delete
    context.setSql(delete);
    druidParser.generatePlan(context);
    Plan plan = context.getPlan();
    if (plan instanceof DeletePlan) {
      DeletePlan deletePlan = (DeletePlan) plan;
      List<DeleteAction> units = deletePlan.getActions();
      Assert.assertEquals(units.size(), 1);
      // EntityGroup execute delete
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.