Package statechum.StatechumXML

Examples of statechum.StatechumXML.StringSequenceWriter


  }
 
  @Test
  public final void testWriteInputSequence1b() {
    List<String> inputSequence = Arrays.asList(new String[] {});
    StringBuffer wr = new StringBuffer();new StringSequenceWriter(null).writeInputSequence(wr, inputSequence);
    Assert.assertEquals("[]",wr.toString());
  }
View Full Code Here


  }

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

  }

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

  }

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

  }

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

  }

  @Test
  public final void testWriteInputSequence_F2() {
    List<String> inputSequence = Arrays.asList(new String[] {""+LEGACY_StringSequenceWriter.seqNewLine});
    StringBuffer wr = new StringBuffer();new StringSequenceWriter(null).writeInputSequence(wr, inputSequence);
    Assert.assertEquals("[\"\\"+LEGACY_StringSequenceWriter.seqNewLine+"\"]",wr.toString());
  }
View Full Code Here

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

  }
 
  @Test
  public final void testWriteInputSequence_F4() {
    List<String> inputSequence = Arrays.asList(new String[] {""});
    StringBuffer wr = new StringBuffer();new StringSequenceWriter(null).writeInputSequence(wr, inputSequence);
    Assert.assertEquals("[\"\"]",wr.toString());
  }
View Full Code Here

    List<String> expected = Arrays.asList(new String[] {});
    List<String> actual = new LEGACY_StringSequenceWriter(null).readInputSequence(
        ""+LEGACY_StringSequenceWriter.seqStart+LEGACY_StringSequenceWriter.seqEnd);
    Assert.assertTrue("wrong result: "+actual,expected.equals(actual));
   
    actual = new StringSequenceWriter(null).readInputSequence(
        "[]");
    Assert.assertTrue("wrong result: "+actual,expected.equals(actual));
  }
View Full Code Here

    List<String> expected = Arrays.asList(new String[] {"some more"});
    List<String> actual = new LEGACY_StringSequenceWriter(null).readInputSequence(
        LEGACY_StringSequenceWriter.seqStart+"some more"+LEGACY_StringSequenceWriter.seqEnd);
    Assert.assertTrue("wrong result: "+actual+", expected "+expected,expected.equals(actual));
   
    actual = new StringSequenceWriter(null).readInputSequence(
        "[\"some more\"]");
    Assert.assertTrue("wrong result: "+actual+", expected "+expected,expected.equals(actual));
  }
View Full Code Here

TOP

Related Classes of statechum.StatechumXML.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.