初始化
This commit is contained in:
24
src/test/java/com/bomaos/BomaosApplicationTests.java
Normal file
24
src/test/java/com/bomaos/BomaosApplicationTests.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.bomaos;
|
||||
|
||||
import com.bomaos.reception.util.SynchronizedByKeyService;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class BomaosApplicationTests {
|
||||
|
||||
@Autowired
|
||||
private SynchronizedByKeyService synchronizedByKey;
|
||||
|
||||
@Test
|
||||
public void contextLoads() {
|
||||
synchronizedByKey.exec("1", () -> {
|
||||
System.out.println(11111);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user