Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 158 for TestToString (0.42 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

          assertThat(length - baseStackDepth).isLessThan(DIRECT_EXECUTIONS_PER_THREAD / 2);
        }
      }
    
      @SuppressWarnings("ObjectToString") // Intended behavior
      public void testToString() {
        Future<?> unused = serializer.submitAsync(firstCallable, directExecutor());
        TestCallable secondCallable = new TestCallable(SettableFuture.<Void>create());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

            assertEquals(8, bytesRead);
            assertArrayEquals(encryptionKey, serverData.encryptionKey);
            assertEquals("", serverData.oemDomainName);
        }
    
        @Test
        void testToString() {
            // Populate serverData with some values
            response.dialectIndex = 5;
            serverData.securityMode = 0x03; // User, Encrypted
            serverData.security = 1;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.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. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  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/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)
  10. 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)
Back to top