Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 2,052 for contains (0.04 sec)

  1. android/guava-tests/test/com/google/common/collect/SetsTest.java

        Set<List<Integer>> actual = cartesianProduct(set(1, 2), set(3, 4));
        assertTrue(actual.contains(list(1, 3)));
        assertTrue(actual.contains(list(1, 4)));
        assertTrue(actual.contains(list(2, 3)));
        assertTrue(actual.contains(list(2, 4)));
        assertFalse(actual.contains(list(3, 1)));
      }
    
      public void testCartesianProduct_equals() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

        @Test
        @DisplayName("happy: toString contains class info and field values")
        void testToStringContainsAllInfo() {
            int fid = 256;
            long lwt = 9876543210L;
            SmbComClose close = new SmbComClose(fid, lwt);
            String s = close.toString();
            assertTrue(s.startsWith("SmbComClose["), "string should start with class name");
            assertTrue(s.contains("fid=" + fid), "string should contain the fid value");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java

            // Verify the key parts of the string representation
            assertTrue(result.startsWith("NetServerEnum2["));
            assertTrue(result.contains("command=SMB_COM_TRANSACTION"));
            assertTrue(result.contains(",name=\\PIPE\\LANMAN"));
            assertTrue(result.contains(",serverTypes=SV_TYPE_ALL]"));
        }
    
        /**
         * Test the toString method with SV_TYPE_DOMAIN_ENUM.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertFalse(set.contains(0));
        assertTrue(set.contains(1));
        assertTrue(set.contains(2));
        assertTrue(set.contains(3));
        assertFalse(set.contains(4));
        set = ContiguousSet.create(Range.open(0, 4), integers());
        assertFalse(set.contains(0));
        assertTrue(set.contains(1));
        assertTrue(set.contains(2));
        assertTrue(set.contains(3));
        assertFalse(set.contains(4));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            assertEquals("1", true, StringUtil.contains("a", 'a'));
            assertEquals("2", true, StringUtil.contains("abc", 'b'));
            assertEquals("3", false, StringUtil.contains("abc", 'd'));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testContains2() throws Exception {
            assertEquals("1", true, StringUtil.contains("a", "a"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            // Act
            String result = nodeStatusRequest.toString();
    
            // Assert
            assertTrue(result.contains("NodeStatusRequest"));
            assertTrue(result.contains("nameTrnId=12345"));
            assertTrue(result.contains("TESTNAME"));
        }
    
        @Test
        void toString_withNullQuestionName_shouldHandleGracefully() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Iterables.java

      }
    
      /**
       * Returns {@code true} if {@code iterable} contains any element {@code o} for which {@code
       * Objects.equals(o, element)} would return {@code true}. Otherwise returns {@code false}, even in
       * cases where {@link Collection#contains} might throw {@link NullPointerException} or {@link
       * ClassCastException}.
       */
      public static boolean contains(Iterable<?> iterable, @Nullable Object element) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/PathValidatorTest.java

            String normalized = validator.validateSmbUrl(url);
            assertTrue(normalized.startsWith("smb://"));
            assertTrue(normalized.contains("server"));
            assertTrue(normalized.contains("/share/folder/file.txt") || normalized.contains("\\share\\folder\\file.txt"));
        }
    
        @Test
        public void testSmbUrlWithCredentials() throws Exception {
            String url = "smb://user:pass@server/share";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

                assertFalse("Command should not contain ${url}", cmd.contains("${url}"));
                assertFalse("Command should not contain ${outputFile}", cmd.contains("${outputFile}"));
                assertTrue("Command should contain temp path", cmd.contains(tempPath));
                assertTrue("Command should contain output path", cmd.contains(outputPath));
            }
        }
    
        // Test timeout scenarios
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            tree.connectionState = 2;
    
            String result = tree.toString();
            // Verify the toString contains the expected information
            assertTrue(result.contains("TESTSHARE"));
            assertTrue(result.contains("testService"));
            assertTrue(result.contains("123"));
            assertTrue(result.contains("2"));
        }
    
        @Test
        void testTreeConnectAndDisconnect() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top