- Sort Score
- Num 10 results
- Language All
Results 401 - 410 of 492 for RuntimeException (0.32 seconds)
-
src/test/java/jcifs/http/NtlmServletTest.java
transportContextField.setAccessible(true); transportContextField.set(ntlmServlet, cifsContext); } catch (Exception e) { throw new RuntimeException("Failed to inject mock CIFSContext", e); } when(cifsContext.getTransportPool()).thenReturn(transportPool); when(cifsContext.getNameServiceClient()).thenReturn(nameServiceClient);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SIDTest.java
byte[] bytes = new byte[1 + 1 + 6]; bytes[0] = 1; // revision bytes[1] = (byte) 101; // invalid count // Act + Assert RuntimeException ex = assertThrows(RuntimeException.class, () -> new SID(bytes, 0)); assertTrue(ex.getMessage().contains("Invalid SID sub_authority_count")); } @Test
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/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
lengthField.setAccessible(true); lengthField.setInt(this, length); } catch (Exception e) { throw new RuntimeException(e); } } @Override protected int readBytesWireFormat(byte[] buffer, int bufferIndex) { return 0; } @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
return false; } TesterRequirements requirements; try { requirements = FeatureUtil.getTesterRequirements(method); } catch (ConflictingRequirementsException e) { throw new RuntimeException(e); } if (!features.containsAll(requirements.getPresentFeatures())) { if (logger.isLoggable(FINER)) { Set<Feature<?>> missingFeatures = copyToSet(requirements.getPresentFeatures());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 10.4K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
* @throws IOException */ @Test void testHandshakeThrowsRuntimeExceptionOnFailure() throws Exception { // Arrange when(mockConnection.getHeaderField(0)).thenThrow(new RuntimeException("Connection failed")); doNothing().when(mockConnection).connect(); // Act & Assert assertThrows(RuntimeCIFSException.class, () -> { ntlmConnection.getResponseCode();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.6K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/Striped64.java
} throw new NoSuchFieldError("the Unsafe"); } }); } catch (PrivilegedActionException e) { throw new RuntimeException("Could not initialize intrinsics", e.getCause()); } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 15 22:17:15 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/util/HMACT64Test.java
mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5); byte[] innerDigest = "inner_digest".getBytes(); when(mockMd5.digest()).thenReturn(innerDigest); doThrow(new RuntimeException("Test Exception")).when(mockMd5).digest(any(byte[].class), anyInt(), anyInt()); HMACT64 hmac = new HMACT64(TEST_KEY);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
private static SID sid(String textual) { try { return new SID(textual); } catch (SmbException e) { throw new RuntimeException(e); } } @Test @DisplayName("resolveSids(DcerpcHandle,...) populates acct, domain and type for known types") void resolveSids_populatesFields_happyPath() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java
fields.add(new ListField(currentField)); } else if (Collection.class.isAssignableFrom(type)) { throw new RuntimeException("We dont interpolate into collections, use a list instead"); } else if (Map.class.isAssignableFrom(type)) { fields.add(new MapField(currentField));
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 15.6K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
} catch (cnfe: ClassNotFoundException) { false } val isCorrettoSupported: Boolean = try { // Trigger an early exception over a fatal error, prefer a RuntimeException over Error. Class.forName("com.amazon.corretto.crypto.provider.AmazonCorrettoCryptoProvider") AmazonCorrettoCryptoProvider.INSTANCE.loadingError == null &&
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 15.5K bytes - Click Count (1)