- Sort Score
- Result 10 results
- Languages All
Results 2451 - 2460 of 4,816 for newE (0.05 sec)
-
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/ParameterMetaDataTest.groovy
import spock.lang.Specification class ParameterMetaDataTest extends Specification { def "formats signature"() { MethodMetaData method = Mock() def parameter = new ParameterMetaData('param') def type = new TypeMetaData('org.gradle.SomeType') parameter.type = type expect: parameter.signature == 'org.gradle.SomeType param' }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 1K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesJsonFileManager.groovy
class AcceptedApiChangesJsonFileManager { void emptyAcceptedApiChanges(File jsonFile) { jsonFile.withWriter { fileWriter -> def writer = new JsonWriter(fileWriter) writer.setIndent(" ") new Gson().toJson([acceptedApiChanges: []], Object, writer) writer.close() } }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 1K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
assertEquals( InetAddresses.fromLittleEndianByteArray(new byte[] {1, 2, 3, 4}), InetAddress.getByAddress(new byte[] {4, 3, 2, 1})); assertEquals( InetAddresses.fromLittleEndianByteArray( new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}), InetAddress.getByAddress( new byte[] {16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 35.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java
public void testIterator() { List<E> iteratorElements = new ArrayList<>(); for (E element : collection) { // uses iterator() iteratorElements.add(element); } assertEqualIgnoringOrder(asList(createSamplesArray()), iteratorElements); } @CollectionFeature.Require(KNOWN_ORDER) public void testIterationOrdering() { List<E> iteratorElements = new ArrayList<>(); for (E element : collection) { // uses iterator()
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/EnumMultisetTest.java
new ClassSanityTester() .setDistinctValues(Class.class, Color.class, Gender.class) .setDistinctValues(Enum.class, Color.BLUE, Color.RED) .forAllPublicStaticMethods(EnumMultisetFactory.class) .testEquals(); } @J2ktIncompatible @GwtIncompatible // reflection public void testNulls() throws Exception { new NullPointerTester()
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ReflectionFreeAssertThrows.java
return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but returned result: " + result); } else {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:43:49 UTC 2024 - 7K bytes - Viewed (0) -
utils/utils_test.go
func TestAssertEqual(t *testing.T) { now := time.Now() assertEqualTests := []struct { name string src, dst interface{} out bool }{ {"error equal", errors.New("1"), errors.New("1"), true}, {"error not equal", errors.New("1"), errors.New("2"), false}, {"driver.Valuer equal", ModifyAt{Time: now, Valid: true}, ModifyAt{Time: now, Valid: true}, true},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.9K bytes - Viewed (0) -
internal/logger/target/http/http.go
if !ok { break drain } logChBuffers[newTgt.Name()] <- v default: break drain } } } } } // New initializes a new logger target which // sends log over http to the specified endpoint func New(config Config) (*Target, error) { maxWorkers := maxWorkers if config.BatchSize > 100 { maxWorkers = maxWorkersWithBatchEvents } else if config.BatchSize <= 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 11 22:20:42 UTC 2024 - 15.6K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/RelationshipTesterTest.java
/** * Tests for {@link RelationshipTester}. * * @author Ben Yu */ public class RelationshipTesterTest extends TestCase { public void testNulls() { new ClassSanityTester() .setDefault(ItemReporter.class, new ItemReporter()) .testNulls(RelationshipTester.class); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Apr 21 02:27:51 UTC 2017 - 1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/query/DefaultQueryBuilderTest.java
public void test_invalid_null() { try { new DefaultQueryBuilder(null); fail(); } catch (IllegalArgumentException e) { // nothing } } public void test_invalid_query() { try { new DefaultQueryBuilder(QueryBuilders.matchAllQuery()); fail(); } catch (IllegalArgumentException e) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Jul 11 08:26:36 UTC 2024 - 1.2K bytes - Viewed (0)