cleanup work

This commit is contained in:
eugenp
2016-12-18 22:04:12 +02:00
parent 43f407e6e7
commit e84137bdfc
10 changed files with 169 additions and 254 deletions
@@ -15,40 +15,27 @@
*/
package com.baeldung.samples;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public final class FileCopyIntegrationTest {
/**
* Starts the Spring Context and will initialize the Spring Integration routes.
*
* @author Baeldung
* @since 1.0
*
*/
public final class FileCopyTest {
//
private static final Logger LOGGER = Logger.getLogger(FileCopyTest.class);
@Test
public void whenFileCopyConfiguration_thanFileCopiedSuccessfully() throws InterruptedException {
final AbstractApplicationContext context = new AnnotationConfigApplicationContext(FileCopyConfig.class.getCanonicalName());
context.registerShutdownHook();
Thread.sleep(5000);
}
@Test
public void whenFileCopyConfiguration_thanFileCopiedSuccessfully() throws InterruptedException {
final AbstractApplicationContext context = new AnnotationConfigApplicationContext(FileCopyConfig.class.getCanonicalName());
context.registerShutdownHook();
Thread.sleep(5000);
}
@Test
public void publish() throws InterruptedException {
final AbstractApplicationContext context = new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/spring-integration-file-publish-context.xml");
@Test
public void publish() throws InterruptedException {
Thread.sleep(15000);
}
final AbstractApplicationContext context =
new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/spring-integration-file-publish-context.xml");
Thread.sleep(15000);
}
}