Package statechum.Helper

Examples of statechum.Helper.whatToRun


    {
      IOException parserEx = new IOException("configuration exception: "+ex);parserEx.initCause(ex);throw parserEx;
    }
    final org.w3c.dom.Element elem = fsm.transform322.createGraphMLNode(doc);elem.replaceChild(doc.createElement("something"), elem.getFirstChild());
   
    checkForCorrectException(new whatToRun() { public void run() {
      Transform322.loadGraph(elem);
    }},IllegalArgumentException.class,"absent graph element");
  }
View Full Code Here


 
  /** Tests parser of expressions. */
  @Test
  public final void testExpr23b()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      ba.interpretString("a || b (c) ");
    }},IllegalArgumentException.class,"expected binary operation ");

    checkOutcome(new String[]{"a","b","c"},ba.computeAlphabet("a || b (c) "));
  }
View Full Code Here

    {
      IOException parserEx = new IOException("configuration exception: "+ex);parserEx.initCause(ex);throw parserEx;
    }
    final org.w3c.dom.Element elem = fsm.transform322.createGraphMLNode(doc);elem.appendChild(doc.createElement("graph"));
   
    checkForCorrectException(new whatToRun() { public void run() {
      Transform322.loadGraph(elem);
    }},IllegalArgumentException.class,"duplicate graph element");
  }
View Full Code Here

 
  /** Tests parser of expressions. */
  @Test
  public final void testExpr23c()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      ba.interpretString("a || b !(c) ");
    }},IllegalArgumentException.class,"expected binary operation ");

    checkOutcome(new String[]{"a","b","c"},ba.computeAlphabet("a || b !(c) "));
  }
View Full Code Here

 
  /** Tests parser of expressions. */
  @Test
  public final void testExpr24()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      ba.interpretString("a || b)");
    }},IllegalArgumentException.class,"extra tokens at the end ");

    checkForCorrectException(new whatToRun() { public @Override void run() {
      checkOutcome(new String[]{"a","b"},ba.computeAlphabet("a || b)"));
    }},IllegalArgumentException.class,"extra tokens at the end ");
  }
View Full Code Here

    "if :: (a) -> goto accept_A \n"+
    ":: (b) -> goto state_b\n"+
    "fi;\n"+
    "state_b: if :: (a) -> goto state_b fi;"+
    "}\n";
    checkForCorrectException(new whatToRun() { public @Override void run() throws IncompatibleStatesException {
      ba.parse(text);ba.matrixFromLTL.pathroutines.buildDeterministicGraph();
    }},IllegalArgumentException.class,"missing state");
  }
View Full Code Here

    ":: (a) -> goto accept_"+init+"\n"+
    "fi;\n"+
    "accept_G: if\n"+
    ":: (a) -> goto accept_B\n"+
    "fi;}\n";
    checkForCorrectException(new whatToRun() { public @Override void run() throws IncompatibleStatesException {
      ba.parse(text);ba.matrixFromLTL.pathroutines.buildDeterministicGraph();
    }},IncompatibleStatesException.class,"cannot add state");
  }
View Full Code Here

    ":: (a) -> goto accept_"+init+"\n"+
    "fi;\n"+
    "accept_G: if\n"+
    ":: (a) -> goto reject_B\n"+
    "fi;}\n";
    checkForCorrectException(new whatToRun() { public @Override void run() throws IncompatibleStatesException {
      ba.parse(text);ba.matrixFromLTL.pathroutines.buildDeterministicGraph();
    }},IncompatibleStatesException.class,"cannot add state");
  }
View Full Code Here

  /** This one is an integration test of ltl2ba. First test : cannot run ltl2ba. */
  @Test
  public final void testLTL_integration_cannotrun()
  {
   
    checkForCorrectException(new whatToRun() { public @Override void run() {
      try
      {
       
        ba.runLTL2BA("&","junk");
      }
View Full Code Here

  /** This one is an integration test of ltl2ba. First test : syntax error. */
  @Test
  public final void testLTL_integration_syntax()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      ba.runLTL2BA("&",GlobalConfiguration.getConfiguration().getProperty(GlobalConfiguration.G_PROPERTIES.LTL2BA));
    }},IllegalArgumentException.class,"syntax");
  }
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.