TestFileProcessor.java :  » Google-tech » amazingapis » test » util » file » Java Open Source

Java Open Source » Google tech » amazingapis 
amazingapis » test » util » file » TestFileProcessor.java
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();
  }
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.