- Sort Score
- Num 10 results
- Language All
Results 401 - 410 of 2,367 for Exceptions (0.06 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
} public void testSetFailure() throws Exception { assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); } public void testSetFailureNull() throws Exception { assertThrows(NullPointerException.class, () -> future.setException(null)); assertFalse(future.isDone()); assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 17:49:12 GMT 2025 - 7.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java
public void metadataInvalid(RepositoryEvent event) { Exception exception = event.getException(); Object metadata; if (event.getMetadata().getFile() != null) { metadata = event.getMetadata().getFile(); } else { metadata = event.getMetadata(); } String errorType = " is invalid"; if (exception instanceof FileNotFoundException) {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/SuggestIndexResponseTest.java
assertEquals(0, response.getErrors().size()); } @Test public void test_constructorWithErrors() throws Exception { List<Throwable> errors = new ArrayList<>(); errors.add(new Exception("Test error 1")); errors.add(new Exception("Test error 2")); SuggestIndexResponse response = new SuggestIndexResponse(10, 5, errors, 100); assertNotNull(response);
Created: Sat Dec 20 13:04:59 GMT 2025 - Last Modified: Thu Nov 13 00:40:54 GMT 2025 - 4.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequestTest.java
runner.ensureYellow(); } @AfterClass public static void afterClass() throws Exception { runner.close(); runner.clean(); } @Before public void before() throws Exception { runner.admin().indices().prepareDelete("_all").execute().actionGet(); runner.refresh();
Created: Sat Dec 20 13:04:59 GMT 2025 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 6.9K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java
DcerpcException exception = new DcerpcException(message, cause); assertEquals(0, exception.getErrorCode(), "Error code should be 0 for message and cause constructor."); assertEquals(message, exception.getMessage(), "Message should match the input."); assertEquals(cause, exception.getCause(), "Cause should match the input.");
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K 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: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.5K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacCredentialTypeTest.java
* Tests the constructor with a null byte array, which should throw an exception. */ @Test void testConstructorWithNullData() { // A null byte array should cause a PACDecodingException. PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacCredentialType(null)); assertEquals("Invalid PAC credential type", exception.getMessage()); } /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.9K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
} public void testNoEqualsChecksOnEnum() throws Exception { tester.testEquals(OneConstantEnum.class); tester.testEquals(NoConstantEnum.class); tester.testEquals(TimeUnit.class); } public void testNoEqualsChecksOnInterface() throws Exception { tester.testEquals(Runnable.class); } public void testNoEqualsChecksOnAnnotation() throws Exception { tester.testEquals(MyAnnotation.class); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 36.3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/text/TokenizerTest.java
* */ public class TokenizerTest { /** * @throws Exception */ @Test public void testEOF() throws Exception { final Tokenizer tokenizer = new Tokenizer(""); assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF)); assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF)); } /** * @throws Exception */ @TestCreated: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/PropertiesUtilTest.java
import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Writer; import java.net.URL; import java.util.Properties; import org.codelibs.core.exception.IORuntimeException; import org.codelibs.core.exception.NullArgumentException; import org.codelibs.core.net.URLUtil; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder;
Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 9.6K bytes - Click Count (0)