cleanup work
This commit is contained in:
+13
-26
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user