- Sort Score
- Result 10 results
- Languages All
Results 1071 - 1080 of 3,054 for throws (0.04 sec)
-
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
@DisplayName("Invalid: resolving class by null name throws NPE") void testClassForNameWithNull() { // Intent: demonstrate defensive behavior with null when resolving this type by name assertThrows(NullPointerException.class, () -> Class.forName(null)); } @Test @DisplayName("Happy path: class is loadable via fully qualified name") void testClassForName() throws Exception { // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
} @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create echo request with correct command") void testConstructor() throws Exception { Smb2EchoRequest request = new Smb2EchoRequest(mockConfig); assertNotNull(request); // Verify command is set to SMB2_ECHO (0x000D)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
} /** * Test FileInformation as Decodable */ @Test @DisplayName("Test FileInformation decode method") void testFileInformationDecode() throws SMBProtocolDecodingException { // Create mock FileInformation mockFileInfo = mock(FileInformation.class); byte[] buffer = new byte[100]; // Define behavior
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerTest.java
@Mock private ToolchainFactory toolchainFactoryBasicType; @Mock private ToolchainFactory toolchainFactoryRareType; @Mock private Lookup lookup; @BeforeEach void onSetup() throws Exception { MockitoAnnotations.initMocks(this); Map<String, ToolchainFactory> factories = new HashMap<>(); factories.put("basic", toolchainFactoryBasicType);
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 11K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/DefaultArtifactResolverTest.java
private Artifact projectArtifact; @BeforeEach @Override public void setUp() throws Exception { super.setUp(); projectArtifact = createLocalArtifact("project", "3.0"); } @Override protected String component() { return "resolver"; } @Test void testMNG4738() throws Exception { Artifact g = createLocalArtifact("g", "1.0");
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 3.1K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java
.build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } public static void main(String... args) throws Exception { new PostMultipart().run(); }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jun 24 12:59:42 UTC 2019 - 2.2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/guide/GetExample.java
final OkHttpClient client = new OkHttpClient(); String run(String url) throws IOException { Request request = new Request.Builder() .url(url) .build(); try (Response response = client.newCall(request).execute()) { return response.body().string(); } } public static void main(String[] args) throws IOException { GetExample example = new GetExample();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 1.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java
throw new IOException("Interrupted during retry delay", e); } } } } // All retries failed if (lastError instanceof IOException) { throw (IOException) lastError; } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/EncodingHelper.java
* * @param defaultEncoding the default encoding to set * @throws IllegalArgumentException if the default encoding is blank */ public void setDefaultEncoding(final String defaultEncoding) { if (StringUtil.isBlank(defaultEncoding)) { throw new IllegalArgumentException("Default encoding must not be blank."); } this.defaultEncoding = defaultEncoding;
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java
return 0; } /** * {@inheritDoc} * * @throws SMBProtocolDecodingException if an error occurs during decoding * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0)