Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,141 for assertTrue (0.1 sec)

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

        assertTrue(cycle.hasNext());
        assertEquals("b", cycle.next());
        assertTrue(cycle.hasNext());
        assertEquals("a", cycle.next());
        cycle.remove();
        assertEquals(singletonList("b"), iterable);
        assertTrue(cycle.hasNext());
        assertEquals("b", cycle.next());
        assertTrue(cycle.hasNext());
        assertEquals("b", cycle.next());
        cycle.remove();
        assertEquals(emptyList(), iterable);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java

        void testToString() {
            NbtException e = new NbtException(NbtException.ERR_SSN_SRVC, NbtException.NO_RESOURCES);
            String str = e.toString();
            assertTrue(str.contains("errorClass=2"));
            assertTrue(str.contains("errorCode=" + NbtException.NO_RESOURCES));
            assertTrue(str.contains("Called name present, but insufficient resources"));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            String ip = "192.168.1.2";
    
            // First attempts should be allowed
            assertTrue(rateLimiter.checkAttempt(username, ip));
            rateLimiter.recordFailure(username, ip);
    
            assertTrue(rateLimiter.checkAttempt(username, ip));
            rateLimiter.recordFailure(username, ip);
    
            assertTrue(rateLimiter.checkAttempt(username, ip));
            rateLimiter.recordFailure(username, ip);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            String str = write.toString();
            assertNotNull(str);
            assertTrue(str.contains("SmbComWrite"), "Should contain class name");
            assertTrue(str.contains("fid="), "Should contain fid");
            assertTrue(str.contains("count="), "Should contain count");
            assertTrue(str.contains("offset="), "Should contain offset");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            String result = response.toString();
    
            assertNotNull(result);
            assertTrue(result.contains("SmbComQueryInformationResponse"));
            assertTrue(result.contains("fileAttributes=0x"));
            assertTrue(result.contains("lastWriteTime="));
            assertTrue(result.contains("fileSize=12345"));
        }
    
        @Test
        void testToStringWithZeroValues() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SMBSigningDigestTest.java

            // Act & Assert
            assertTrue(signingDigest.verify(testData, 0, 8, 0, message));
            assertFalse(signingDigest.verify(testData, 0, 8, 0, message));
            assertTrue(signingDigest.verify(testData, 0, 8, 0, message));
            assertFalse(signingDigest.verify(testData, 0, 8, 0, message));
            assertTrue(signingDigest.verify(testData, 0, 8, 0, message));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            } catch (SmbException e) {
                // Expected
            }
    
            stats = validator.getStats();
            assertTrue(stats.getTotalValidations() > 0);
            assertTrue(stats.getFailedValidations() > 0);
            assertTrue(stats.getFailureRate() > 0);
            assertTrue(stats.getFailureRate() <= 1.0);
        }
    
        @Test
        public void testBufferOverflowPrevention() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/validation/UriTypeValidatorTest.java

            values = "http://www.foo.com/";
            assertTrue(UriTypeValidator.check(protocols, values));
    
            protocols = new String[] { "http:" };
            values = "http://www.foo.com/\nhttp://www.bar.com/";
            assertTrue(UriTypeValidator.check(protocols, values));
    
            protocols = new String[] { "http:" };
            values = "http://www.foo.com/ \r\nhttp://www.bar.com/";
            assertTrue(UriTypeValidator.check(protocols, values));
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ACETest.java

                assertTrue(ACE.GENERIC_READ < 0, "GENERIC_READ should be negative when treated as signed int");
    
                // Test that other generic rights are positive
                assertTrue(ACE.GENERIC_ALL > 0, "GENERIC_ALL should be positive");
                assertTrue(ACE.GENERIC_EXECUTE > 0, "GENERIC_EXECUTE should be positive");
                assertTrue(ACE.GENERIC_WRITE > 0, "GENERIC_WRITE should be positive");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            assertTrue(ex instanceof SmbException, "Should be an SmbException");
    
            // toString should include the class name and the message
            String ts = ex.toString();
            assertTrue(ts.contains("SmbUnsupportedOperationException"), "toString should contain class name");
            assertTrue(ts.contains(ex.getMessage()), "toString should contain the detail message");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top