- Sort Score
- Num 10 results
- Language All
Results 1651 - 1660 of 1,693 for assertEquals (0.07 seconds)
-
android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
* * @param escaper the non-null escaper to test */ public static void assertBasic(Escaper escaper) throws IOException { // Escapers operate on characters: no characters, no escaping. Assert.assertEquals("", escaper.escape("")); // Assert that escapers throw null pointer exceptions. try { escaper.escape((String) null); Assert.fail("exception not thrown when escaping a null string");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 3.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
* * @param escaper the non-null escaper to test */ public static void assertBasic(Escaper escaper) throws IOException { // Escapers operate on characters: no characters, no escaping. Assert.assertEquals("", escaper.escape("")); // Assert that escapers throw null pointer exceptions. try { escaper.escape((String) null); Assert.fail("exception not thrown when escaping a null string");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 3.8K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
public void testInstantiate_noConstantEnum() throws Exception { assertThat(tester.instantiate(NoConstantEnum.class)).isNull(); } public void testInstantiate_oneConstantEnum() throws Exception { assertEquals(OneConstantEnum.A, tester.instantiate(OneConstantEnum.class)); } public void testInstantiate_interface() throws Exception { assertThat(tester.instantiate(Runnable.class)).isNull(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 36.3K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java
Assertions.assertTrue(invokerRequest.userProperties().containsKey("user.property")); Assertions.assertEquals("yes it is", invokerRequest.userProperties().get("user.property")); // maven installation Assertions.assertTrue(invokerRequest.systemProperties().containsKey("maven.property")); Assertions.assertEquals("yes it is", invokerRequest.systemProperties().get("maven.property")); } @Test
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 4.2K bytes - Click Count (0) -
build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/ElasticsearchTestBasePluginFuncTest.groovy
given: file("src/test/java/acme/SomeTests.java").text = """ public class SomeTests { @org.junit.Test public void testSysInput() { org.junit.Assert.assertEquals("bar", System.getProperty("foo")); } } """ buildFile.text = """ plugins { id 'java' id 'elasticsearch.test-base' }Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 1.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java
public void assertSuccess(Object expectedData) throws Throwable { // Verify that the listener executed in a reasonable amount of time. Assert.assertTrue(countDownLatch.await(1L, SECONDS)); try { Assert.assertEquals(expectedData, future.get()); } catch (ExecutionException e) { throw e.getCause(); } } /** * Verify that the listener completes in a reasonable amount of time, and Asserts that the future
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri May 12 18:12:42 GMT 2023 - 3K bytes - Click Count (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt
println("Protocol ${response.version}") println("Response ${response.code}") println("${response.body.bodyText.substring(0, 20)}...") Assert.assertEquals(ProtocolVersion("HTTP", 2, 0), response.version) } } } object LoggingCallback : FutureCallback<SimpleHttpResponse> { override fun completed(response: SimpleHttpResponse) { }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Feb 07 06:56:34 GMT 2026 - 2.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java
public void assertSuccess(Object expectedData) throws Throwable { // Verify that the listener executed in a reasonable amount of time. Assert.assertTrue(countDownLatch.await(1L, SECONDS)); try { Assert.assertEquals(expectedData, future.get()); } catch (ExecutionException e) { throw e.getCause(); } } /** * Verify that the listener completes in a reasonable amount of time, and Asserts that the future
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri May 12 18:12:42 GMT 2023 - 3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/SerializableTester.java
*/ @CanIgnoreReturnValue public static <T> T reserializeAndAssert(T object) { T copy = reserialize(object); new EqualsTester().addEqualityGroup(object, copy).testEquals(); Assert.assertEquals(object.getClass(), copy.getClass()); return copy; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 4.1K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt
.forwardOutput() .withArguments(*args) protected fun assertChangesProperlyOrdered() { val result = run(":verifyAcceptedApiChangesOrdering").build() Assertions.assertEquals(TaskOutcome.SUCCESS, result.task(":verifyAcceptedApiChangesOrdering")!!.outcome) } protected fun assertHasMisorderedChanges(changes: List<Change>? = null) { val standardError = StringWriter()
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Nov 29 14:03:44 GMT 2024 - 6K bytes - Click Count (0)