Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 215 for test_string (0.06 sec)

  1. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            // Use reflection to set private dialectIndex field
            setDialectIndex(response, 11);
            assertFalse(response.isValid(mockContext, request));
        }
    
        @Test
        public void testToString() {
            response.getServerData().securityMode = 1;
            response.getServerData().encryptedPasswords = true;
            response.getServerData().smaxMpxCount = 50;
            response.getServerData().maxNumberVcs = 1;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java

            // Then
            assertEquals(0, bytesRead);
        }
    
        /**
         * Test method for {@link jcifs.internal.smb1.com.SmbComClose#toString()}.
         */
        @Test
        public void testToString() {
            // Given
            int fid = 999;
            long lastWriteTime = 1672531200000L; // 2023-01-01 00:00:00 UTC
            SmbComClose smbComClose = new SmbComClose(config, fid, lastWriteTime);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            ChannelInfo different = new ChannelInfo("different-channel", mockTransport, localInterface, remoteInterface);
            assertNotEquals(channelInfo, different);
        }
    
        @Test
        void testToString() {
            String str = channelInfo.toString();
            assertNotNull(str);
            assertTrue(str.contains("test-channel"));
            assertTrue(str.contains(ChannelState.DISCONNECTED.toString()));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbExceptionTest.java

                SmbException exception = new SmbException((String) null);
                assertNotNull(exception);
            });
        }
    
        @Test
        @DisplayName("Should convert to string properly")
        void testToString() {
            // Given
            String message = "Test error message";
            SmbException exception = new SmbException(message);
    
            // When
            String stringRep = exception.toString();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            int read = trans2FindFirst2.readDataWireFormat(buffer, 0, 100);
    
            assertEquals(0, read);
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() {
            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test\\path", "*.txt", 0x16, 50, 2048);
    
            String result = trans2FindFirst2.toString();
    
            assertNotNull(result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            map.put("3", "test3");
            assertThat(map.equals(copy), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToString() throws Exception {
            assertThat(map.toString(), is(notNullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testClear() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  9. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            CharMappingItem item2 = new CharMappingItem(2L, inputs2, "output");
    
            assertTrue(item1.equals(item2));
        }
    
        public void test_toString() {
            String[] inputs = { "a", "b" };
            CharMappingItem item = new CharMappingItem(1L, inputs, "output");
            item.setNewInputs(new String[] { "x", "y" });
            item.setNewOutput("newOutput");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
Back to top