- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 150 for SmbException (0.08 sec)
-
src/test/java/org/codelibs/fess/helper/SambaHelperTest.java
import org.codelibs.fess.mylasta.direction.FessConfig; import org.codelibs.fess.unit.UnitFessTestCase; import org.codelibs.fess.util.ComponentUtil; import jcifs.SID; import jcifs.smb.SmbException; public class SambaHelperTest extends UnitFessTestCase { public SambaHelper sambaHelper; @Override public void setUp() throws Exception { super.setUp();Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 14.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
* @param w * @param dh * @param sh * @param req * @param resp * @throws SmbException */ static void copyFile(final SmbFile src, final SmbFile dest, final byte[][] b, final int bsize, final WriterThread w, final SmbTreeHandleImpl sh, final SmbTreeHandleImpl dh) throws SmbException { if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) { try {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java
@Override public boolean accept(SmbFile file) throws SmbException { if (file == null) { throw new SmbException("null file"); } return true; } }; assertThrows(SmbException.class, () -\u003e throwOnNull.accept(null)); } } @NestedRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
// Simulate network name deleted error SmbException networkDeletedError = new SmbException(SmbException.NT_STATUS_NETWORK_NAME_DELETED, false); doThrow(networkDeletedError).when(session).send(any(ServerMessageBlock.class), any(ServerMessageBlock.class)); // Execute and verify exception is thrown assertThrows(SmbException.class, () -> tree.send(request, response));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
* Establish a tree connection with the configured logon share * * @throws SmbException */ @Override public void treeConnectLogon() throws SmbException { String logonShare = getContext().getConfig().getLogonShare(); if (logonShare == null || logonShare.isEmpty()) { throw new SmbException("Logon share is not defined"); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
SmbTreeConnectionTrace trace = Mockito.spy(new SmbTreeConnectionTrace(ctx)); SmbException original = new SmbException("original"); doThrow(original).when(trace).connect(loc); // Act & Assert SmbException ex = assertThrows(SmbException.class, () -> trace.connectWrapException(loc)); assertSame(original, ex); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
when(src.toString()).thenReturn("smb://src"); when(dest.toString()).thenReturn("smb://dest"); // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> SmbCopyUtil.copyFile(src, dest, buffers, 8, new WriterThread(), sh, dh)); assertTrue(ex.getMessage().contains("smb://src"));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
/** * Exception flow: filter throws SmbException and it propagates to caller. */ @Test @DisplayName("throws SmbException as declared by contract") void throwsSmbExceptionFromFilter() { SmbFilenameFilter filter = (dir, name) -> { throw new SmbException("boom"); }; SmbException ex = assertThrows(SmbException.class, () -> filter.accept(mockDir, "x"));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
} @Override public boolean hasCapability(final int cap) throws SmbException { return getNegotiateResponse().haveCapabilitiy(cap); } /** * @return the negotiated * @throws SmbException */ SmbNegotiationResponse getNegotiateResponse() throws SmbException { try { if (this.negotiated == null) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Context.java
throw new SmbException("Failed to query Kerberos session key from ExtendedGSSContext", ex); } } throw new SmbException("ExtendedGSSContext is not implemented by GSSContext"); } @Override public byte[] initSecContext(byte[] token, int off, int len) throws SmbException { try {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13.5K bytes - Viewed (1)