Skip to content

Commit 8364b78

Browse files
committed
feat(java): add more tests
1 parent e0a8cf4 commit 8364b78

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

sdk/java/example/src/main/java/com/kucoin/test/regression/RunReconnectTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.kucoin.universal.sdk.generate.futures.futurespublic.FuturesPublicWs;
88
import com.kucoin.universal.sdk.generate.spot.market.GetAllSymbolsData;
99
import com.kucoin.universal.sdk.generate.spot.market.GetAllSymbolsReq;
10+
import com.kucoin.universal.sdk.generate.spot.spotprivate.SpotPrivateWs;
1011
import com.kucoin.universal.sdk.generate.spot.spotpublic.SpotPublicWs;
1112
import com.kucoin.universal.sdk.model.ClientOption;
1213
import com.kucoin.universal.sdk.model.Constants;
@@ -54,6 +55,7 @@ public static void runReconnectTest() {
5455
.collect(Collectors.toList());
5556

5657
spotWsExample(wsSvc.newSpotPublicWS(), symbols);
58+
privateWsExample(wsSvc.newSpotPrivateWS());
5759
futuresWsExample(wsSvc.newFuturesPublicWS());
5860

5961
log.info("Total subscribe: 53");
@@ -77,6 +79,11 @@ public static void spotWsExample(SpotPublicWs ws, List<String> symbols) {
7779
ws.ticker(new String[] {"BTC-USDT", "ETH-USDT"}, RunReconnectTest::noop);
7880
}
7981

82+
public static void privateWsExample(SpotPrivateWs ws) {
83+
ws.start();
84+
ws.orderV2(RunReconnectTest::noop);
85+
}
86+
8087
public static void futuresWsExample(FuturesPublicWs ws) {
8188
ws.start();
8289
ws.tickerV2("XBTUSDTM", RunReconnectTest::noop);

sdk/java/script/run_forever_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
if [[ "${USE_LOCAL,,}" == "true" ]]; then
66
cd /src
7-
mvn clean install -DskipTests
7+
mvn clean install -DskipTests -Dgpg.skip=true
88
echo "Local jars installed."
99
else
1010
echo "USE_LOCAL is not true, skipping local jar installation."

sdk/java/script/ws_reconnect_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
if [[ "${USE_LOCAL,,}" == "true" ]]; then
66
cd /src
7-
mvn clean install -DskipTests
7+
mvn clean install -DskipTests -Dgpg.skip=true
88
echo "Local jars installed."
99
else
1010
echo "USE_LOCAL is not true, skipping local jar installation."

0 commit comments

Comments
 (0)