Skip to content

Commit a6e3c86

Browse files
authored
🎨 solon-plugins 添加单元测试支持,可触发必要错误用于人工核对
1 parent 6ef2e83 commit a6e3c86

File tree

19 files changed

+249
-0
lines changed

19 files changed

+249
-0
lines changed

solon-plugins/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,11 @@
4040
<artifactId>lombok</artifactId>
4141
<scope>provided</scope>
4242
</dependency>
43+
<dependency>
44+
<groupId>org.noear</groupId>
45+
<artifactId>solon-test</artifactId>
46+
<version>${solon.version}</version>
47+
<scope>test</scope>
48+
</dependency>
4349
</dependencies>
4450
</project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package features.test;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.noear.solon.test.SolonTest;
5+
6+
/**
7+
* @author noear 2024/9/4 created
8+
*/
9+
@SolonTest
10+
public class LoadTest {
11+
@Test
12+
public void load(){
13+
14+
}
15+
}

solon-plugins/wx-java-channel-solon-plugin/src/test/resources/app.yml

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package features.test;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.noear.solon.test.SolonTest;
5+
6+
/**
7+
* @author noear 2024/9/4 created
8+
*/
9+
@SolonTest
10+
public class LoadTest {
11+
@Test
12+
public void load(){
13+
14+
}
15+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# ?? 1 ??
2+
wx.cp.corps.tenantId1.corp-id = @corp-id
3+
wx.cp.corps.tenantId1.corp-secret = @corp-secret
4+
## ??
5+
wx.cp.corps.tenantId1.agent-id = @agent-id
6+
wx.cp.corps.tenantId1.token = @token
7+
wx.cp.corps.tenantId1.aes-key = @aes-key
8+
wx.cp.corps.tenantId1.msg-audit-priKey = @msg-audit-priKey
9+
wx.cp.corps.tenantId1.msg-audit-lib-path = @msg-audit-lib-path
10+
11+
# ?? 2 ??
12+
wx.cp.corps.tenantId2.corp-id = @corp-id
13+
wx.cp.corps.tenantId2.corp-secret = @corp-secret
14+
## ??
15+
wx.cp.corps.tenantId2.agent-id = @agent-id
16+
wx.cp.corps.tenantId2.token = @token
17+
wx.cp.corps.tenantId2.aes-key = @aes-key
18+
wx.cp.corps.tenantId2.msg-audit-priKey = @msg-audit-priKey
19+
wx.cp.corps.tenantId2.msg-audit-lib-path = @msg-audit-lib-path
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package features.test;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.noear.solon.test.SolonTest;
5+
6+
/**
7+
* @author noear 2024/9/4 created
8+
*/
9+
@SolonTest
10+
public class LoadTest {
11+
@Test
12+
public void load(){
13+
14+
}
15+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ???????(??)
2+
wx.cp.corp-id = @corp-id
3+
wx.cp.corp-secret = @corp-secret
4+
# ??
5+
wx.cp.agent-id = @agent-id
6+
wx.cp.token = @token
7+
wx.cp.aes-key = @aes-key
8+
wx.cp.msg-audit-priKey = @msg-audit-priKey
9+
wx.cp.msg-audit-lib-path = @msg-audit-lib-path
10+
# ConfigStorage ??????
11+
wx.cp.config-storage.type=memory # ????: memory(??), jedis, redisson, redistemplate
12+
# http ?????????
13+
wx.cp.config-storage.http-proxy-host=
14+
wx.cp.config-storage.http-proxy-port=
15+
wx.cp.config-storage.http-proxy-username=
16+
wx.cp.config-storage.http-proxy-password=
17+
# ??????????5 ?????? 0??? 0
18+
wx.cp.config-storage.max-retry-times=5
19+
# ????????????1000 ??????? 0??? 1000
20+
wx.cp.config-storage.retry-sleep-millis=1000
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package features.test;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.noear.solon.test.SolonTest;
5+
6+
/**
7+
* @author noear 2024/9/4 created
8+
*/
9+
@SolonTest
10+
public class LoadTest {
11+
@Test
12+
public void load(){
13+
14+
}
15+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# ?????(??)
2+
wx.miniapp.appid = appId
3+
wx.miniapp.secret = @secret
4+
wx.miniapp.token = @token
5+
wx.miniapp.aesKey = @aesKey
6+
wx.miniapp.msgDataFormat = @msgDataFormat # ?????XML??JSON.
7+
# ????redis(??)
8+
# ??: ??redis.host???????????redis??(JedisPool)
9+
wx.miniapp.config-storage.type = Jedis # ????: Memory(??), Jedis, RedisTemplate
10+
wx.miniapp.config-storage.key-prefix = wa # ??redis????: wa(??)
11+
wx.miniapp.config-storage.redis.host = 127.0.0.1
12+
wx.miniapp.config-storage.redis.port = 6379
13+
# http?????
14+
wx.miniapp.config-storage.http-client-type=HttpClient # http?????: HttpClient(??), OkHttp, JoddHttp
15+
wx.miniapp.config-storage.http-proxy-host=
16+
wx.miniapp.config-storage.http-proxy-port=
17+
wx.miniapp.config-storage.http-proxy-username=
18+
wx.miniapp.config-storage.http-proxy-password=
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package features.test;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.noear.solon.test.SolonTest;
5+
6+
/**
7+
* @author noear 2024/9/4 created
8+
*/
9+
@SolonTest
10+
public class LoadTest {
11+
@Test
12+
public void load(){
13+
14+
}
15+
}

0 commit comments

Comments
 (0)