- Sort Score
- Num 10 results
- Language All
Results 651 - 660 of 3,804 for throws (0.06 seconds)
-
src/test/java/jcifs/smb/SmbSessionImplTest.java
verify(transport, times(1)).acquire(); assertTrue(session.isInUse()); } @Test @DisplayName("getSessionKey: throws when absent, returns when present") void testGetSessionKey() throws Exception { SmbSessionImpl session = newSession(); // Absent key -> CIFSException CIFSException noKey = assertThrows(CIFSException.class, session::getSessionKey);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/CrawlerTest.java
} @Override protected void tearDown(TestInfo testInfo) throws Exception { super.tearDown(testInfo); // Clear static fields clearStaticFields(); } private void clearStaticFields() throws Exception { Field runningField = Crawler.class.getDeclaredField("running"); runningField.setAccessible(true);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 30.8K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeWorkflowIntegrationTest.java
// This test mainly verifies no exceptions are thrown } @Test @DisplayName("should handle malformed POM gracefully") void shouldHandleMalformedPomGracefully() throws Exception { Path pomFile = tempDir.resolve("pom.xml"); String malformedPom = "<?xml version=\"1.0\"?><project><invalid></project>";Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 9.3K bytes - Click Count (0) -
compat/maven-settings/src/main/java/org/apache/maven/settings/io/xpp3/SettingsXpp3Writer.java
* @param writer a writer object. * @param settings a settings object. * @throws IOException java.io.IOException if any. */ public void write(Writer writer, Settings settings) throws IOException { try { delegate.write(writer, settings.getDelegate()); } catch (XMLStreamException e) { throw new IOException("Error writing settings to " + writer, e); } } /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 2.5K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivatorTest.java
return props; } @Test void testNullSafe() throws Exception { Profile p = Profile.newInstance(); assertActivation(false, p, newContext(null, null)); p = p.withActivation(Activation.newInstance()); assertActivation(false, p, newContext(null, null)); } @Test void testPrefix() throws Exception { Profile profile = newProfile("1.4");Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 9.1K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java
*/ class KerberosEncDataTest { /** * Test constructor with a valid token. * * @throws IOException if an I/O error occurs * @throws PACDecodingException if a PAC decoding error occurs * @throws UnknownHostException if the IP address is not found */ @Test void testConstructor() throws IOException, PACDecodingException, UnknownHostException { // Build a sample Kerberos EncData structureCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.7K bytes - Click Count (0) -
build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/SymbolicLinkPreservingTarIT.java
public void testGZipTar() throws IOException { runBuild("buildGZipTar", true); assertTar(".gz", GzipCompressorInputStream::new, true); } public void testGZipTarDoNotPreserveFileTimestamps() throws IOException { runBuild("buildGZipTar", false); assertTar(".gz", GzipCompressorInputStream::new, false); } public void testTar() throws IOException { runBuild("buildTar", true);Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 6.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java
} public void initTreeProcessing(PlexusContainer plexus) throws ComponentLookupException { classpathTransformation = plexus.lookup(ClasspathTransformation.class); conflictResolver = plexus.lookup(GraphConflictResolver.class); } // ---------------------------------------------------------------------------- public MetadataGraph getGraph() throws MetadataResolutionException {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java
default -> null; // Or throw an exception if unexpected token }; } /** * Parses array values from JSON parser. * * @param jsonParser the JSON parser * @return the parsed array as a list * @throws IOException if an I/O error occurs */ protected Object parseArray(final JsonParser jsonParser) throws IOException {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Dec 14 01:18:25 GMT 2025 - 16.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/exception/SRuntimeExceptionTest.java
import static org.junit.Assert.assertThat; import org.junit.Test; /** * @author higa * */ public class SRuntimeExceptionTest { /** * @throws Exception */ @Test public void testSeasarRuntimeException() throws Exception { final ClRuntimeException ex = new ClRuntimeException("ECL0001", asArray("hoge")); assertThat(ex.getMessageCode(), is("ECL0001"));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.6K bytes - Click Count (0)