Package statechum.model.testset.PTASequenceEngine

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.crossWithSet()


 
  @Test
  public final void test_sequenceSet7() // a composition of sequenceSet with the one which enters a reject state
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.crossWithSet(labelList(new String[] {"b"}))
      .crossWithSet(labelList(new String[] {"a"})));
    vertifyPTA(en, 1, new String[][] {
        new String[] {"b"}
    });
    Map<String,String>  expected=TestFSMAlgo.buildStringMap(new Object[][] {
View Full Code Here


 
  @Test
  public final void test_sequenceSet_2_1() // a more complex composition
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"b"}))
      .crossWithSet(labelList(new String[] {"c"})));
    vertifyPTA(en, 1, new String[][] {
View Full Code Here

  @Test
  public final void test_sequenceSet2_2() // a more complex composition
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"b"}))
      .crossWithSet(labelList(new String[] {"c"}))
      .crossWithSet(labelList(new String[] {"a"})));
View Full Code Here

  @Test
  public final void test_sequenceSet2_3() // a more complex composition
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"b"}))
      .crossWithSet(labelList(new String[] {"c"}))
      .crossWithSet(labelList(new String[] {"a"}))
View Full Code Here

  @Test
  public final void test_sequenceSet2_4() // a more complex composition
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.crossWithSet(labelList(new String[] {"c"}))
      .crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"a"}))
      .crossWithSet(labelList(new String[] {"b"}))
      .crossWithSet(labelList(new String[] {"c"}))
      .crossWithSet(labelList(new String[] {"a"})));
View Full Code Here

       seq.crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"b"}))
        .crossWithSet(labelList(new String[] {"c"}));
    Map<String,String> actual2 = getDebugDataMap(en,tempE.crossWithSet(labelList(new String[] {"a"})));
    Map<String,String> actual3 = getDebugDataMap(en,tempE.crossWithSet(labelList(new String[] {"b"})));
    Map<String,String> actual1 = getDebugDataMap(en,tempE);// if I do this before PTA is updated, the long path returned by getDebugDataMap will have its nodes marked as leaves, but after PTA is built, they are no long leaves.
    vertifyPTA(en, 2, new String[][] {
        new String[] {"a","a","a","b","c","a"},
        new String[] {"a","a","a","b","c","b"}
View Full Code Here

        .crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"b"}))
        .crossWithSet(labelList(new String[] {"c"}));
    Map<String,String> actual2 = getDebugDataMap(en,tempE.crossWithSet(labelList(new String[] {"a"})));
    Map<String,String> actual3 = getDebugDataMap(en,tempE.crossWithSet(labelList(new String[] {"b"})));
    Map<String,String> actual1 = getDebugDataMap(en,tempE);// if I do this before PTA is updated, the long path returned by getDebugDataMap will have its nodes marked as leaves, but after PTA is built, they are no long leaves.
    vertifyPTA(en, 2, new String[][] {
        new String[] {"a","a","a","b","c","a"},
        new String[] {"a","a","a","b","c","b"}
    });
View Full Code Here

      seq.crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"b"}))
        .crossWithSet(labelList(new String[] {"c"}));
    Map<String,String> actual3 = getDebugDataMap(en,tempE.crossWithSet(labelList(new String[] {"a"})));
    Map<String,String> actual4 = getDebugDataMap(en,tempE.crossWithSet(labelList(new String[] {"b"})));
    Map<String,String> actual2 = getDebugDataMap(en,tempE);
    Map<String,String> actual1 = getDebugDataMap(en,temp0);
    vertifyPTA(en, 3, new String[][] {
        new String[] {"a","a","a","b","c","a"},
View Full Code Here

        .crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"a"}))
        .crossWithSet(labelList(new String[] {"b"}))
        .crossWithSet(labelList(new String[] {"c"}));
    Map<String,String> actual3 = getDebugDataMap(en,tempE.crossWithSet(labelList(new String[] {"a"})));
    Map<String,String> actual4 = getDebugDataMap(en,tempE.crossWithSet(labelList(new String[] {"b"})));
    Map<String,String> actual2 = getDebugDataMap(en,tempE);
    Map<String,String> actual1 = getDebugDataMap(en,temp0);
    vertifyPTA(en, 3, new String[][] {
        new String[] {"a","a","a","b","c","a"},
        new String[] {"a","a","a","b","c","b"},
View Full Code Here

  @Test
  public final void test_sequenceSet3_1() // a more complex composition
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.crossWithSet(labelList(new String[] {"b","a","d"})));
    vertifyPTA(en, 3, new String[][] {
        new String[] {"b"},
        new String[] {"a"},
        new String[] {"d"}
    });
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.