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

import java.io.File;
import java.io.IOException;
import java.net.URL;

import org.junit.Test;

import ro.isdc.wro.model.resource.ResourceType;
import ro.isdc.wro.model.resource.processor.decorator.BenchmarkProcessorDecorator;
import ro.isdc.wro.model.resource.processor.impl.js.SemicolonAppenderPreProcessor;
import ro.isdc.wro.util.WroTestUtils;


/**
 * Test for {@link SemicolonAppenderPreProcessor} class.
 *
 * @author Alex Objelean
 * @created Created on March 21, 2010
 */
public class TestSemicolonAppenderPreProcessor {
  @Test
  public void testFromFolder()
    throws IOException {
    final ResourcePreProcessor processor = new BenchmarkProcessorDecorator(new SemicolonAppenderPreProcessor());

    final URL url = getClass().getResource("semicolonAppender");

    final File testFolder = new File(url.getFile(), "test");
    final File expectedFolder = new File(url.getFile(), "expected");
    WroTestUtils.compareFromDifferentFoldersByExtension(testFolder, expectedFolder, "js", processor);
  }


  @Test
  public void shouldSupportCorrectResourceTypes() {
    WroTestUtils.assertProcessorSupportResourceTypes(new SemicolonAppenderPreProcessor(), ResourceType.JS);
  }
}

@@ -238,91 +238,8 @@
 pe;%0A
-import ro.isdc.wro.model.resource.processor.decorator.BenchmarkProcessorDecorator;%0A
 impo
@@ -652,40 +652,8 @@
 new 
-BenchmarkProcessorDecorator(new 
 Semi
@@ -679,17 +679,16 @@
 cessor()
-)
 ;%0A%0A    f

fix failing unit test