package test.util.file;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;
import org.webscale.util.file.FilePreprocessor;
@RunWith(SpringJUnit4ClassRunner.class)
@TestExecutionListeners ({DependencyInjectionTestExecutionListener.class})
@ContextConfiguration (locations ={"classpath:webscale/spring-file-processor-test.xml"})
public class TestFileProcessor {
@Autowired FilePreprocessor fileProcessor;
@Test
public void basicTestRun() throws IOException{
fileProcessor.processFile();
}
}
|