- Sort Score
- Result 10 results
- Languages All
Results 491 - 500 of 2,541 for throwIt (0.05 sec)
-
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
} @Test void testInvalidPath() throws Exception { // Test various invalid URL formats that should throw MalformedURLException assertThrows(MalformedURLException.class, () -> new SmbFile("not-a-url", context), "Invalid URL should throw MalformedURLException"); } @Test void testPublicShareAccess() throws Exception {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
assertFalse(target.isOpen()); assertTrue(target.isStale()); } @Test @DisplayName("getInput and getOutput throw after close") void testGetInputOutputAndClosed() throws CIFSException { // After closing the handle, further calls throw target.close(); CIFSException e1 = assertThrows(SmbException.class, target::getInput);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SID.java
* * @param textual the textual representation of the SID * @throws SmbException if the textual format is invalid */ public SID(final String textual) throws SmbException { final StringTokenizer st = new StringTokenizer(textual, "-"); if (st.countTokens() < 3 || !st.nextToken().equals("S")) { // need S-N-M throw new SmbException("Bad textual SID format: " + textual); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.5K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvPairsTest.java
}); assertEquals("Missing AvEOL", exception.getMessage(), "Should throw exception for truncated data"); } /** * Test decode with unknown AvPair type */ @Test @DisplayName("Decode unknown AvPair type as generic AvPair") void testDecodeUnknownType() throws CIFSException { byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 }; int unknownType = 0xFF;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
@DisplayName("Constructor: invalid mode throws IllegalArgumentException") void constructor_invalidMode_throws() { SmbFile file = mock(SmbFile.class); assertThrows(IllegalArgumentException.class, () -> new SmbRandomAccessFile(file, "badmode")); } @Test @DisplayName("open(): acquires and releases handle (no I/O)") void open_acquiresAndReleasesHandle() throws Exception {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
guava/src/com/google/common/math/LongMath.java
* * @throws IllegalArgumentException if {@code x <= 0} * @throws ArithmeticException of the next-higher power of two is not representable as a {@code * long}, i.e. when {@code x > 2^62} * @since 20.0 */ public static long ceilingPowerOfTwo(long x) { checkPositive("x", x); if (x > MAX_SIGNED_POWER_OF_TWO) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 03 21:01:09 UTC 2025 - 46.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
bindWithNullBinding.encode_in(mockBuffer); }, "Should throw NullPointerException when binding is null"); } @Test @DisplayName("encode_in should use default constructor values") void testEncodeInDefaultConstructor() throws Exception { // Given DcerpcBind defaultBind = new DcerpcBind();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
/** * Verifies that the close method can be called without throwing an exception. * @throws CIFSException if an error occurs during close. */ @Test public void testClose() throws CIFSException { assertDoesNotThrow(() -> smbPipeHandle.close(), "close() should not throw an exception on a mock object."); // Verify that the close method was calledRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java
this.shouldSucceed = shouldSucceed; } @Override protected boolean performReconnection(HandleInfo info) throws Exception { if (shouldSucceed) { return true; } else { throw new IOException("Simulated reconnection failure"); } } public void testCreateReconnectionRequest(HandleInfo handle) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java
new ByteSource() { @Override public InputStream openStream() throws IOException { if (counter[0]++ != 0) { throw new IllegalStateException("More than one source open"); } return new FilterInputStream(source.openStream()) { @Override public void close() throws IOException { super.close(); counter[0]--;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 4.7K bytes - Viewed (0)