assertEquals( t01+"b", rt01.transform( f01+"b" ) );
}
public void testContains() throws Exception {
ReplaceTransform rt01 = new ReplaceTransform();
String f01 = "f01";
String t01 = "t01";
String f02 = "f-f01-02";
String t02 = "t02";
rt01.addReplacement( f01, t01 );
rt01.addReplacement( f02, t02 );
assertEquals( "t02", rt01.transform( f02 ) );
// reverse insert order
ReplaceTransform rt02 = new ReplaceTransform();
rt02.addReplacement( f02, t02 );
rt02.addReplacement( f01, t01 );
assertEquals( "t02", rt02.transform( f02 ) );
// after cleaning
rt02.clean();
rt02.addReplacement( f02, t02 );
rt02.addReplacement( f01, t01 );
assertEquals( "t02", rt02.transform( f02 ) );
}