Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 160 for testToString (0.81 sec)

  1. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            fileInternalInfo.decode(buffer3, 0, buffer3.length);
            assertEquals(indexNumber3, fileInternalInfo.getIndexNumber());
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() throws SMBProtocolDecodingException {
            // Setup test data
            byte[] buffer = new byte[8];
            long expectedIndexNumber = 0x9876543210ABCDEFL;
            SMBUtil.writeInt8(expectedIndexNumber, buffer, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> first.get(10, SECONDS));
        assertThat(expected).hasCauseThat().isInstanceOf(RejectedExecutionException.class);
      }
    
      public void testToString() {
        Runnable[] currentTask = new Runnable[1];
        Executor delegate =
            new Executor() {
              @Override
              public void execute(Runnable task) {
                currentTask[0] = task;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java

            // Then
            assertEquals(0, bytesRead);
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() {
            // Given
            transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, 0, TEST_DATA.length);
    
            // When
            String result = transCallNamedPipe.toString();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            assertEquals(smb1.hashCode(), smb2.hashCode());
            assertNotEquals(smb1.hashCode(), smb3.hashCode());
            assertNotEquals(smb1, new Object());
        }
    
        @Test
        void testToString() {
            smb.command = ServerMessageBlock.SMB_COM_ECHO;
            smb.errorCode = 0;
            smb.mid = 1;
            String str = smb.toString();
            assertTrue(str.contains("command=SMB_COM_ECHO"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            assertThat(expectSuccess).isTrue();
          } catch (IllegalArgumentException e) {
            assertThat(expectSuccess).isFalse();
          }
        }
      }
    
      public void testToString() {
        for (long value : TEST_LONGS) {
          UnsignedLong unsignedValue = UnsignedLong.fromLongBits(value);
          assertThat(unsignedValue.toString()).isEqualTo(unsignedValue.bigIntegerValue().toString());
        }
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            assertEquals(dataSize, result);
            for (int i = 0; i < dataSize; i++) {
                assertEquals(sourceData[i], outputBuffer[i]);
            }
        }
    
        @Test
        void testToString() {
            String result = response.toString();
            assertNotNull(result);
            assertTrue(result.startsWith("TransCallNamedPipeResponse["));
            assertTrue(result.endsWith("]"));
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            byte[] buffer = new byte[256];
            int bytesWritten = response.writeBytesWireFormat(buffer, 0);
    
            assertEquals(0, bytesWritten);
        }
    
        @Test
        void testToString() {
            // Test toString method
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
    
            // Set test values
            setFieldValue(response, "fileAttributes", 0x0021);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            // Then
            assertEquals(0, result);
        }
    
        /**
         * Test toString method
         */
        @Test
        @DisplayName("Test toString returns properly formatted string")
        public void testToString() {
            // Given
            String oldFileName = "oldFile.txt";
            String newFileName = "newFile.txt";
            smbComRename = new SmbComRename(config, oldFileName, newFileName);
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

            assertEquals(expectedOffset, notifyInfo.getNextEntryOffset());
        }
    
        @Test
        @DisplayName("Test toString contains expected information")
        void testToString() throws SMBProtocolDecodingException {
            String fileName = "log.txt";
            int action = FileNotifyInformation.FILE_ACTION_MODIFIED;
            byte[] buffer = createValidNotificationBuffer(fileName, action);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/UUIDTest.java

        }
    
        @Nested
        @DisplayName("toString() Tests")
        class ToStringTests {
    
            @Test
            @DisplayName("toString() should return correctly formatted UUID string")
            void testToString() {
                // Arrange
                rpc.uuid_t rpcUuid = new rpc.uuid_t();
                rpcUuid.time_low = TIME_LOW;
                rpcUuid.time_mid = TIME_MID;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
Back to top