Package statechum.Helper

Examples of statechum.Helper.whatToRun


  @Test
  public final void testLTL_integration_subsystem_nonfinal()
  {
    ba=new LTL_to_ba(config,converter);
    ConstructAlphabet(ba,new String[]{"load","save","edit","close","open"});
    checkForCorrectException(new whatToRun() { public @Override void run() {
      ba.ltlToBA(Arrays.asList(new String[]{QSMTool.cmdLTL+" ([](close-><>open))"}),null,false,GlobalConfiguration.getConfiguration().getProperty(GlobalConfiguration.G_PROPERTIES.LTL2BA));
    }},IllegalArgumentException.class,"not all states are accept");
  }
View Full Code Here


      config.setLearnerIdMode(Configuration.IDMode.POSITIVE_NEGATIVE);
      l.getTentativeAutomaton().initPTA();
      l.getTentativeAutomaton().paths.augmentPTA(minusStrings, false,maxAutomaton);
      l.getTentativeAutomaton().paths.augmentPTA(plusStrings, true,maxAutomaton);
     
      checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException {
        l.getTentativeAutomaton().paths.augmentPTA(buildSet(new String[][] { new String[]{"a","b","c","d"}},conf,converter),true,maxAutomaton);
      }},IllegalArgumentException.class,"incompatible ");
    }
  }
View Full Code Here

  }
 
  @Test
  public final void createInitialData_fail1()
  {
    checkForCorrectException(new whatToRun() { public void run() {
      new InitialData(new LinkedList<List<String>>(),-1,new LinkedList<List<String>>(),0,null);
    }},IllegalArgumentException.class,"inconsistent positive");
  }
View Full Code Here

  }
 
  @Test
  public final void createInitialData_fail2()
  {
    checkForCorrectException(new whatToRun() { public void run() {
      new InitialData(new LinkedList<List<String>>(),0,new LinkedList<List<String>>(),5,null);
    }},IllegalArgumentException.class,"inconsistent negative");
  }
View Full Code Here

  @Test
  public final void testLoadInit_fail1()
  {
    final LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(removeTagFromString(xmlData,ELEM_KINDS.ELEM_INIT).getBytes()),false);
    loader.config = Configuration.getDefaultConfiguration();
    checkForCorrectException(new whatToRun() { public void run() {
      loader.readInitialData(loader.expectNextElement(statechum.analysis.learning.observers.TestRecordProgressDecorator.junkTag));
    }},IllegalArgumentException.class,"expecting to load learner initial data");
  }
View Full Code Here

    dumper.topElement.appendChild(initElement);dumper.close();
    xmlData = output.toString();

    final LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(xmlData.getBytes()),false);
    loader.config = Configuration.getDefaultConfiguration();
    checkForCorrectException(new whatToRun() { public void run() {
      loader.readInitialData(loader.expectNextElement(ELEM_KINDS.ELEM_INIT.name()));
    }},IllegalArgumentException.class,"missing positive");
  }
View Full Code Here

    dumper.topElement.appendChild(initElement);dumper.close();
    xmlData = output.toString();

    final LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(xmlData.getBytes()),false);
    loader.config = Configuration.getDefaultConfiguration();
    checkForCorrectException(new whatToRun() { public void run() {
      loader.readInitialData(loader.expectNextElement(ELEM_KINDS.ELEM_INIT.name()));
    }},IllegalArgumentException.class,"duplicate positive");
  }
View Full Code Here

    dumper.topElement.appendChild(initElement);dumper.close();
    xmlData = output.toString();

    final LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(xmlData.getBytes()),false);
    loader.config = Configuration.getDefaultConfiguration();
    checkForCorrectException(new whatToRun() { public void run() {
      loader.readInitialData(loader.expectNextElement(ELEM_KINDS.ELEM_INIT.name()));
    }},IllegalArgumentException.class,"missing negative");
  }
View Full Code Here

    dumper.topElement.appendChild(initElement);dumper.close();
    xmlData = output.toString();

    final LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(xmlData.getBytes()),false);
    loader.config = Configuration.getDefaultConfiguration();
    checkForCorrectException(new whatToRun() { public void run() {
      loader.readInitialData(loader.expectNextElement(ELEM_KINDS.ELEM_INIT.name()));
    }},IllegalArgumentException.class,"duplicate negative");
  }
View Full Code Here

    dumper.topElement.appendChild(initElement);dumper.close();
    xmlData = output.toString();
   
    final LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(xmlData.getBytes()),false);
    loader.config = Configuration.getDefaultConfiguration();
    checkForCorrectException(new whatToRun() { public void run() {
      loader.readInitialData(loader.expectNextElement(ELEM_KINDS.ELEM_INIT.name()));
    }},IllegalArgumentException.class,"missing graph");
  }
View Full Code Here

TOP

Related Classes of statechum.Helper.whatToRun

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.