コード例 #1
0
 @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);
 }