- Sort Score
- Result 10 results
- Languages All
Results 21 - 28 of 28 for spy (0.03 sec)
-
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
} @Test @DisplayName("Test setUseUnicode is called with false") void testSetUseUnicode() throws Exception { // Create a spy to verify method call NetShareEnumResponse spyResponse = spy(new NetShareEnumResponse(mockConfig)); setNumEntries(spyResponse, 0); byte[] buffer = new byte[100]; spyResponse.readDataWireFormat(buffer, 0, buffer.length);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
src/test/java/jcifs/context/AbstractCIFSContextTest.java
context.run(); assertTrue(context.isCloseCalled()); // Verify close() was called } @Test void testRun_closeThrowsException() throws CIFSException { // Create a spy on the context to make close() throw an exception TestAbstractCIFSContext spyContext = new TestAbstractCIFSContext(mockCredentials) { @Override public boolean close() throws CIFSException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.Mockito.atLeastOnce; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.List;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
} @Test @DisplayName("Should decode output correctly") void testDecodeOut() throws NdrException { // Given: Enumerate aliases message with spy for sam samr.SamrSamArray samArray = spy(new samr.SamrSamArray()); // Pre-populate entries to avoid complex decode chain samArray.entries = new samr.SamrSamEntry[1];Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
void resolveSids_withOffsetAndCache_behavesCorrectly() throws Exception { CIFSContext ctx = mock(CIFSContext.class); SIDCacheImpl cache = Mockito.spy(new SIDCacheImpl(ctx)); // Prepare SIDs, two need resolution, one already resolved SID s1 = sid("S-1-5-21-10-11-12-1001"); SID s2 = sid("S-1-5-21-10-11-12-1002");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
} @Test @DisplayName("Should decode output correctly") void testDecodeOut() throws NdrException { // Given: Enumerate aliases message with spy for sam samr.SamrSamArray samArray = spy(new samr.SamrSamArray()); // Pre-populate entries to avoid complex decode chain samArray.entries = new samr.SamrSamEntry[1];Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
} @Override int readBytesWireFormat(byte[] buffer, int bufferIndex) { readBytesCalls++; return 20; } } /** * SigningDigest spy that records whether sign() was invoked. */ static class TestSigningDigest extends SigningDigest { boolean called; int lastLength; TestSigningDigest() throws SmbException {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
CREDITS
github.com/dustin/go-humanize https://github.com/dustin/go-humanize ---------------------------------------------------------------- Copyright (c) 2005-2008 Dustin Sallings <dustin@spy.net> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Mar 13 05:29:51 UTC 2025 - 1.8M bytes - Viewed (0)