- Sort Score
- Num 10 results
- Language All
Results 381 - 390 of 785 for EXPECTED (0.04 seconds)
-
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/ConfigurationExtensions.kt
import java.io.File fun Configuration.getSingleFileProvider(): Provider<File> { val name = this.name return incoming.files.elements.map { require(it.size <= 1) { "Expected at most one file in configuration '$name' but found: $it" } it.firstOrNull()?.asFile } } fun NamedDomainObjectProvider<Configuration>.getSingleFileProvider(): Provider<File> {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Aug 18 18:02:41 GMT 2025 - 1.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java
List<E> iteratorElements = new ArrayList<>(); for (E element : collection) { // uses iterator() iteratorElements.add(element); } List<E> expected = copyToList(getOrderedElements()); assertEquals("Different ordered iteration", expected, iteratorElements); } @CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testIterator_nullElement() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.1K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
*/ public void testCreateCustomFilter_NullPatterns() { try { SerializeUtil.createCustomFilter(null); fail("Expected IllegalArgumentException"); } catch (final IllegalArgumentException e) { // Expected } } /** * Test serialization with empty array * * @throws Exception */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 7.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertTrue( from.getType() + " is expected to be assignable to " + to.getType(), to.isSupertypeOf(from)); assertTrue( to.getType() + " is expected to be a supertype of " + from.getType(), to.isSupertypeOf(from)); assertTrue( from.getType() + " is expected to be a subtype of " + to.getType(), from.isSubtypeOf(to)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java
assertBitEquals(1.0, at.get()); for (double x : VALUES) { at.lazySet(x); assertBitEquals(x, at.get()); } } /** compareAndSet succeeds in changing value if equal to expected else fails */ public void testCompareAndSet() { double prev = Math.E; double unused = Math.E + Math.PI; AtomicDouble at = new AtomicDouble(prev); for (double x : VALUES) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 10.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTesterTest.java
public void testFailsToForward() { try { ForwardingObjectTester.testForwardingObject(FailToForward.class); } catch (AssertionError | UnsupportedOperationException expected) { // UnsupportedOperationException is what we see on Android. return; } fail("Should have thrown"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 1.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateDefaultAtomicHelperTest.java
import com.google.common.annotations.J2ktIncompatible; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests that {@link AggregateFutureState} uses the expected {@code AtomicHelper} implementation. * * <p>We have more thorough testing of {@code AtomicHelper} implementations in {@link * AggregateFutureStateFallbackAtomicHelperTest}. The advantage to this test is that it can runCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 1.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java
public class CollectionStreamTester<E> extends AbstractCollectionTester<E> { /* * We're not really testing the implementation of Stream, only that we're getting a Stream * that corresponds to the expected elements. */ @CollectionFeature.Require(absent = KNOWN_ORDER) public void testStreamToArrayUnknownOrder() { Helpers.assertEqualIgnoringOrder(getSampleElements(), asList(collection.stream().toArray())); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 2.3K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
val peekedHeader = reader.peekHeader() ?: throw ProtocolException("expected a value at $reader") val choice = choices.firstOrNull { it.matches(peekedHeader) } ?: throw ProtocolException( "expected a matching choice but was $peekedHeader at $reader", ) return choice to choice.fromDer(reader) }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 29.7K bytes - Click Count (3)