- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for propagated (0.24 sec)
-
src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
verify(mockBuffer).dec_ndr_long(); } /** * Test case for the encode method when it throws an NdrException. * Verifies that the exception is correctly propagated. */ @Test void testEncodeThrowsNdrException() { // Given ndrObject.setThrowOnEncode(true); // When & Then assertThrows(NdrException.class, () -> {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
Supplier<String> supplier = mock(Supplier.class); when(supplier.get()).thenThrow(new RuntimeException(new SmbUnsupportedOperationException("boom"))); // Act & Assert: the exception is propagated and interaction recorded once RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get); assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
assertTrue(n > 0); // Note: In actual implementation, uid is NOT propagated for non-AndX SMBs // uid is only set for AndXServerMessageBlock instances (line 167 in AndXServerMessageBlock.java) // Only useUnicode is set before the instanceof check (line 149) assertEquals(block.useUnicode, next.useUnicode, "useUnicode must be propagated");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java
/** * Tests for {@link SmbFilenameFilter}. Since the interface only defines * a single method, the tests simply ensure that the lambda expression * correctly implements the method and that any exception is propagated. */ class SmbFilenameFilterTest { @Test void acceptReturnsTrueWhenNameMatches() throws Exception { SmbFile dir = Mockito.mock(SmbFile.class);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
assertEquals(0L, nextReq.getSessionId()); resp.prepare(nextReq); assertEquals(0L, nextReq.getSessionId(), "SessionId should not be propagated before response is received"); } @Test @DisplayName("writeBytesWireFormat should return 0 for response class") void testWriteBytesWireFormatReturnsZero() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
// Arrange: configure the mock to throw doThrow(new CIFSException("DFS resolution failed")).when(handle).ensureDFSResolved(); // Act + Assert: exception is propagated with message CIFSException ex = assertThrows(CIFSException.class, () -> handle.ensureDFSResolved()); assertEquals("DFS resolution failed", ex.getMessage()); verify(handle, times(1)).ensureDFSResolved();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/StaticJAASConfigurationTest.java
assertEquals(LoginModuleControlFlag.REQUIRED, e.getControlFlag(), "Control flag should be REQUIRED"); } @Test @DisplayName("Custom options are propagated to the AppConfigurationEntry") void customOptions_arePropagated() { // Arrange Map<String, Object> opts = new HashMap<>(); opts.put("useKeyTab", "true"); opts.put("storeKey", "true");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java
} // Edge/null/empty: message-only constructor should propagate message and set unsuccessful status @ParameterizedTest @NullSource @ValueSource(strings = { "", " ", "simple", "with unicode Ω≈ç√", "long-0123456789-abcdefghijklmnopqrstuvwxyz" }) @DisplayName("Message-only ctor: propagates message and unsuccessful status")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
// Assert assertSame(tree, result, "ensureTreeConnected should return handle's tree"); verify(handle, times(1)).ensureTreeConnected(); } @Test @DisplayName("ensureTreeConnected propagates CIFSException from handle") void ensureTreeConnected_propagatesException() throws Exception { // Arrange SmbPipeOutputStream out = newStream(); CIFSException boom = new CIFSException("tree-fail");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
// Act tree.connectLogon(null); // Assert - even null should be passed through to implementation verify(tree).connectLogon(null); } @Test @DisplayName("connectLogon propagates SmbException from implementation") void connectLogon_throws_propagates() throws Exception { // Arrange doThrow(new SmbException("login failed")).when(tree).connectLogon(context); // Act + AssertRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0)