- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,545 for toString (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/base/ToStringHelperTest.java
assertThat(helper.toString()).isEqualTo(expected); // Call toString again assertThat(helper.toString()).isEqualTo(expected); // Make sure the cached value is reset when we modify the helper at all String expected2 = "TestClass{field1=1, value1, field2=value2, 2}"; helper.addValue(2); assertThat(helper.toString()).isEqualTo(expected2); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 22K bytes - Click Count (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java
assertTrue(restriction.isLowerBoundInclusive(), CHECK_LOWER_BOUND_INCLUSIVE); assertEquals("1.4", restriction.getUpperBound().toString(), CHECK_UPPER_BOUND); assertTrue(restriction.isUpperBoundInclusive(), CHECK_UPPER_BOUND_INCLUSIVE); restriction = restrictions.get(2); assertEquals("1.5", restriction.getLowerBound().toString(), CHECK_LOWER_BOUND);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sun Mar 30 23:08:36 GMT 2025 - 44.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
assertThat(HashCode.fromBytes(mac.doFinal()).toString()).isEqualTo(knownOutput); assertThat(HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString()) .isEqualTo(knownOutput); assertThat(hmacMd5(MD5_KEY).hashString(input, UTF_8).toString()).isEqualTo(knownOutput); assertThat(hmacMd5(MD5_KEY).hashBytes(input.getBytes(UTF_8)).toString()).isEqualTo(knownOutput); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 14.2K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java
@Override public String toString() { return runnable.toString(); } }); } public void testFailsToForwardToString() { assertFailure( Runnable.class, runnable -> new ForwardingRunnable(runnable) { @Override public String toString() { return ""; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 12.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/DfsReferralTest.java
DfsReferral dfsReferral = new DfsReferral(mockData); // Verify that toString() returns the expected string from the mock data object assertEquals(expectedToString, dfsReferral.toString(), "toString() should return the result of the wrapped DfsReferralData's toString() method."); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.6K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/UnicodeStringTest.java
// Test toString with empty string and zterm = true UnicodeString emptyUnicodeStringTrue = new UnicodeString("", true); assertEquals("", emptyUnicodeStringTrue.toString(), "toString should return empty string for empty input with zterm"); // Test toString with empty string and zterm = falseCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java
public void testToString_minimal() { assertNotNull("toString() should not return null", getMap().toString()); } @CollectionSize.Require(ZERO) @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING) public void testToString_size0() { assertEquals("emptyMap.toString should return {}", "{}", getMap().toString()); } @CollectionSize.Require(ONE)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.5K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcBindingTest.java
assertTrue(result.startsWith(PROTO + ":" + SERVER + "[null,"), "toString should start correctly."); assertTrue(result.contains("connect=80"), "toString should contain connect option."); assertTrue(result.contains("bind=123"), "toString should contain bind option."); } @Test void testToStringWithEndpointAndOptions() throws DcerpcException { String endpoint = "\\pipe\\srvsvc";
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
// toString should include the class name and (if non-null) the message String ts = ex.toString(); assertTrue(ts.contains("SMBProtocolDecodingException"), "toString should include class name"); if (message != null && !message.isEmpty()) { assertTrue(ts.contains(message), "toString should include non-empty message"); } } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/services/RequestImplementationTest.java
assertNotEquals(request1, request3); // Test toString String toString = request1.toString(); assertTrue(toString.contains("coordinates="), "Expected " + toString + " to contain " + "coordinates="); assertTrue(toString.contains("repositories="), "Expected " + toString + " to contain " + "repositories="); } @Test void testRequestTraceIntegration() {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 4.8K bytes - Click Count (0)