- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 62 for getResult (0.1 sec)
-
guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java
assertFalse(future.isCancelled()); ExecutorService executor = Executors.newSingleThreadExecutor(); try { Future<Boolean> getResult = executor.submit(() -> future.get()); // Release the future value. latch.countDown(); assertTrue(getResult.get(10, SECONDS)); } finally { executor.shutdownNow(); } assertTrue(future.isDone()); assertFalse(future.isCancelled());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 18:30:30 UTC 2023 - 6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
} return true; } @Override public List<String> getResult() { return collector; } }; Files.readLines(temp, UTF_8, collectNonEmptyLines); assertThat(collectNonEmptyLines.getResult()).containsExactly("hello", " world ").inOrder(); assertTrue(temp.delete()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 22.1K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
if (iLoggerFactory instanceof org.apache.maven.logging.api.LogLevelRecorder recorder && recorder.hasReachedMaxLevel()) { event.getSession() .getResult() .addException( new Exception("Build failed due to log statements with a higher severity than allowed. "
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 17.2K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
validateOptionalProjects(request, session); validateOptionalProfiles(session, request.getProfileActivation()); if (session.getResult().hasExceptions()) { addExceptionToResult(result, session.getResult().getExceptions().get(0)); persistResumptionData(result, session); return result; } else {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 27.5K bytes - Viewed (1) -
android/guava-tests/test/com/google/common/io/CharSourceTester.java
public boolean processLine(String line) throws IOException { list.add(line); return true; } @Override public List<String> getResult() { return list; } }); assertExpectedLines(list); } public void testReadLines_withProcessor_stopsOnFalse() throws IOException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
int seen; @Override public boolean processLine(String line) { seen++; return false; } @Override public Integer getResult() { return seen; } }; assertEquals( "processLine was called more than once", 1, CharStreams.readLines(r, alwaysFalse).intValue());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
int seen; @Override public boolean processLine(String line) { seen++; return false; } @Override public Integer getResult() { return seen; } }; assertEquals( "processLine was called more than once", 1, CharStreams.readLines(r, alwaysFalse).intValue());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
public boolean processLine(String line) throws IOException { list.add(line); return true; } @Override public List<String> getResult() { return list; } }); assertEquals(ImmutableList.of("foo", "bar", "baz", "something"), list); assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.4K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LineProcessor.java
@CanIgnoreReturnValue // some uses know that their processor never returns false boolean processLine(String line) throws IOException; /** Return the result of processing all the lines. */ @ParametricNullness T getResult();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcBind.java
static String getResultMessage(int result) { return result < 4 ? result_message[result] : "0x" + jcifs.smb1.util.Hexdump.toHexString(result, 4); } public DcerpcException getResult() { if (result != 0) return new DcerpcException(getResultMessage(result)); return null; } DcerpcBinding binding; int max_xmit, max_recv; public DcerpcBind() {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 3.2K bytes - Viewed (0)