- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 66 for calculation (1.15 sec)
-
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
}); assertTrue(exception.getMessage().contains("Security buffer extends beyond available data")); } /** * Test integer overflow protection in security buffer offset calculation. */ @Test public void testSecurityBufferIntegerOverflow() { byte[] buffer = createBasicNegotiateResponseBuffer();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
} } } @Nested @DisplayName("Usage Pattern Tests") class UsagePatternTests { @Test @DisplayName("Should support percentage calculation pattern") void shouldSupportPercentageCalculationPattern() { // Given TestAllocInfo allocInfo = new TestAllocInfo(1000L, 250L); // When - calculate percentage freeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
String result = testBlock.readString(buffer, 0); assertEquals("Test", result); } @Test @DisplayName("Test string wire length calculation") void testStringWireLength() { testBlock.setUseUnicode(false); assertEquals(5, testBlock.stringWireLength("Test", 0)); testBlock.setUseUnicode(true);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
int bodyOffset = Smb2Constants.SMB2_HEADER_LENGTH; assertEquals(sessionId, SMBUtil.readInt8(buffer, bodyOffset + 16)); } } @Test @DisplayName("Should verify padding calculation") void testPaddingCalculation() throws Exception { // Given - Create request with token byte[] token = new byte[5]; // Non-8-aligned size Smb2SessionSetupRequest req =Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
assertArrayEquals(pathBytes, actualPath); } @Test @DisplayName("Should verify size8 alignment calculation") void testSize8Alignment() throws Exception { // Given - Various path lengths to test alignment String[] paths = { "\\\\a\\b", // Short path "\\\\server\\share", // Medium path
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
docs/SMB3_IMPLEMENTATION_PLAN.md
└── ChannelFailover.java - Channel failure handling ``` #### 3.2 Implementation Tasks - [ ] Implement FSCTL_QUERY_NETWORK_INTERFACE_INFO - [ ] Create channel binding hash calculation - [ ] Implement channel establishment protocol - [ ] Add request distribution algorithm - [ ] Create channel synchronization mechanism - [ ] Implement channel failure detection - [ ] Add automatic channel recovery
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
void testVariousRemainingBytes(int remaining) { assertDoesNotThrow(() -> request.setRemainingBytes(remaining)); } } @Nested @DisplayName("Size Calculation Tests") class SizeCalculationTests { @Test @DisplayName("Should calculate size correctly with no data") void testSizeWithNoData() { request.setData(new byte[0], 0, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java
request.setFileId(secondFileId); assertDoesNotThrow(() -> request.setFileId(secondFileId)); } } @Nested @DisplayName("Size Calculation Tests") class SizeCalculationTests { @Test @DisplayName("Should calculate size correctly with single lock") void testSizeWithSingleLock() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
} @Test @DisplayName("Test readDataWireFormat with converter offset") void testReadDataWireFormatWithConverter() throws Exception { // Set converter to test offset calculation int converterValue = 100; setConverter(response, converterValue); setNumEntries(response, 1); String shareName = "TEST"; String remark = "Test remark";Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
// Negative values will be cast to unsigned when encoded assertEquals(4 + 2 * path.length(), buffer.size()); } } @Nested @DisplayName("Size Calculation Tests") class SizeTests { @ParameterizedTest @DisplayName("Should calculate correct size for various path lengths")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0)