Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 215 for test_string (0.06 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            assertTrue(exception.getMessage().contains("Unsupported information level"));
        }
    
        @Test
        void testToString() {
            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL);
    
            String result = trans2QueryPathInfo.toString();
    
            assertNotNull(result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

                // Expected
            }
    
            // equals with null input may return false instead of throwing NPE
            assertFalse(item3.equals(item1));
        }
    
        public void test_toString() {
            // Test toString method
            ProtwordsItem item = new ProtwordsItem(123, "testword");
            assertEquals("ProtwordsItem [id=123, inputs=testword, newInputs=null]", item.toString());
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.2K 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

      public void testDelegate() {
        assertEquals(LIST1, ImmutableList.copyOf(newDelegatingList(LIST1)));
        assertEquals(LIST1, ImmutableList.copyOf(newDelegatingListWithEquals(LIST1)));
      }
    
      public void testToString() {
        List<String> proxy = newDelegatingList(LIST1);
        assertEquals(Proxy.getInvocationHandler(proxy).toString(), proxy.toString());
      }
    
      interface A {}
    
      interface B {}
    
      public void testEquals() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 02:48:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/NbtExceptionTest.java

        }
    
        /**
         * Test the toString method to ensure it returns the expected string format.
         */
        @Test
        @DisplayName("toString should return a correctly formatted string")
        void testToString() {
            int errorClass = NbtException.ERR_SSN_SRVC;
            int errorCode = NbtException.CONNECTION_REFUSED;
            NbtException exception = new NbtException(errorClass, errorCode);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            // This should throw an exception during decode
            assertThrows(Exception.class, () -> {
                response.readDataWireFormat(buffer, 0, 10);
            });
        }
    
        @Test
        void testToString() {
            // Test toString method
            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            String result = response.toString();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            // Test with zero length
            result = response.readDataWireFormat(buffer, 0, 0);
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() {
            // Test the toString method
            String result = response.toString();
            assertNotNull(result);
            assertTrue(result.contains("Trans2SetFileInformationResponse"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

            assertNull(context.getServerChallenge());
            assertNull(context.getSigningKey());
            assertNull(context.getNetbiosName());
        }
    
        @Test
        void testToString() {
            // Test the toString method for completeness
            NtlmContext context = new NtlmContext(mockAuth, false);
            String str = context.toString();
            assertTrue(str.contains("NtlmContext["));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top