Пример #1
0
 @Test
 public void testSimpleString() throws Exception {
   final StringWriter writer = new StringWriter();
   processor.process(null, new StringReader("Hello {name}!"), writer);
   final String result = writer.toString();
   assertTrue(result.matches("\\(function\\(\\)\\{.*\\}\\)\\(\\);"));
 }
Пример #2
0
 /** {@inheritDoc} */
 public void process(final Resource resource, final Reader reader, final Writer writer)
     throws IOException {
   decoratedProcessor.process(resource, reader, writer);
 }