- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 3,282 for throwIt (0.06 seconds)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/SimplexTransferListenerTest.java
throw new TransferCancelledException(); } @Override public void transferProgressed(TransferEvent event) throws TransferCancelledException { throw new TransferCancelledException(); } @Override public void transferCorrupted(TransferEvent event) throws TransferCancelledException {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Feb 06 11:28:05 GMT 2025 - 5.1K bytes - Click Count (0) -
src/main/java/jcifs/util/PathValidator.java
* @return normalized safe path * @throws SmbException if path is invalid or dangerous */ public String validatePath(String path) throws SmbException { if (path == null || path.isEmpty()) { throw new SmbException("Path cannot be null or empty"); } // Check length if (path.length() > maxPathLength) {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
} throw new CIFSException("Loop in DFS referrals"); } /** * @param loc * @return tree handle * @throws SmbException */ public SmbTreeHandleImpl connectWrapException(final SmbResourceLocatorImpl loc) throws SmbException { try { return connect(loc); } catch (final SmbException se) { throw se;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 30.4K bytes - Click Count (1) -
src/test/java/jcifs/SmbResourceTest.java
void testDelete() throws CIFSException { // When/Then assertDoesNotThrow(() -> mockResource.delete(), "Delete operation should not throw exception"); verify(mockResource).delete(); } @Test @DisplayName("copy operation should work correctly") void testCopyTo() throws CIFSException { // Given
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0) -
src/test/java/jcifs/spnego/SpnegoTokenTest.java
void parseSetsMechanismToken() throws IOException { TestSpnegoToken t = new TestSpnegoToken(); byte[] raw = new byte[] { 5, 6 }; t.parse(raw); assertTrue(t.isParsed(), "parse should mark parsed"); assertArrayEquals(raw, t.getMechanismToken(), "parse should set mechanismToken"); } @Test @DisplayName("parse throws IOException on null input") void parseThrowsOnNull() {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileTest.java
// Assert - should not throw exception when file exists } } @Nested class WhenHandlingConnections { @Test void testConnect() throws IOException { // Arrange doNothing().when(smbFile).connect(); // Act smbFile.connect(); // Assert - should not throw exception }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
void testGetDialectRevision() throws Exception { // Given setPrivateField(response, "dialectRevision", 0x0311); // When int dialect = response.getDialectRevision(); // Then assertEquals(0x0311, dialect); } @Test @DisplayName("Should return server GUID") void testGetServerGuid() throws Exception { // Given
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 32.5K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
monitor.leave(); } } /** * @throws UnsupportedOperationException {@inheritDoc} * @throws ClassCastException {@inheritDoc} * @throws NullPointerException {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} */ @CanIgnoreReturnValue @Override public int drainTo(Collection<? super E> c) { if (c == null) throw new NullPointerException();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 22.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
void ensureDFSResolved_throws() throws Exception { // Arrange: configure the mock to throw doThrow(new CIFSException("DFS resolution failed")).when(handle).ensureDFSResolved(); // Act + Assert: exception is propagated with message CIFSException ex = assertThrows(CIFSException.class, () -> handle.ensureDFSResolved());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
docs/recipes.md
private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { RequestBody requestBody = new RequestBody() { @Override public MediaType contentType() { return MEDIA_TYPE_MARKDOWN; } @Override public void writeTo(BufferedSink sink) throws IOException { sink.writeUtf8("Numbers\n"); sink.writeUtf8("-------\n");Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 17:01:12 GMT 2025 - 47.8K bytes - Click Count (0)