- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 175 for throwing (0.04 sec)
-
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
// When & Then - should handle null gracefully (implementation dependent) assertDoesNotThrow(() -> request.setFileId(null), "Should handle null file ID without throwing exception"); } @Test @DisplayName("Should handle empty file ID") void testSetEmptyFileId() { // Given RequestWithFileId request = new Smb2CloseRequest(mockConfig, testFileId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
SomeCheckedException cause = new SomeCheckedException(); SomeChainingException thrown = new SomeChainingException(cause); assertThat(thrown).hasCauseThat().isSameInstanceAs(cause); assertThat(getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause); assertThat(getCauseAs(thrown, Exception.class)).isSameInstanceAs(cause); ClassCastException expected = assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
SomeCheckedException cause = new SomeCheckedException(); SomeChainingException thrown = new SomeChainingException(cause); assertThat(thrown).hasCauseThat().isSameInstanceAs(cause); assertThat(getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause); assertThat(getCauseAs(thrown, Exception.class)).isSameInstanceAs(cause); ClassCastException expected = assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
// Assert assertFalse(it.hasNext(), "No next when opened with null initial"); verify(tree, times(1)).release(); // closed in constructor } @Test @DisplayName("open() throwing CIFSException triggers close and rethrow") void constructorOpenThrows() { // Arrange stubAcquireReturnsSelf();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java
assertEquals(middleCause, topException.getCause()); assertEquals(rootCause, topException.getCause().getCause()); } public void test_throwAndCatch() { // Test throwing and catching the exception String componentName = "cacheManager"; try { throw new ContainerNotAvailableException(componentName); } catch (ContainerNotAvailableException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
} /** * Test watch() method throwing CIFSException */ @Test void testWatchThrowsCIFSException() throws CIFSException { // Setup mock behavior CIFSException expectedException = new CIFSException("Watch operation failed"); when(watchHandle.watch()).thenThrow(expectedException); // Execute and verify CIFSException thrown = assertThrows(CIFSException.class, () -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
// Both resources should be closed verify(filter, times(2)).accept(resource); verify(resource, times(2)).close(); } @Test @DisplayName("Iterator with filter throwing exception") void iteratorWithFilterException() throws Exception { // Setup: first attempt throws, second succeeds FileEntry entry1 = mock(FileEntry.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java
assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } public void test_throwAndCatch() { // Test throwing and catching the exception String expectedType = "OAuth"; String expectedMessage = "OAuth token is invalid"; try {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
} @Test @DisplayName("Test all write methods with null buffer") void testWriteMethodsWithNullBuffer() { // Even with null buffer, methods should return 0 without throwing exception int result = response.writeSetupWireFormat(null, 0); assertEquals(0, result); result = response.writeParametersWireFormat(null, 0); assertEquals(0, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java
int securityInfo = OWNER_SECURITY_INFORMATION; querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, fid, securityInfo); // Constructor should initialize the object without throwing exceptions assertNotNull(querySecurityDesc); // Test toString contains the expected values to verify field initialization String str = querySecurityDesc.toString();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0)