Package org.jostraca.transform

Examples of org.jostraca.transform.SimpleIndentTransform



  /* Public Methods << */

  public void testTransform() {
    SimpleIndentTransform t = new SimpleIndentTransform();

    String good1
      = TextualTransform.NEWLINE+"for( foo ) {"
      + TextualTransform.NEWLINE+"  print bar;"
      + TextualTransform.NEWLINE+"}"
      + TextualTransform.NEWLINE
      ;

    String bad1
      = TextualTransform.NEWLINE+"for( foo ) {"
      + TextualTransform.NEWLINE+"print bar;"
      + TextualTransform.NEWLINE+"}"
      ;

    assertTrue( good1.equals( t.transform( bad1 ) ) );

  }
View Full Code Here

TOP

Related Classes of org.jostraca.transform.SimpleIndentTransform

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.