- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 2,773 for throwIt (0.04 sec)
-
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
assertNull(tester.instantiate(Runnable.class)); } public void testInstantiate_abstractClass() throws Exception { assertNull(tester.instantiate(AbstractList.class)); } public void testInstantiate_annotation() throws Exception { assertNull(tester.instantiate(MyAnnotation.class)); } public void testInstantiate_setDefault() throws Exception {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 36.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/HostSpecifierTest.java
} private void assertGood(String spec) throws ParseException { // Throws exception if not working correctly HostSpecifier unused = HostSpecifier.fromValid(spec); unused = HostSpecifier.from(spec); assertTrue(HostSpecifier.isValid(spec)); } private void assertBad(String spec) { try { HostSpecifier.fromValid(spec); fail("Should have thrown IllegalArgumentException: " + spec);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
@Test @DisplayName("read(null) throws NullPointerException") void readNullArrayThrows() throws Exception { SmbFileInputStream in = newStream(); assertThrows(NullPointerException.class, () -> in.read(null)); } @Test @DisplayName("readDirect with len <= 0 returns 0") void readDirectZeroLen() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java
* @return a DCERPC handle for the connection * @throws UnknownHostException if the host cannot be resolved * @throws MalformedURLException if the URL is malformed * @throws DcerpcException if DCERPC initialization fails */ public static DcerpcHandle getHandle(final String url, final NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
// When - should not throw exception response.prepare(mockRequest); // Then - method completes without error assertTrue(true); } @Test @DisplayName("Should verify wire format protocol compliance") void testWireFormatProtocolCompliance() throws SMBProtocolDecodingException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Throwables.java
* throwIfUnchecked(failure); * throw new AssertionError(failure); * } * </pre> * * @since 20.0 */ @GwtIncompatible // Class.cast, Class.isInstance public static <X extends Throwable> void throwIfInstanceOf( Throwable throwable, Class<X> declaredType) throws X { checkNotNull(throwable); if (declaredType.isInstance(throwable)) { throw declaredType.cast(throwable); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
} /** * Test constructor with null configuration */ @Test @DisplayName("Test constructor throws NullPointerException with null configuration") public void testConstructorWithNullConfig() { // When & Then - should throw NullPointerException since ServerMessageBlock calls config.getPid() NullPointerException exception = assertThrows(NullPointerException.class, () -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacMac.java
* @param data the data to calculate the MAC for * @return the calculated MAC bytes * @throws GeneralSecurityException if cryptographic operations fail */ public static byte[] calculateMacArcfourHMACMD5(int keyusage, Key key, byte[] data) throws GeneralSecurityException { int ms_usage = mapArcfourMD5KeyUsage(keyusage); Mac mac = Mac.getInstance("HmacMD5");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java
LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { @Override public Object get(Object key) throws ExecutionException { Object v = valueRef.get(); if (v == null) { throw new ExecutionException(cause); } return v; } @Override public @Nullable Object getIfPresent(Object key) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
public void readFully(byte[] b, int off, int len) throws IOException { ByteStreams.readFully(this, b, off, len); } @Override public int skipBytes(int n) throws IOException { return (int) in.skip(n); } @CanIgnoreReturnValue // to skip a byte @Override public int readUnsignedByte() throws IOException { int b1 = in.read(); if (b1 < 0) { throw new EOFException(); } return b1;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 7.3K bytes - Viewed (0)