- Sort Score
- Num 10 results
- Language All
Results 1091 - 1100 of 3,637 for throwIf (0.08 seconds)
-
okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt
val routes = mutableListOf<Route>() fun onlyResponse() = responses.single() fun onlyRoute() = routes.single() @Throws(IOException::class) override fun authenticate( route: Route?, response: Response, ): Request? { if (route == null) throw NullPointerException("route == null") responses += response routes += route if (!schemeMatches(response) || credential == null) return null
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
* @param sourceIp the source IP address * @return true if attempt is allowed, false if rate limited * @throws SmbException if account is locked out */ public boolean checkAttempt(String username, String sourceIp) throws SmbException { if (closed.get()) { throw new IllegalStateException("Rate limiter is closed"); } // Check global rate limitCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponse.java
* * @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; if (len < 24) { throw new SMBProtocolDecodingException("Invalid resume key"); } this.resumeKey = new byte[24];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (3) -
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
assertThrows(SMBProtocolDecodingException.class, () -> securityDescriptor.decode(testBuffer, 0, testBuffer.length), "Should throw exception for ACE count > 4096"); } @Test @DisplayName("Test getType returns correct value") void testGetType() throws SMBProtocolDecodingException { // Prepare buffer with specific type value testBuffer[0] = 0x01; // revision
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java
if (isDone()) { throw new TimeoutException(message + " but future completed as timeout expired"); } throw new TimeoutException(message + " for " + futureToString); } @ParametricNullness @SuppressWarnings("nullness") // TODO(b/147136275): Remove once our checker understands & and |. final V blockingGet() throws InterruptedException, ExecutionException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 33.2K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
* @throws GeneralSecurityException if a cryptographic error occurs * @throws CIFSException if a CIFS protocol error occurs */ public Type3Message(final CIFSContext tc, final Type2Message type2, final String targetName, final String password, final String domain, final String user, final String workstation, final int flags) throws GeneralSecurityException, CIFSException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 32.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
outputStream.close(); // When & Then - after close, tmp is null so write(int) will throw NullPointerException // This is the actual behavior of the implementation assertThrows(NullPointerException.class, () -> outputStream.write(65)); } @Test void testWriteNullArray() throws CIFSException { // Given when(mockTreeHandle.isSMB2()).thenReturn(true);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/IndexExportJobTest.java
private Path tempDir; @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); indexExportJob = new IndexExportJob(); tempDir = Files.createTempDirectory("indexExportJobTest"); } @Override protected void tearDown(TestInfo testInfo) throws Exception { deleteRecursive(tempDir); super.tearDown(testInfo); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 09:08:38 GMT 2026 - 66.1K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java
@BeforeEach void setUp() throws Exception { source = new Source(); projectArtifact = createArtifactSpec("project", "1.0", null); } @Test @Disabled("works, but we don't fail on cycles presently") void testCircularDependencyNotIncludingCurrentProject() throws ArtifactResolutionException, InvalidVersionSpecificationException {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 43K bytes - Click Count (0)