package com.gs.xiaomi;
|
|
import com.gs.xiaomi.service.XM104Service;
|
import org.junit.jupiter.api.Test;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
@SpringBootTest
|
class XiaomiApplicationTests {
|
|
@Autowired
|
private XM104Service xm104Service;
|
|
@Test
|
void contextLoads() throws Exception {
|
xm104Service.getDb();
|
}
|
|
@Test
|
void test() {
|
String str = ",,";
|
String[] parts = str.split(",");
|
for (String part : parts) {
|
System.out.println(part);
|
}
|
}
|
}
|