- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 167 for test_toString (0.06 sec)
-
src/test/java/jcifs/tests/persistent/HandleInfoTest.java
assertNull(info.getFile()); Object mockFile = new Object(); info.setFile(mockFile); assertEquals(mockFile, info.getFile()); } @Test public void testToString() { HandleInfo info = new HandleInfo("/test/file.txt", testGuid, testFileId, HandleType.PERSISTENT, 0, testLeaseKey); String str = info.toString(); assertTrue(str.contains("/test/file.txt"));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
// Original key should remain unchanged assertEquals(0x01, key.getKey()[0]); } @Test @DisplayName("Should create readable string representation") void testToString() { byte[] testBytes = new byte[] { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }; Smb2LeaseKey key = new Smb2LeaseKey(testBytes);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EmptyImmutableTableTest.java
new EqualsTester() .addEqualityGroup(INSTANCE) .addEqualityGroup(ArrayTable.create(ImmutableSet.of('A'), ImmutableSet.of(1))) .testEquals(); } public void testToString() { assertEquals("{}", INSTANCE.toString()); } public void testSize() { assertEquals(0, INSTANCE.size()); } public void testGet() { assertThat(INSTANCE.get('a', 1)).isNull(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
assertEquals(0, cmd.readParametersWireFormat(null, 0, 0)); assertEquals(0, cmd.readDataWireFormat(null, 0, 0)); } @Test @DisplayName("toString includes information level in hex") void testToString() { int level = 0xABC; Trans2QueryFSInformation cmd = new Trans2QueryFSInformation(level); String str = cmd.toString(); // toString uses Hexdump.toHexString(informationLevel, 3)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
} /** * Tests the toString method for a meaningful representation. */ @Test void testToString() { NetShareEnumResponse response = new NetShareEnumResponse(); response.status = 0; response.numEntries = 2; byte[] buffer = { 0x00, 0x00, 0x12, 0x34, 0x02, 0x00, 0x05, 0x00 };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/internal/smb2/multichannel/NetworkInterfaceInfoTest.java
info3.setInterfaceIndex(2); assertEquals(info1, info2); assertNotEquals(info1, info3); assertEquals(info1.hashCode(), info2.hashCode()); } @Test void testToString() { NetworkInterfaceInfo info = new NetworkInterfaceInfo(testAddress, 1000); String str = info.toString(); assertNotNull(str); assertTrue(str.contains(testAddress.toString()));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java
assertEquals(0x12345678, contextWithFlags.getFlags()); } @Test @DisplayName("Test toString representation") public void testToString() { String str = context.toString(); assertNotNull(str); assertTrue(str.contains("CompressionNegotiateContext")); assertTrue(str.contains("LZ77"));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryRequestTest.java
byte[] src = new byte[100]; int srcIndex = 0; int result = request.readRDataWireFormat(src, srcIndex); assertEquals(0, result); } @Test void testToString() { // Test the toString method's output format NameQueryRequest request = new NameQueryRequest(mockConfig, mockName); String expectedStringPrefix = "NameQueryRequest[";
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java
byte[] buffer = new byte[100]; int consumed = pipe.readDataWireFormat(buffer, 0, 10); assertEquals(0, consumed, "readDataWireFormat should return 0"); } @Test public void testToString() { // Test the toString method String pipeName = "\\\\pipe\\testPipe"; TransWaitNamedPipe pipe = new TransWaitNamedPipe(pipeName); String result = pipe.toString();
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/smb1/smb1/SmbComQueryInformationResponseTest.java
assertEquals(0, response.readBytesWireFormat(buffer, bufferIndex)); } /** * Test of toString method, of class SmbComQueryInformationResponse. */ @Test public void testToString() { String result = response.toString(); assertNotNull(result); assertTrue(result.startsWith("SmbComQueryInformationResponse[")); assertTrue(result.contains("fileAttributes=0x0000"));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0)