Powerjob-server 服务管理端 4.3.6 版本
zrj
2024-09-24 1216a77e26cb2c788fa6a78991e073e671f0f59d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package tech.powerjob.worker.autoconfigure;
 
import tech.powerjob.worker.PowerJobWorker;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Configuration;
 
@Configuration
@EnableAutoConfiguration
class PowerJobAutoConfigurationTest {
 
    @Test
    void testAutoConfiguration() {
        ConfigurableApplicationContext run = SpringApplication.run(PowerJobAutoConfigurationTest.class);
        PowerJobWorker worker = run.getBean(PowerJobWorker.class);
        Assertions.assertNotNull(worker);
    }
 
}