Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 1,622 for Contains (0.49 sec)

  1. guava-tests/test/com/google/common/primitives/IntsTest.java

      }
    
      public void testContains() {
        assertThat(Ints.contains(EMPTY, (int) 1)).isFalse();
        assertThat(Ints.contains(ARRAY1, (int) 2)).isFalse();
        assertThat(Ints.contains(ARRAY234, (int) 1)).isFalse();
        assertThat(Ints.contains(new int[] {(int) -1}, (int) -1)).isTrue();
        assertThat(Ints.contains(ARRAY234, (int) 2)).isTrue();
        assertThat(Ints.contains(ARRAY234, (int) 3)).isTrue();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

      public int size() {
        return contents.length;
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        if (!allowNulls) {
          // behave badly
          if (object == null) {
            throw new NullPointerException();
          }
        }
        Platform.checkCast(type, object); // behave badly
        return asList(contents).contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> collection) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

         * is present.
         */
        @Test
        @DisplayName("toString with root cause contains stack trace")
        void testToStringWithRootCause() {
            RuntimeException cause = new RuntimeException("boom");
            SmbException ex = new SmbException(0, cause);
            assertTrue(ex.toString().contains("RuntimeException"), "String representation must include the root cause stack trace");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            // Act & Assert: calling release without prior acquire drops usage below zero
            RuntimeException ex = assertThrows(RuntimeException.class, trace::release);
            assertTrue(ex.getMessage() != null && ex.getMessage().contains("Usage count dropped below zero"));
        }
    
        @Test
        @DisplayName("getTreeId(): no tree returns -1")
        void getTreeId_noTree_returnsMinusOne() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            assertTrue(ex1.getMessage().contains("Already closed"));
            CIFSException ex2 = assertThrows(CIFSException.class, handle::getOutput, "getOutput after close must throw");
            assertTrue(ex2.getMessage().contains("Already closed"));
        }
    
        @Test
        @DisplayName("ensureOpen opens SMB2 via UNC path and marks open")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      DescendingImmutableSortedSet(ImmutableSortedSet<E> forward) {
        super(Ordering.from(forward.comparator()).reverse());
        this.forward = forward;
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        return forward.contains(object);
      }
    
      @Override
      public int size() {
        return forward.size();
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/cache/BatchRequestException.java

    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.services.Request;
    import org.apache.maven.api.services.Result;
    
    /**
     * Exception thrown when a batch request operation fails. This exception contains the results
     * of all requests that were attempted, including both successful and failed operations.
     * <p>
     * The exception provides access to detailed results through {@link #getResults()}, allowing
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractorTest.java

            final String content = lhaExtractor.getText(in, null).getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("テスト"));
            assertTrue(content.contains("テキスト"));
        }
    
        public void test_getText_maxSize() throws IOException {
            try (final InputStream in = ResourceUtil.getResourceAsStream("extractor/lha/test.lzh")) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

        void release_belowZero_throws() {
            SmbTreeConnection c = newConn();
            RuntimeCIFSException ex = assertThrows(RuntimeCIFSException.class, c::release);
            assertTrue(ex.getMessage().toLowerCase().contains("usage count"));
        }
    
        @Test
        @DisplayName("isConnected reflects underlying tree state")
        void isConnected_usesTree() {
            SmbTreeConnection c = newConn();
            // No tree -> false
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/LockHeldAssertingSet.java

      }
    
      @Override
      public void clear() {
        assertTrue(Thread.holdsLock(mutex));
        super.clear();
      }
    
      @Override
      public boolean contains(@Nullable Object o) {
        assertTrue(Thread.holdsLock(mutex));
        return super.contains(o);
      }
    
      @Override
      public boolean containsAll(Collection<?> c) {
        assertTrue(Thread.holdsLock(mutex));
        return super.containsAll(c);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top