Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 1,038 for assertTrue (0.33 sec)

  1. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            TransportException exception = new TransportException("Test exception");
    
            // Test inheritance chain
            assertTrue(exception instanceof TransportException);
            assertTrue(exception instanceof CIFSException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
    
            // Test that it can be caught as CIFSException
            boolean caughtAsCIFSException = false;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

            startLatch.countDown();
    
            // Wait for completion
            assertTrue(endLatch.await(10, TimeUnit.SECONDS), "All threads should complete");
            executor.shutdown();
    
            // Then - Session should be in consistent state
            // The double-check pattern should prevent inconsistent cleanup
            assertTrue(releaseCount.get() > 0 || acquireCount.get() > 0, "Release and acquire counts should be processed");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.io.IOException;
    
    import javax.security.auth.kerberos.KerberosKey;
    
    import org.bouncycastle.asn1.ASN1Encodable;
    import org.bouncycastle.asn1.ASN1EncodableVector;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SecurityBlobTest.java

            byte[] b = new byte[] { 1, 2, 3 };
            SecurityBlob left = new SecurityBlob(a);
            SecurityBlob right = new SecurityBlob(b);
    
            // Act & Assert
            assertTrue(left.equals(right), "Blobs with equal content should be equal");
            assertTrue(right.equals(left), "Equality should be symmetric for identical content");
        }
    
        // Demonstrates observed equals() asymmetry when this is shorter than argument
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                // Assert message indicates which validation failed
                if (expectDirSlashMsg) {
                    assertTrue(ex.getMessage().contains("directory must end with '/'"),
                            "Expected trailing slash message, was: " + ex.getMessage());
                } else {
                    assertTrue(ex.getMessage().contains("invalid") || ex.getMessage().contains("invalid:"),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java

            data.setResponseBody(content);
    
            assertTrue(data.hasResponseBody());
            assertNotNull(data.getResponseBody());
    
            try (InputStream is = data.getResponseBody()) {
                byte[] buffer = new byte[content.length];
                int bytesRead = is.read(buffer);
                assertEquals(content.length, bytesRead);
                assertTrue(Arrays.equals(content, buffer));
            } catch (IOException e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SIDTest.java

                SID sid = new SID(buildSidT((byte) 1, ident, 7, 8), jcifs.SID.SID_TYPE_USE_NONE, null, null, false);
                String s = sid.toString();
                assertTrue(s.startsWith("S-1-0x010203040506"));
                assertTrue(s.endsWith("-7-8"));
            }
    
            @Test
            @DisplayName("equals and hashCode for equal and non-equal SIDs")
            void testEqualsAndHashCode() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            assertEquals("test-channel", state.getChannelId());
            assertEquals(0, state.getRetryCount());
            assertTrue(state.shouldRetry());
            assertTrue(state.getFailureTime() > 0);
            assertTrue(state.getNextRetryTime() > state.getFailureTime());
        }
    
        @Test
        void testFailoverStateRetryLogic() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  9. api/maven-api-core/src/test/java/org/apache/maven/api/feature/FeaturesTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Unit tests for the Features class.
     */
    class FeaturesTest {
    
        @Test
        void testDeployBuildPomDefaultValue() {
            // Test that deployBuildPom returns true by default (when property is not set)
            Map<String, Object> emptyProperties = Map.of();
            assertTrue(Features.deployBuildPom(emptyProperties));
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jul 04 19:42:23 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        assertTrue(table.containsRow("foo"));
        assertTrue(table.containsRow("bar"));
        assertFalse(table.containsRow("cat"));
        assertFalse(table.containsRow(null));
      }
    
      public void testContainsColumn() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertTrue(table.containsColumn(1));
        assertTrue(table.containsColumn(3));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top