Package statechum.StatechumXML

Examples of statechum.StatechumXML.LEGACY_StringSequenceWriter


  }

  @Test
  public final void testReadInputSequence_fail2b1() {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      new LEGACY_StringSequenceWriter(null).readInputSequence(LEGACY_StringSequenceWriter.seqEnd+
          LEGACY_StringSequenceWriter.seqStart+"this is a test"+
          LEGACY_StringSequenceWriter.seqSep+"some more"+
          LEGACY_StringSequenceWriter.seqSep+"data"+
          LEGACY_StringSequenceWriter.seqEnd);
    }},IllegalArgumentException.class,"invalid char");
View Full Code Here


  }

  @Test
  public final void testReadInputSequence_fail3a() {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      new LEGACY_StringSequenceWriter(null).readInputSequence(
          LEGACY_StringSequenceWriter.seqStart+"this is a test"+
          LEGACY_StringSequenceWriter.seqSep+"some more"+
          LEGACY_StringSequenceWriter.seqSep+"data");
    }},IllegalArgumentException.class,"premature end");
  }
View Full Code Here

  }

  @Test
  public final void testReadInputSequence_fail4a() {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      new LEGACY_StringSequenceWriter(null).readInputSequence(
          LEGACY_StringSequenceWriter.seqStart+"this is a test"+
          LEGACY_StringSequenceWriter.seqSep+
          LEGACY_StringSequenceWriter.seqSep+"data"+
          LEGACY_StringSequenceWriter.seqEnd);
    }},IllegalArgumentException.class,"empty input");
View Full Code Here

  }

  @Test
  public final void testReadInputSequence_fail5a() {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      new LEGACY_StringSequenceWriter(null).readInputSequence(
          LEGACY_StringSequenceWriter.seqStart+
          LEGACY_StringSequenceWriter.seqSep+"some more"+
          LEGACY_StringSequenceWriter.seqSep+"data"+
          LEGACY_StringSequenceWriter.seqEnd);
    }},IllegalArgumentException.class,"invalid char");
View Full Code Here

  protected final Configuration config = Configuration.getDefaultConfiguration().copy();
 
  @Test
  public final void testWriteInputSequence1a() {
    List<String> inputSequence = Arrays.asList(new String[] {});
    StringBuffer wr = new StringBuffer();new LEGACY_StringSequenceWriter(null).writeInputSequence(wr, inputSequence);
    Assert.assertEquals(LEGACY_StringSequenceWriter.seqStart+""+LEGACY_StringSequenceWriter.seqEnd,wr.toString());
  }
View Full Code Here

  }

  @Test
  public final void testWriteInputSequence2a() {
    List<String> inputSequence = Arrays.asList(new String[] {"this is a test"});
    StringBuffer wr = new StringBuffer();new LEGACY_StringSequenceWriter(null).writeInputSequence(wr, inputSequence);
    Assert.assertEquals(LEGACY_StringSequenceWriter.seqStart+"this is a test"+LEGACY_StringSequenceWriter.seqEnd,wr.toString());
  }
View Full Code Here

  }

  @Test
  public final void testWriteInputSequence3a() {
    List<String> inputSequence = Arrays.asList(new String[] {"this is a test","some more"});
    StringBuffer wr = new StringBuffer();new LEGACY_StringSequenceWriter(null).writeInputSequence(wr, inputSequence);
    Assert.assertEquals(LEGACY_StringSequenceWriter.seqStart+"this is a test"+LEGACY_StringSequenceWriter.seqSep+"some more"+LEGACY_StringSequenceWriter.seqEnd,wr.toString());
  }
View Full Code Here

  }

  @Test
  public final void testWriteInputSequence4a() {
    List<String> inputSequence = Arrays.asList(new String[] {"this is a test","some more","a"});
    StringBuffer wr = new StringBuffer();new LEGACY_StringSequenceWriter(null).writeInputSequence(wr, inputSequence);
    Assert.assertEquals(LEGACY_StringSequenceWriter.seqStart+
        "this is a test"+LEGACY_StringSequenceWriter.seqSep+
        "some more"+LEGACY_StringSequenceWriter.seqSep+
        "a"+LEGACY_StringSequenceWriter.seqEnd,wr.toString());
  }
View Full Code Here

  @Test
  public final void testWriteInputSequence_fail1()  {
    final List<String> inputSequence = Arrays.asList(new String[] {""+LEGACY_StringSequenceWriter.seqStart});
    final StringBuffer wr = new StringBuffer();
    checkForCorrectException(new whatToRun() { public @Override void run() {
      new LEGACY_StringSequenceWriter(null).writeInputSequence(wr, inputSequence);
    }},IllegalArgumentException.class,"invalid characters");
  }
View Full Code Here

  @Test
  public final void testWriteInputSequence_fail2() {
    final List<String> inputSequence = Arrays.asList(new String[] {""+LEGACY_StringSequenceWriter.seqNewLine});
    final StringBuffer wr = new StringBuffer();
    checkForCorrectException(new whatToRun() { public @Override void run() {
      new LEGACY_StringSequenceWriter(null).writeInputSequence(wr, inputSequence);
    }},IllegalArgumentException.class,"invalid characters");
  }
View Full Code Here

TOP

Related Classes of statechum.StatechumXML.LEGACY_StringSequenceWriter

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.