Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for testdoc (0.24 seconds)

  1. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

        }
    
        // Test getThumbnailFile with existing file
        @Test
        public void test_getThumbnailFile_exists() throws IOException {
            Map<String, Object> docMap = new HashMap<>();
            docMap.put("_id", "testdoc");
    
            String filename = thumbnailManager.getImageFilename(docMap);
            File thumbnailFile = new File(tempDir, filename);
            thumbnailFile.getParentFile().mkdirs();
            thumbnailFile.createNewFile();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 20.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/job/ExecJobTest.java

            execJob.testDeleteTempDir(null);
    
            // Test with existing directory
            File testDir = new File(tempDir, "test_delete_dir");
            assertTrue(testDir.mkdir());
            assertTrue(testDir.exists());
    
            execJob.testDeleteTempDir(testDir);
            assertFalse(testDir.exists());
    
            // Test with non-existent directory
            File nonExistentDir = new File(tempDir, "non_existent");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/searchlist/AdminSearchlistAction.java

         */
        @Execute
        @Secured({ ROLE })
        public HtmlResponse createnew(final CreateForm form) {
            saveToken();
            form.initialize();
            form.crudMode = CrudMode.CREATE;
            getDoc(form).ifPresent(entity -> {
                form.doc = fessConfig.convertToEditableDoc(entity);
            });
            currentForm = form;
            return asEditHtml();
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:38:39 GMT 2026
    - 25.5K bytes
    - Click Count (1)
  4. guava-tests/test/com/google/common/math/IntMathTest.java

            assertTrue(isPerfectSquare);
          } catch (ArithmeticException e) {
            assertFalse(isPerfectSquare);
          }
        }
      }
    
      @GwtIncompatible // 2147483646^2 expected=4
      public void testPow() {
        for (int i : ALL_INTEGER_CANDIDATES) {
          for (int pow : EXPONENTS) {
            assertEquals(i + "^" + pow, BigInteger.valueOf(i).pow(pow).intValue(), IntMath.pow(i, pow));
          }
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/math/IntMathTest.java

            assertTrue(isPerfectSquare);
          } catch (ArithmeticException e) {
            assertFalse(isPerfectSquare);
          }
        }
      }
    
      @GwtIncompatible // 2147483646^2 expected=4
      public void testPow() {
        for (int i : ALL_INTEGER_CANDIDATES) {
          for (int pow : EXPONENTS) {
            assertEquals(i + "^" + pow, BigInteger.valueOf(i).pow(pow).intValue(), IntMath.pow(i, pow));
          }
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/searchlist/ApiAdminSearchlistAction.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.api.admin.searchlist;
    
    import static org.codelibs.fess.app.web.admin.searchlist.AdminSearchlistAction.getDoc;
    import static org.codelibs.fess.app.web.admin.searchlist.AdminSearchlistAction.validateFields;
    
    import java.util.Map;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/math/LongMathTest.java

            assertTrue(isPerfectSquare);
          } catch (ArithmeticException e) {
            assertFalse(isPerfectSquare);
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testPow() {
        for (long i : ALL_LONG_CANDIDATES) {
          for (int exp : EXPONENTS) {
            assertEquals(LongMath.pow(i, exp), valueOf(i).pow(exp).longValue());
          }
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 31.4K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        for (long a : TEST_LONGS) {
          assertThrows(
              ArithmeticException.class,
              () -> UnsignedLong.fromLongBits(a).dividedBy(UnsignedLong.ZERO));
        }
      }
    
      public void testMod() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
            if (b != 0) {
              UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/app/web/admin/log/AdminLogActionTest.java

            assertEquals("/etc/passwd", AdminLogAction.sanitizeFilename("../../etc/passwd"));
            assertEquals("test.log", AdminLogAction.sanitizeFilename("..test.log"));
            assertEquals("testlog", AdminLogAction.sanitizeFilename("test..log"));
        }
    
        @Test
        public void test_sanitizeFilename_removesMultipleDoubleDots() {
            // "...." becomes "" (two ".." are removed)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testAbsent() {
        Optional<String> optionalName = Optional.absent();
        assertFalse(optionalName.isPresent());
      }
    
      public void testOf() {
        assertThat(Optional.of("training").get()).isEqualTo("training");
      }
    
      public void testOf_null() {
        assertThrows(NullPointerException.class, () -> Optional.of(null));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10.6K bytes
    - Click Count (0)
Back to Top