- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 276 for Arrange (0.36 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/org/codelibs/curl/CurlResponseTest.java
} // --- getContentAsString() optimization tests --- @Test public void test_GetContentAsString_InMemoryCache() { // ## Arrange ## String content = "Hello, World!"; CurlResponse response = new CurlResponse(); response.setEncoding("UTF-8");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/IOIntegrationTest.java
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 // ## Act ## long before = countTmpFiles();
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/CurlTest.java
public void test_GetFactoryMethod() { // ## Arrange ## final String url = "http://example.com"; // ## Act ## final CurlRequest request = Curl.get(url); // ## Assert ## assertNotNull(request); assertEquals(Method.GET, request.method()); } @Test public void test_PostFactoryMethod() { // ## Arrange ## final String url = "http://example.com";
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 16.3K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
@Test public void testIsInMemory_WithByteArray() { // ## Arrange ## ContentCache cache = new ContentCache("test".getBytes()); // ## Assert ## assertTrue(cache.isInMemory()); } @Test public void testIsInMemory_WithFile() throws IOException { // ## Arrange ## File tmpFile = File.createTempFile("cache-test-", ".tmp");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/core/exception/SQLRuntimeExceptionTest.java
LocaleUtil.setDefault(null); } /** * @throws Exception */ @Test public void testErrorMessage_ja() throws Exception { // ## Arrange ## Locale.setDefault(Locale.JAPANESE); final SQLException sqlException = new SQLException("some reason", "fooState", 7650); final SQLException sqlException2 = new SQLException("hoge reason", "barState", 7660);
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 3.2K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
assertTrue(file1.exists()); cos.close(); } @Test public void testCloseWithAlreadyDeletedFile() throws IOException { // ## Arrange ## // Write data exceeding threshold to force file creation, then delete the file // before close() - close() should handle this gracefully (log warning, not throw)
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) -
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) -> {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) -
android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java
return new TrustedListenableFutureTask<>(callable); } /** * Creates a {@code ListenableFutureTask} that will upon running, execute the given {@code * Runnable}, and arrange that {@code get} will return the given result on successful completion. * * @param runnable the runnable task * @param result the result to return on successful completion. If you don't need a particular
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 5.5K bytes - Click Count (0) -
CLAUDE.md
- Apache License 2.0 headers on all source files - Comprehensive Javadoc on public APIs ## Test Conventions - Test class names end with `Test` - Test methods start with `test_` prefix - Tests use `## Arrange ##`, `## Act ##`, `## Assert ##` comments - Some integration tests require network access ## Important Notes for AI Assistants 1. **Resource Management**: Always use try-with-resources with `CurlResponse`.
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Jan 08 07:28:24 GMT 2026 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java
return new ListenableFutureTask<>(callable); } /** * Creates a {@code ListenableFutureTask} that will upon running, execute the given {@code * Runnable}, and arrange that {@code get} will return the given result on successful completion. * * @param runnable the runnable task * @param result the result to return on successful completion. If you don't need a particular
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 10 11:51:21 GMT 2026 - 4.2K bytes - Click Count (0)