- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 17 for Act (0.01 seconds)
-
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
// ## Arrange ## CurlRequest req = new MockCurlRequest(Curl.Method.POST, "http://dummy"); req.threshold(0); // always create tmp file // ## Act ## long before = countTmpFiles(); logger.info("Before request. Number of temp files: " + before); req.execute(res -> {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
CurlResponse response = new CurlResponse(); response.setEncoding("UTF-8"); response.setContentCache(new ContentCache(content.getBytes(java.nio.charset.StandardCharsets.UTF_8))); // ## Act ## String result = response.getContentAsString(); // ## Assert ## assertEquals(content, result); } @Test public void test_GetContentAsString_WithDifferentEncoding() {
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
// ## Act ## byte[] result = cache.getContentAsBytes(); // ## Assert ## assertEquals(content, new String(result, "UTF-8")); } @Test public void testGetContentAsBytes_EmptyData() throws IOException { // ## Arrange ## ContentCache cache = new ContentCache(new byte[0]); // ## Act ##Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 15.9K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlRequestTest.java
// ## Act ## request.timeout(0, 0); // ## Assert ## assertEquals(0, request.connectTimeout); assertEquals(0, request.readTimeout); } @Test public void test_TimeoutFluentChaining() { // ## Arrange & Act ##Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 24.7K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
File file = cos.getFile(); // This sets done=true assertTrue(file.exists()); file.delete(); assertFalse(file.exists()); // ## Act & Assert ## // close() should not throw even though the file was already deleted cos.close(); // done=true since getFile() was called, so cleanup is skipped } @Test
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 11.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
List<?> exp = copyToList(expected); List<?> act = copyToList(actual); String actString = act.toString(); // Of course we could take pains to give the complete description of the // problem on any failure. // Yeah it's n^2. for (Object object : exp) { if (!act.remove(object)) { fail( "did not contain expected element "
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 17.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/FessLastaDocTest.java
/* @Test public void test_component() throws Exception { // ## Arrange ## String appWebPkg = ".app.web."; String actionSuffix = "Action"; // ## Act ## policeStoryOfJavaClassChase((srcFile, clazz) -> { if (clazz.isInterface() || Modifier.isAbstract(clazz.getModifiers())) { // e.g. BaseAction return; }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 2.3K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
@Override public void act() { throw new NullPointerException(); } }, THROW_OTHER { @Override public void act() { throw new FooException(); } }, JUST_RETURN { @Override public void act() {} }; public abstract void act(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 47.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/Helpers.java
List<?> exp = copyToList(expected); List<?> act = copyToList(actual); String actString = act.toString(); // Of course we could take pains to give the complete description of the // problem on any failure. // Yeah it's n^2. for (Object object : exp) { if (!act.remove(object)) { fail( "did not contain expected element "
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 17.2K bytes - Click Count (0) -
LICENSE
and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liabilityCreated: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 12 16:29:02 GMT 2026 - 9.9K bytes - Click Count (0)