- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 101 for IsPresent (0.06 seconds)
-
guava-tests/test/com/google/common/io/ByteSourceTester.java
assertEquals(expected.length, source.size()); } public void testSizeIfKnown() throws IOException { Optional<Long> sizeIfKnown = source.sizeIfKnown(); if (sizeIfKnown.isPresent()) { assertEquals(expected.length, (long) sizeIfKnown.get()); } } public void testContentEquals() throws IOException { assertTrue( source.contentEquals(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 8.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt
* exceptions thrown from the test do not cause this check to fail. */ @RegisterExtension val noDataLeftBehind = AfterEachCallback { context: ExtensionContext -> if (context.executionException.isPresent) return@AfterEachCallback assertThat(data.readByteString().hex(), "Data not empty") .isEqualTo("") } // Mutually exclusive. Use the one corresponding to the peer whose behavior you wish to test.Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 9.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTester.java
assertEquals(expected.length, source.size()); } public void testSizeIfKnown() throws IOException { Optional<Long> sizeIfKnown = source.sizeIfKnown(); if (sizeIfKnown.isPresent()) { assertEquals(expected.length, (long) sizeIfKnown.get()); } } public void testContentEquals() throws IOException { assertTrue( source.contentEquals(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 8.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java
if (!fessConfig.isAdminUser(username)) { final OptionalEntity<FessUser> ldapUser = ComponentUtil.getLdapManager().login(username, password); if (ldapUser.isPresent()) { return ldapUser; } } return doFindLoginUser(username, encryptPassword(password)); });
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 12.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/ResourceUtilTest.java
assertNotNull(confPath); // Should be empty when not docker app type if (!"docker".equalsIgnoreCase(ResourceUtil.getAppType())) { assertFalse(confPath.isPresent()); } } @Test public void test_getFesenHttpUrl() { String url = ResourceUtil.getFesenHttpUrl(); assertNotNull(url);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 11.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Dec 17 16:17:01 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java
final Optional<OperationInfo> result = helper.getOperationInfo("reindex"); assertTrue(result.isPresent()); final OperationInfo info = result.get(); assertEquals("reindex", info.name); assertEquals("node1@host1", info.instanceId); assertEquals("host1", info.hostname);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 58.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ldap/LdapUserTest.java
@Override public void permissionChanged(OptionalThing<FessUserBean> userBean) { activityHelperCalled.set(true); assertTrue(userBean.isPresent()); assertSame(ldapUser, userBean.get().getFessUser()); } }, "activityHelper"); String[] permissions = ldapUser.getPermissions();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16.9K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java
* <p> * <strong>Implementation Note:</strong> The default implementation is equivalent to: * </p> * <pre>{@code * Optional<Path> configured = targetPath(); * if (configured.isPresent() && configured.get().isAbsolute()) { * return configured.get(); * } * Path outputDir = project.getOutputDirectory(scope()); * return configured.map(outputDir::resolve).orElse(outputDir);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 07 13:11:07 GMT 2025 - 14.2K bytes - Click Count (0) -
cmd/common-main.go
} } // Initialize KMS global variable after valiadating and loading the configuration. // It depends on KMS env variables and global cli flags. func handleKMSConfig() { present, err := kms.IsPresent() if err != nil { logger.Fatal(err, "Invalid KMS configuration specified") } if !present { return } KMS, err := kms.Connect(GlobalContext, &kms.ConnectionOptions{
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.5K bytes - Click Count (3)