- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 2,828 for exception (0.06 seconds)
-
src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java
assertTrue(exception instanceof RuntimeException); assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } @Test public void test_stackTrace() { // Test that stack trace is properly captured ThemeException exception = new ThemeException("Stack trace test"); assertNotNull(exception.getStackTrace());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8.4K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java
@NullUnmarked public class SingleThreadAbstractFutureBenchmark { @Param Impl impl; private final Exception exception = new Exception(); private Facade<?> notDoneFuture; @BeforeExperiment void setUp() throws Exception { notDoneFuture = impl.newFacade(); } @Benchmark public long timeComplete_Normal(int reps) throws Exception { long r = 0; List<Facade<Integer>> list = new ArrayList<>(reps);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.7K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java
import org.codelibs.core.beans.BeanDesc; import org.codelibs.core.beans.MethodDesc; import org.codelibs.core.exception.MethodNotStaticRuntimeException; import org.junit.Test; /** * @author koichik * */ public class MethodDescTest { /** * @throws Exception */ @Test public void testFoo() throws Exception { final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 3.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
assertNotNull(result); assertSame(allocation, result); } @Test void testGetInfoWithClass_Incompatible() throws Exception { // Test getInfo with incompatible class throws exception response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION); // Set info to SmbInfoAllocation
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
when(response.getHeaderStart()).thenReturn(0); SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, bufferIndex), "Should throw exception for unknown quota info class"); assertTrue(exception.getMessage().contains("Unknown quota info class")); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.5K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/LookupException.java
/** * The Exception class throw by the {@link Lookup} service. * * @since 4.0.0 */ @Experimental public class LookupException extends MavenException { public LookupException(String message) { super(message); } /** * @param message the message to give * @param e the {@link Exception} */Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 25 21:57:56 GMT 2025 - 1.4K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/TransportExceptionTest.java
@DisplayName("Test default constructor creates exception with null message") public void testDefaultConstructor() { // Create exception with default constructor TransportException exception = new TransportException(); // Verify the exception is created and has no message assertNotNull(exception); assertNull(exception.getMessage()); assertNull(exception.getCause());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java
} @Test public void test_constructor_withServletExceptionWithCause() { // Create a root cause exception String rootCauseMessage = "Root cause error"; Exception rootCause = new Exception(rootCauseMessage); // Create a ServletException with the root cause String servletErrorMessage = "Servlet error with cause";Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
void testNullConfigurationThrowsException() throws Exception { // Given Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class); constructor.setAccessible(true); // When & Then InvocationTargetException exception = assertThrows(InvocationTargetException.class, () -> constructor.newInstance(null, 1));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java
Exception exception = new RuntimeException("test"); UncheckedExecutionException e = assertThrows( UncheckedExecutionException.class, () -> timeLimiter.callWithTimeout(callableThrowing(exception), DELAY_MS, MILLISECONDS)); assertThat(e).hasCauseThat().isEqualTo(exception); } public void testCallUninterruptiblyWithTimeout_propagatesReturnValue() throws Exception { String result =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4.1K bytes - Click Count (0)