WangHan
2024-09-12 d5855a4926926698b740bc6c7ba489de47adb68b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package tech.powerjob.remote.framework.engine.impl;
 
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import tech.powerjob.remote.framework.actor.ActorInfo;
import tech.powerjob.remote.framework.test.TestActor;
 
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
 
/**
 * HandlerFactoryTest
 *
 * @author tjq
 * @since 2022/12/31
 */
@Slf4j
class ActorFactoryTest {
 
    @Test
    void load() {
        ActorFactory.load(Lists.newArrayList(new TestActor()));
    }
 
    @Test
    void testSuitPath() {
        final String testPath1 = ActorFactory.suitPath("/test");
        final String testPath2 = ActorFactory.suitPath("test");
        log.info("[ActorFactoryTest] testPath1: {}, testPath2: {}", testPath1, testPath2);
        assert testPath1.equals(testPath2);
    }
 
}