Package games.stendhal.common.parser

Examples of games.stendhal.common.parser.SentenceBuilder


*/
public class SentenceBuilderTest {

  @Test
  public final void testSentenceBuilder() {
    final SentenceBuilder b = new SentenceBuilder();

    assertTrue(b.isEmpty());
    assertEquals("", b.toString());

    b.append("abc");
    assertFalse(b.isEmpty());
    assertEquals("abc", b.toString());

    b.append("def");
    assertFalse(b.isEmpty());
    assertEquals("abc def", b.toString());

    b.append('X');
    assertFalse(b.isEmpty());
    assertEquals("abc defX", b.toString());
  }
View Full Code Here

TOP

Related Classes of games.stendhal.common.parser.SentenceBuilder

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.