Package org.jostraca.transform

Examples of org.jostraca.transform.CropTransform



  /* Public Methods << */

  public void testTransform() {
    CropTransform ct = new CropTransform();

    String in01  = "abc";
    String out01 = "abc";
    assertTrue( out01.equals( ct.transform( in01 ) ) );

    String in02  = "0123456789012345678901";
    String out02 = "0123456789012345678901";
    assertTrue( out02.equals( ct.transform( in02 ) ) );

    String in03  = "0123456789012345678901a";
    String out03 = "0123456789012345678...";
    assertTrue( out03.equals( ct.transform( in03 ) ) );

    String in04  = "";
    String out04 = "";
    assertTrue( out04.equals( ct.transform( in04 ) ) );

  }
View Full Code Here


    try {
      som.prepend( new Object() );
      fail();
    } catch( Exception e ) {}

    CropTransform ct = new CropTransform();
    som.prepend( ct );
    assertTrue( (TextualTransform.class.getName()+": "+ct.getClass().getName()+", "+tt.getClass().getName())
            .equals( som.toString() ) );

    JavaStringEscapeTransform jset = new JavaStringEscapeTransform();
    som.append( jset );
    assertTrue( (TextualTransform.class.getName()+": "+ct.getClass().getName()+", "+tt.getClass().getName()+", "+jset.getClass().getName())
            .equals( som.toString() ) );


    som.remove( tt );
    assertTrue( (TextualTransform.class.getName()+": "+ct.getClass().getName()+", "+jset.getClass().getName())
            .equals( som.toString() ) );
   
  }
View Full Code Here

TOP

Related Classes of org.jostraca.transform.CropTransform

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.