Package statechum.model.testset.PTASequenceEngine

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet


  }
 
  @Test
  public final void test_sequenceSet5() // a composition of sequenceSet with an input which exists
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"})));
    vertifyPTA(en, 1, new String[][] {
        new String[] {"a","a"}
    });
    Map<String,String>  expected=TestFSMAlgo.buildStringMap(new Object[][] {
View Full Code Here


  }
 
  @Test
  public final void test_sequenceSet6() // a composition of sequenceSet with the one which does not exist
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.crossWithSet(Arrays.asList(new String[] {"c"}))
      .crossWithSet(Arrays.asList(new String[] {"a"})));
    vertifyPTA(en, 1, new String[][] {
        new String[] {"c"}
    });
    Map<String,String>  expected=TestFSMAlgo.buildStringMap(new Object[][] {
View Full Code Here

  }
 
  @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(Arrays.asList(new String[] {"b"}))
      .crossWithSet(Arrays.asList(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(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"b"}))
      .crossWithSet(Arrays.asList(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(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"b"}))
      .crossWithSet(Arrays.asList(new String[] {"c"}))
      .crossWithSet(Arrays.asList(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(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"b"}))
      .crossWithSet(Arrays.asList(new String[] {"c"}))
      .crossWithSet(Arrays.asList(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(Arrays.asList(new String[] {"c"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"b"}))
      .crossWithSet(Arrays.asList(new String[] {"c"}))
      .crossWithSet(Arrays.asList(new String[] {"a"})));
View Full Code Here

  }

  @Test
  public final void test_sequenceSet2_5() // a more complex composition
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    SequenceSet tempE =
       seq.crossWithSet(Arrays.asList(new String[] {"a"}))
        .crossWithSet(Arrays.asList(new String[] {"a"}))
        .crossWithSet(Arrays.asList(new String[] {"a"}))
        .crossWithSet(Arrays.asList(new String[] {"b"}))
        .crossWithSet(Arrays.asList(new String[] {"c"}));
    Map<String,String> actual2 = getDebugDataMap(en,tempE.crossWithSet(Arrays.asList(new String[] {"a"})));
    Map<String,String> actual3 = getDebugDataMap(en,tempE.crossWithSet(Arrays.asList(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

  }

  @Test
  public final void test_sequenceSet2_6() // a more complex composition
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    SequenceSet temp0=seq.crossWithSet(Arrays.asList(new String[] {"b"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}));

    SequenceSet tempE =
      seq.crossWithSet(Arrays.asList(new String[] {"a"}))
        .crossWithSet(Arrays.asList(new String[] {"a"}))
        .crossWithSet(Arrays.asList(new String[] {"a"}))
        .crossWithSet(Arrays.asList(new String[] {"b"}))
        .crossWithSet(Arrays.asList(new String[] {"c"}));
    Map<String,String> actual3 = getDebugDataMap(en,tempE.crossWithSet(Arrays.asList(new String[] {"a"})));
    Map<String,String> actual4 = getDebugDataMap(en,tempE.crossWithSet(Arrays.asList(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(Arrays.asList(new String[] {"b","a","d"})));
    vertifyPTA(en, 3, new String[][] {
        new String[] {"b"},
        new String[] {"a"},
        new String[] {"d"}
    });
View Full Code Here

TOP

Related Classes of statechum.model.testset.PTASequenceEngine.SequenceSet

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.