- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 3,508 for should (0.03 sec)
-
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
// Should encode successfully at the beginning int encoded = context.encode(smallBuffer, 0); assertEquals(6, encoded); // Should handle encoding at the end of buffer correctly assertDoesNotThrow(() -> context.encode(smallBuffer, 4)); } @Test @DisplayName("Should preserve data integrity through encode/decode cycle")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
} @Test @DisplayName("Should initialize with SMB2_READ command") void testCommandInitialization() { Smb2ReadRequest readRequest = new Smb2ReadRequest(mockConfig, testFileId, outputBuffer, 0); // Command is set in parent constructor assertNotNull(readRequest); } @Test @DisplayName("Should accept null file ID in constructor")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java
// Assert - verify inheritance chain assertTrue(msg instanceof samr.SamrConnect2, "Should extend SamrConnect2"); assertTrue(msg instanceof DcerpcMessage, "Should extend DcerpcMessage"); assertTrue(msg instanceof NdrObject, "Should extend NdrObject"); } @Test @DisplayName("should inherit getOpnum method") void testGetOpnumMethod() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
int encodedLen = encodable.encode(dest, 0); // Verify encoded length assertEquals(3, encodedLen, "Encoded length should be equal to the specified length"); // Verify content assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset"); } @Test void testEncodeWithOffset() { // Test encoding with a destination offset
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java
// The method should write parameter words assertTrue(result >= 0, "writeParameterWordsWireFormat should return non-negative value"); } @Test void testReadParameterWordsWireFormat() { byte[] buffer = new byte[1024]; int result = response.readParameterWordsWireFormat(buffer, 0); // The method should read parameter words
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
} assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN"); // Try to execute - should be blocked with CIFSException CIFSException exception = assertThrows(CIFSException.class, () -> { circuitBreaker.executeWithCircuitBreaker(() -> "should not execute"); }, "Circuit breaker should throw CIFSException when open");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
@Test public void testGetAttributes() { // Initially, attributes should be 0. assertEquals(0, response.getAttributes()); } /** * Test of getCreateTime method, of class SmbComQueryInformationResponse. */ @Test public void testGetCreateTime() { // Initially, lastWriteTime is 0, so createTime should be just the offset. assertEquals(serverTimeZoneOffset, response.getCreateTime());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/LogHelperImpl.java
* @param objs the log objects */ protected void processDefault(final Object... objs) { } /** * Processes system error log events. * * @param objs the log objects (should contain a Throwable) */ protected void processSystemError(final Object... objs) { final Throwable t = (Throwable) objs[0]; if (logger.isErrorEnabled()) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 14K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UnicodeStringTest.java
assertEquals(2, emptyUnicodeStringTrue.length, "Length should be 2 for empty string with zterm"); assertEquals(2, emptyUnicodeStringTrue.maximum_length, "Maximum length should be 2 for empty string with zterm"); assertNotNull(emptyUnicodeStringTrue.buffer, "Buffer should not be null for empty string with zterm");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
@Test @DisplayName("Should get chunksWritten value") void testGetChunksWritten() { // Initial value should be 0 assertEquals(0, response.getChunksWritten()); } @Test @DisplayName("Should get chunkBytesWritten value") void testGetChunkBytesWritten() { // Initial value should be 0
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0)