- Sort Score
- Num 10 results
- Language All
Results 351 - 360 of 2,828 for exception (0.06 seconds)
-
src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java
} @Test void testRoundTripEncodeDecodeForRequestType() throws Exception { TestMessage m = new TestMessage(); m.ptype = 0; // Request type NdrBuffer buf = new NdrBuffer(new byte[1024], 0); m.encode(buf); buf.setIndex(0); // Decode will throw exception as ptype 0 is not a valid response type assertThrows(NdrException.class, () -> m.decode(buf));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/SuggestHelperTest.java
try { helper.init(); assertNotNull(helper.suggester()); } catch (Exception e) { assertTrue(true); } } @Test public void test_suggester() { try { assertNull(suggestHelper.suggester()); } catch (Exception e) { assertTrue(true); } } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 16.3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
import org.codelibs.core.exception.EmptyArgumentException; import org.codelibs.core.exception.NoSuchConstructorRuntimeException; import org.codelibs.core.exception.NoSuchFieldRuntimeException; import org.junit.Test; /** * @author higa */ public class ClassUtilTest { /** */ public static final String HOGE = "hoge"; /** * @throws Exception */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/test/java/org/codelibs/core/misc/DisposableUtilTest.java
private int count; private String names = ""; /** * @throws Exception */ @Before public void setUp() throws Exception { DisposableUtil.dispose(); } /** * @throws Exception */ @Test public void test1() throws Exception { DisposableUtil.add(new TestDisposable("a")); assertThat(DisposableUtil.disposables.size(), is(1));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 3.3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/exception/SRuntimeExceptionTest.java
final ClRuntimeException ex = new ClRuntimeException("ECL0001", asArray("hoge")); assertThat(ex.getMessageCode(), is("ECL0001")); assertThat(ex.getArgs().length, is(1)); assertThat(ex.getArgs()[0], is((Object) "hoge")); System.out.println(ex.getMessage()); } /** * @throws Exception */ @Test public void testGetCause() throws Exception {
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) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
void mockInteraction_stubsThrow_andVerifiesInvocation() { // Arrange: Since SmbUnsupportedOperationException is a checked exception (extends IOException), // we need to use a method that can throw checked exceptions or wrap it in a RuntimeException @SuppressWarnings("unchecked") Supplier<String> supplier = mock(Supplier.class);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/WebApiUtil.java
} /** * Sets an error in the current request with the specified status code and exception. * * @param statusCode The HTTP status code * @param e The exception that caused the error */ public static void setError(final int statusCode, final Exception e) { LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(WEB_API_EXCEPTION, new WebApiException(statusCode, e)));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 3.2K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsProblem.java
* @param columnNumber The one-based index of the column containing the problem or {@code -1} if unknown. * @param exception The exception that caused this problem, may be {@code null}. */ public DefaultSettingsProblem( String message, Severity severity, String source, int lineNumber, int columnNumber, Exception exception) { this.message = message; this.severity = (severity != null) ? severity : Severity.ERROR;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 4.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java
try { validator.initialize(annotation); assertTrue("Initialize should complete without exception", true); } catch (final Exception e) { fail("Initialize should not throw exception with valid annotation: " + e.getMessage()); } } // Test parameter validation without relying on complex configuration @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NbtExceptionTest.java
NbtException exception = new NbtException(errorClass, errorCode); assertEquals(errorClass, exception.errorClass, "Error class should match the constructor argument"); assertEquals(errorCode, exception.errorCode, "Error code should match the constructor argument"); assertEquals(NbtException.getErrorString(errorClass, errorCode), exception.getMessage(),
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0)