add ConfigExecutorTest test case (#715)

* add BeanUtilTest test case

* add BeanUtilTest test case

* add BeanUtilTest test case

* add ClassUtilTest test case

* add ConfigExecutorTest test case

* Revert "add ConfigExecutorTest test case"

This reverts commit ffc00ff4

* add ConfigExecutorTest test case
pull/716/head
Gdk666 2 years ago committed by GitHub
parent 23336017f4
commit 197917a25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,8 +17,28 @@
package cn.hippo4j.config.toolkit;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import java.util.concurrent.TimeUnit;
/**
* ConfigExecutor Test
*/
@Slf4j
public class ConfigExecutorTest {
@Test
public void executeLongPollingTest() {
ConfigExecutor.executeLongPolling(() -> log.info(Thread.currentThread().getName()));
}
@Test
public void scheduleLongPollingTest() {
ConfigExecutor.scheduleLongPolling(() -> log.info(Thread.currentThread().getName()), 5, TimeUnit.SECONDS);
}
@Test
public void scheduleLongPollingInitialTest() {
ConfigExecutor.scheduleLongPolling(() -> log.info(Thread.currentThread().getName()), 0, 5, TimeUnit.SECONDS);
}
}

Loading…
Cancel
Save