- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for text (0.64 sec)
-
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
} @Override public InputStream getInputStream() throws IOException { return new ByteArrayInputStream(new byte[100]); // dummy payload } } @Test public void test_TmpFileHasBeenDeletedAfterResponseWasClosed() throws Exception { // ## Arrange ## CurlRequest req = new MockCurlRequest(Curl.Method.POST, "http://dummy"); req.threshold(0); // always create tmp file
Java - Registered: Thu May 09 15:34:10 GMT 2024 - Last Modified: Mon Nov 14 21:05:19 GMT 2022 - 3.4K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlTest.java
import static org.junit.Assert.fail; import java.util.logging.Level; import java.util.logging.Logger; import org.junit.Test; public class CurlTest { private static final Logger logger = Logger.getLogger(CurlTest.class.getName()); @Test public void test_Get() { Curl.get("https://www.codelibs.org/").execute(response -> { final String content = response.getContentAsString();
Java - Registered: Thu May 09 15:34:10 GMT 2024 - Last Modified: Mon Nov 14 21:05:19 GMT 2022 - 2.5K bytes - Viewed (1) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.IOException; import org.codelibs.curl.Curl; import org.junit.Test; public class ContentOutputStreamTest { @Test public void inMemory() throws IOException { ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir); cos.write(new byte[] { 0, 1, 2, 3, 4 });
Java - Registered: Thu May 09 15:34:10 GMT 2024 - Last Modified: Mon Nov 14 21:05:19 GMT 2022 - 2K bytes - Viewed (0)