@Test
 public void testWriteRead() throws IOException {
   StripAfterTransformer t = new StripAfterTransformer();
   t.setInclusive(true);
   t.setStripAfterRegex("<p>");
   System.out.println("Writing/Reading this: " + t);
   ConfigurationUtil.assertWriteRead(t);
 }
예제 #2
0
 @Test
 public void testWriteRead() throws IOException {
   ScriptTransformer t = new ScriptTransformer();
   t.setScript("a script");
   t.setEngineName("an engine name");
   t.setMaxReadSize(256);
   System.out.println("Writing/Reading this: " + t);
   ConfigurationUtil.assertWriteRead(t);
 }