Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 447 for getMessager (0.06 sec)

  1. src/test/java/org/codelibs/fess/helper/JobHelperTest.java

            try {
                jobHelper.register((ScheduledJob) null);
                fail("Should throw ScheduledJobException");
            } catch (ScheduledJobException e) {
                assertEquals("No job.", e.getMessage());
            } catch (Exception e) {
                // Expected due to missing dependencies in test environment
                assertTrue(true);
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

            DcerpcException exception = new DcerpcException(errorCode);
    
            assertEquals(errorCode, exception.getErrorCode(), "Error code should match the input.");
            assertTrue(exception.getMessage().contains("DCERPC_FAULT_ACCESS_DENIED"),
                    "Message should contain the corresponding fault message.");
        }
    
        /**
         * Test constructor DcerpcException(int error) with an unknown error code.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java

            assertEquals(SmbException.getStatusByCode(-1), e.getNtStatus());
            assertEquals(SmbException.getMessageByCode(-1), e.getMessage());
        }
    
        @Test
        void zeroCodeProducesSuccess() {
            SmbAuthException e = new SmbAuthException(0);
            assertEquals("NT_STATUS_SUCCESS", e.getMessage());
            assertEquals(SmbException.getStatusByCode(0), e.getNtStatus());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
        } catch (AssertionFailedError error) {
          // expected
          assertContains("must be Object#equals to", error.getMessage());
        }
        assertFalse(errorNotThrown);
      }
    
      public void testClassWhichIsAlwaysEqualButHasDifferentHashcodes() {
        ClassWhichIsAlwaysEqualButHasDifferentHashcodes orig =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            // Act & Assert: calling release without prior acquire drops usage below zero
            RuntimeException ex = assertThrows(RuntimeException.class, trace::release);
            assertTrue(ex.getMessage() != null && ex.getMessage().contains("Usage count dropped below zero"));
        }
    
        @Test
        @DisplayName("getTreeId(): no tree returns -1")
        void getTreeId_noTree_returnsMinusOne() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

                fail("Should not throw exception: " + e.getMessage());
            }
        }
    
        public void test_sendMail_withEmptyInfoMap() {
            Map<String, String> infoMap = new HashMap<>();
    
            try {
                crawler.sendMail(infoMap);
            } catch (Exception e) {
                fail("Should not throw exception with empty map: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

            };
    
            try {
                errorHelper.getAvailableArtifacts(ArtifactType.DATA_STORE);
                fail("Expected PluginException");
            } catch (PluginException e) {
                assertTrue(e.getMessage().contains("Failed to access"));
            }
        }
    
        public void test_getInstalledArtifacts_unknown() {
            Artifact[] artifacts = pluginHelper.getInstalledArtifacts(ArtifactType.UNKNOWN);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

            // Assert: type, message derived from code, status mapping, and no cause
            assertNotNull(ex);
            assertTrue(ex instanceof SmbException);
            assertEquals(SmbException.getMessageByCode(errCode), ex.getMessage(), "message should reflect error code mapping");
            assertEquals(expectedStatus, ex.getNtStatus(), "status should map based on code");
            assertNull(ex.getCause(), "cause must be null for int constructor");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacCredentialTypeTest.java

            PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacCredentialType(null));
            assertEquals("Invalid PAC credential type", exception.getMessage());
        }
    
        /**
         * Tests the constructor with a byte array that is too large.
         */
        @Test
        void testConstructorWithDataTooLarge() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbSessionInternalTest.java

            doThrow(new CIFSException("session key failure")).when(session).getSessionKey();
    
            CIFSException ex = assertThrows(CIFSException.class, () -> session.getSessionKey());
            assertTrue(ex.getMessage().contains("failure"));
            verify(session).getSessionKey();
        }
    
        // Happy path: transport is returned and verified
        @Test
        @DisplayName("getTransport returns mocked transport")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top