Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 64 for arrange (0.06 seconds)

  1. src/test/java/org/codelibs/curl/CurlRequestTest.java

        public void test_UrlWithCurlyBraces() {
            // ## Arrange ##
            // URLs with curly braces (e.g., OpenSearch) should be accepted
            final CurlRequest request = new CurlRequest(Method.GET, "http://localhost:9200/{index}/_search");
    
            // ## Assert ##
            assertNotNull(request);
        }
    
        @Test
        public void test_UrlWithPipe() {
            // ## Arrange ##
    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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertToStringWorks(
            CharMatcher.inRange('a', 'z')
                .or(CharMatcher.inRange('A', 'Z'))
                .or(CharMatcher.inRange('0', '9'))
                .or(CharMatcher.is('_')),
            "CharMatcher.inRange('\\u0061', '\\u007A')"
                + ".or(CharMatcher.inRange('\\u0041', '\\u005A'))"
                + ".or(CharMatcher.inRange('\\u0030', '\\u0039'))"
                + ".or(CharMatcher.is('\\u005F'))");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 32.4K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ImmutableRangeSet.java

      public static <C extends Comparable> ImmutableRangeSet<C> of(Range<C> range) {
        checkNotNull(range);
        if (range.isEmpty()) {
          return of();
        } else if (range.equals(Range.all())) {
          return all();
        } else {
          return new ImmutableRangeSet<>(ImmutableList.of(range));
        }
      }
    
      /** Returns an immutable range set containing the single range {@link Range#all()}. */
      @SuppressWarnings("unchecked")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.4K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

      }
    
      /**
       * Returns an immutable range set containing the specified single range. If {@link Range#isEmpty()
       * range.isEmpty()}, this is equivalent to {@link ImmutableRangeSet#of()}.
       */
      public static <C extends Comparable> ImmutableRangeSet<C> of(Range<C> range) {
        checkNotNull(range);
        if (range.isEmpty()) {
          return of();
        } else if (range.equals(Range.all())) {
          return all();
        } else {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/graph/Graphs.java

      private Graphs() {}
    
      // Graph query methods
    
      /**
       * Returns true if {@code graph} has at least one cycle. A cycle is defined as a non-empty subset
       * of edges in a graph arranged to form a path (a sequence of adjacent outgoing edges) starting
       * and ending with the same node.
       *
       * <p>This method will detect any non-empty cycle, including self-loops (a cycle of length 1).
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 24.4K bytes
    - Click Count (0)
Back to Top