- Sort Score
- Num 10 results
- Language All
Results 761 - 770 of 3,804 for throws (0.13 seconds)
-
src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java
/** * Decodes a single notification from the NDR buffer. * * @param buf the NDR buffer * @return the decoded notification * @throws NdrException if decoding fails */ private WitnessNotificationResponse decodeNotification(NdrBuffer buf) throws NdrException { WitnessNotificationResponse notification = new WitnessNotificationResponse(); // Notification typeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 16.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
assertNotNull(info); assertTrue(info instanceof FileBasicInfo); } @Test @DisplayName("Test getInfo with incompatible type throws CIFSException") void testGetInfoWithIncompatibleType() throws Exception { response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO); // Simulate setting info through readDataWireFormat
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuilder.java
* @return The result of the model building, never {@code null}. * @throws ModelBuildingException If the effective model could not be built. */ ModelBuildingResult build(ModelBuildingRequest request) throws ModelBuildingException; /** * Builds the effective model by completing the specified interim result which was produced by a previous call toCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 2.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java
class SmbFilenameFilterTest { @Test void acceptReturnsTrueWhenNameMatches() throws Exception { SmbFile dir = Mockito.mock(SmbFile.class); SmbFilenameFilter filter = (d, n) -> n.equalsIgnoreCase("hello.txt"); assertTrue(filter.accept(dir, "Hello.TXT")); } @Test void acceptReturnsFalseWhenNameDoesNotMatch() throws Exception { SmbFile dir = Mockito.mock(SmbFile.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
// Should either throw exception or fail gracefully after close try { digest.sign(data, 0, data.length, request, response); // If no exception is thrown, the operation should have been no-op or handled gracefully assertTrue(true, "Sign operation after close should either throw exception or handle gracefully");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 43.7K bytes - Click Count (0) -
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
/** * @throws Exception */ @Test(expected = EmptyArgumentException.class) public void testForName_EmptyName() throws Exception { ClassUtil.forName(""); } /** * @throws Exception */ @Test(expected = EmptyArgumentException.class) public void testGetField_EmptyName() throws Exception { ClassUtil.getField(getClass(), ""); }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 6.2K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/SessionServicePacket.java
int i = 0, n; while (i < len) { n = in.read(b, off + i, len - i); if (n <= 0) { break; } i += n; } return i; } static int readPacketType(final InputStream in, final byte[] buffer, final int bufferIndex) throws IOException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
@Test void testFailureWithNoAlternativeChannels() throws Exception { failedChannel.addPendingOperation(mockOperation); when(mockLoadBalancer.selectChannel(mockOperation)).thenThrow(new ChannelLoadBalancer.NoAvailableChannelException("No channels")); IOException error = new IOException("Connection failed"); // Should not throw exception even if no alternative channelsCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/Ordering.java
* @throws NoSuchElementException if {@code iterator} is empty * @throws ClassCastException if the parameters are not <i>mutually comparable</i> under this * ordering. * @since 11.0 */ @ParametricNullness public <E extends T> E min(Iterator<E> iterator) { // let this throw NoSuchElementException as necessary E minSoFar = iterator.next();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 39.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestWriter.java
private final TestOutputStream out; public TestWriter(TestOption... options) throws IOException { this(new TestOutputStream(ByteStreams.nullOutputStream(), options)); } public TestWriter(TestOutputStream out) { super(new OutputStreamWriter(checkNotNull(out), UTF_8)); this.out = out; } @Override public void write(int c) throws IOException { super.write(c);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.7K bytes - Click Count (0)