/*
 * Copyright (c) 2008 ISDC! Romania. All rights reserved.
 */
package ro.isdc.wro.model.resource.processor;

import java.io.IOException;
import java.io.Reader;
import java.io.Writer;

import org.junit.Test;

import ro.isdc.wro.AbstractWroTest;
import ro.isdc.wro.model.resource.processor.ResourcePostProcessor;
import ro.isdc.wro.model.resource.processor.impl.JSMinProcessor;
import ro.isdc.wro.test.util.ResourceProcessor;

/**
 * TestMultiLineCommentStripperPostProcessor.java.
 * 
 * @author alexandru.objelean / ISDC! Romania
 * @version $Revision: $
 * @date $Date: $
 * @created Created on Nov 28, 2008
 */
public class TestJsMinProcessor extends AbstractWroTest {
  private final ResourcePostProcessor processor = new JSMinProcessor();

  @Test
  public void test() throws IOException {
    compareProcessedResourceContents(
        "classpath:ro/isdc/wro/processor/jsmin-input.js",
        "classpath:ro/isdc/wro/processor/jsmin-output.js",
        new ResourceProcessor() {
          public void process(final Reader reader, final Writer writer)
              throws IOException {
            processor.process(reader, writer);
          }
        });
  }
}

@@ -244,75 +244,8 @@
 st;%0A
-import ro.isdc.wro.model.resource.processor.ResourcePostProcessor;%0A
 impo
@@ -305,16 +305,16 @@
 cessor;%0A
+
 import r
@@ -411,17 +411,16 @@
 java.%0A *
- 
 %0A * @aut
@@ -427,85 +427,21 @@
 hor 
-alexandru.objelean / ISDC! Romania%0A * @version $Revision: $%0A * @date $Date: $
+Alex Objelean
 %0A * 

create SemicolonAppenderPreProcessor