- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for Manual (0.04 sec)
-
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
// Expected } // Manually unlock assertTrue(rateLimiter.unlockAccount(username), "Manual unlock should succeed"); // Should be allowed again assertTrue(rateLimiter.checkAttempt(username, ip), "Should be allowed after manual unlock"); } @Test public void testManualUnblockIp() throws Exception { String ip = "192.168.1.7";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java
Stopwatch s = Stopwatch.createStarted(); // here is where you would do something total += s.elapsed(NANOSECONDS); } return total; } @Benchmark long manual(int reps) { long total = 0; for (int i = 0; i < reps; i++) { long start = System.nanoTime(); // here is where you would do something total += System.nanoTime() - start; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 1.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java
Stopwatch s = Stopwatch.createStarted(); // here is where you would do something total += s.elapsed(NANOSECONDS); } return total; } @Benchmark long manual(int reps) { long total = 0; for (int i = 0; i < reps; i++) { long start = System.nanoTime(); // here is where you would do something total += System.nanoTime() - start; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/EmptyIteratorTest.java
throw new RuntimeException(e); } }, "EmptyIterator should work with try-with-resources"); } @Test @DisplayName("EmptyIterator should work with manual iteration") void testManualIteration() { // When & Then assertDoesNotThrow(() -> { int count = 0; while (emptyIterator.hasNext()) { emptyIterator.next();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java
public static final byte SMB2_SHARE_TYPE_PIPE = 0x2; /** * Share type constant for printer shares. */ public static final byte SMB2_SHARE_TYPE_PRINT = 0x3; /** * Share flag indicating manual caching of documents. */ public static final int SMB2_SHAREFLAG_MANUAL_CACHING = 0x0; /** * Share flag indicating automatic caching of documents. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/util/EncdecTest.java
void testStringOperations() { // Given String testString = "Hello"; byte[] buffer = new byte[testString.length()]; // When - Manual string encoding using individual bytes byte[] strBytes = testString.getBytes(); System.arraycopy(strBytes, 0, buffer, 0, strBytes.length); // Then String decoded = new String(buffer);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HMACT64Test.java
byte[] result = hmac.engineDigest(); // Verify it produces a valid MD5 hash (16 bytes) assertNotNull(result); assertEquals(16, result.length); // Calculate the same using manual HMACT64 algorithm byte[] expectedResult = calculateHMACT64Manually(key, data); assertArrayEquals(expectedResult, result); } @Test void testHMACT64WithEmptyData() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
// Test manual caching setPrivateField(response, "shareFlags", Smb2TreeConnectResponse.SMB2_SHAREFLAG_MANUAL_CACHING); assertEquals(Smb2TreeConnectResponse.SMB2_SHAREFLAG_MANUAL_CACHING, response.getShareFlags(), "Should handle manual caching flag"); // Test auto caching
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
byte[] actual = NtlmUtil.getNTLMv2Response(key, server, clientChallenge, nanos1601, avPairs); // Assert assertArrayEquals(expected, actual, "Computed response must match manual construction"); // Also verify client challenge sits at mac(16) + blob offset 16 assertArrayEquals(clientChallenge, Arrays.copyOfRange(actual, 16 + 16, 16 + 16 + 8)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
SidResolver mockResolver; @BeforeEach void setup() { lenient().when(mockCtx.getSIDResolver()).thenReturn(mockResolver); } @Test @DisplayName("Manual resolve calls resolver with this SID") void testResolveManual() throws Exception { // Arrange SID sid = new SID("S-1-5-21-1"); // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0)