Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 364 for RuntimeException (0.29 sec)

  1. src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java

            String input = "test line";
            InputStream is = new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8));
    
            Consumer<String> faultyCallback = line -> {
                throw new RuntimeException("Callback exception");
            };
    
            InputStreamThread thread = new InputStreamThread(is, StandardCharsets.UTF_8, 10, faultyCallback);
            thread.start();
            thread.join(1000);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/transport/ResponseTest.java

            // Verify that the method was called
            verify(mockResponse, times(1)).reset();
        }
    
        @Test
        void testGetException() {
            Exception testException = new RuntimeException("Test Exception");
            when(mockResponse.getException()).thenReturn(testException);
            assertEquals(testException, mockResponse.getException());
    
            // Test null exception
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        }
      }
    
      static class ConstructorThrows {
        public ConstructorThrows() {
          throw new RuntimeException();
        }
      }
    
      static class FactoryMethodThrows {
        private FactoryMethodThrows() {}
    
        public static FactoryMethodThrows create() {
          throw new RuntimeException();
        }
      }
    
      static class NotInstantiable {
        private NotInstantiable() {}
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/query/QueryCommandTest.java

                        propField.setAccessible(true);
                        propField.set(this, new org.dbflute.helper.jprop.ObjectiveProperties("test"));
                    } catch (Exception e) {
                        throw new RuntimeException("Failed to initialize prop field", e);
                    }
                }
    
                @Override
                public String getIndexFieldTitle() {
                    return "title";
                }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/JobProcessTest.java

            Process mockProcess = createMockProcess("exception test");
            Consumer<String> faultyCallback = line -> {
                throw new RuntimeException("Callback exception");
            };
    
            JobProcess jobProcess = new JobProcess(mockProcess, 10, faultyCallback);
            InputStreamThread thread = jobProcess.getInputStreamThread();
    
            thread.start();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

          return false;
        }
        TesterRequirements requirements;
        try {
          requirements = FeatureUtil.getTesterRequirements(method);
        } catch (ConflictingRequirementsException e) {
          throw new RuntimeException(e);
        }
        if (!features.containsAll(requirements.getPresentFeatures())) {
          if (logger.isLoggable(FINER)) {
            Set<Feature<?>> missingFeatures = copyToSet(requirements.getPresentFeatures());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

        protected void addDocumentToQueue() {
            if (docCount.get() > getLimitDocNum(totalDocNum, limitPercentage, limitNumber)) {
                isFinished.set(true);
                return;
            }
    
            RuntimeException exception = null;
    
            for (int i = 0; i < maxRetryCount; i++) {
                try {
                    final SearchResponse response;
                    if (scrollId == null) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

                    return new String[] { "invalid-repo" };
                }
    
                @Override
                protected String getRepositoryContent(String url) {
                    throw new RuntimeException("Repository error");
                }
            };
    
            try {
                errorHelper.getAvailableArtifacts(ArtifactType.DATA_STORE);
                fail("Expected PluginException");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/IoTestCase.java

        if (testDir != null) {
          return testDir;
        }
    
        URL testFileUrl = IoTestCase.class.getResource("testdata/i18n.txt");
        if (testFileUrl == null) {
          throw new RuntimeException("unable to locate testdata directory");
        }
    
        if (testFileUrl.getProtocol().equals("file")) {
          try {
            File testFile = new File(testFileUrl.toURI());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            try {
                Field f = declaring.getDeclaredField(name);
                f.setAccessible(true);
                f.set(target, value);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        // Simple FileEntry stub for tests
        private static final class FE implements FileEntry {
            private final String name;
    
            FE(String name) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top