Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 220 for teststring (0.08 sec)

  1. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

            int hashCode2 = info.hashCode();
    
            // Multiple calls should return same value
            assertEquals(hashCode1, hashCode2);
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() {
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, TEST_TYPE, TEST_REMARK);
            String str = info.toString();
    
            // Verify string contains expected elements
            assertNotNull(str);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

                response.readDataWireFormat(buffer, 0, buffer.length);
            });
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() {
            String result = response.toString();
            assertNotNull(result);
            // The toString method includes various parameter information
            assertTrue(result.contains("totalParameterCount"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top