- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 185 for TestToString (0.43 seconds)
-
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java
byte[] buffer = new byte[100]; int consumed = pipe.readDataWireFormat(buffer, 0, 10); assertEquals(0, consumed, "readDataWireFormat should return 0"); } @Test public void testToString() { // Test the toString method String pipeName = "\\\\pipe\\testPipe"; TransWaitNamedPipe pipe = new TransWaitNamedPipe(pipeName); String result = pipe.toString();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
assertEquals(0, response.readBytesWireFormat(buffer, bufferIndex)); } /** * Test of toString method, of class SmbComQueryInformationResponse. */ @Test public void testToString() { String result = response.toString(); assertNotNull(result); assertTrue(result.startsWith("SmbComQueryInformationResponse[")); assertTrue(result.contains("fileAttributes=0x0000"));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java
public void testBigDouble() throws Exception { assertEquals("12500000", BigDecimalConversionUtil.toBigDecimal(12500000D).toString()); } /** * @throws Exception */ public void testToString() throws Exception { final BigDecimal d = new BigDecimal(new BigInteger("125"), -1); assertEquals("1250", BigDecimalConversionUtil.toString(d)); }
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Fri Jun 20 13:40:57 GMT 2025 - 4.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java
public void testDelegate() { assertEquals(LIST1, ImmutableList.copyOf(newDelegatingList(LIST1))); assertEquals(LIST1, ImmutableList.copyOf(newDelegatingListWithEquals(LIST1))); } public void testToString() { List<String> proxy = newDelegatingList(LIST1); assertThat(proxy.toString()).isEqualTo(Proxy.getInvocationHandler(proxy).toString()); } interface A {} interface B {}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
// Then assertEquals(0, bytesRead, "Should read 0 bytes."); } /** * Tests the toString method. */ @Test void testToString() { // Given String filename = "test.txt"; int informationLevel = 257; // 0x0101 Trans2QueryPathInformation trans = new Trans2QueryPathInformation(filename, informationLevel);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
public void testEquals() { boolean unused = create().equals(new HashMap<String, Integer>()); } public void testHashCode() { int unused = create().hashCode(); } public void testToString() { String unused = create().toString(); } public void testSerialization() { SerializableTester.reserializeAndAssert(create()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
assertEquals(1, task.get().intValue()); assertEquals(1, counter.get()); } executor.shutdown(); } @J2ktIncompatible @GwtIncompatible // blocking wait public void testToString() throws Exception { CountDownLatch enterLatch = new CountDownLatch(1); CountDownLatch exitLatch = new CountDownLatch(1); TrustedListenableFutureTask<@Nullable Void> task =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/StopwatchTest.java
ticker.advance(1); assertEquals(1, stopwatch.elapsed(MILLISECONDS)); } @J2ktIncompatible // TODO(b/259213718): Switch J2kt to String.format("%.4g") once that's supported public void testToString() { stopwatch.start(); assertThat(stopwatch.toString()).isEqualTo("0.000 ns"); ticker.advance(1); assertThat(stopwatch.toString()).isEqualTo("1.000 ns"); ticker.advance(998);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
assertThrows(IllegalStateException.class, hasher::hash); } @SuppressWarnings("deprecation") // We still need to test our deprecated APIs. public void testToString() { assertThat(md5().toString()).isEqualTo("Hashing.md5()"); assertThat(sha1().toString()).isEqualTo("Hashing.sha1()"); assertThat(sha256().toString()).isEqualTo("Hashing.sha256()");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 4.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/EnumMultisetTest.java
} public void testCreateEmptyWithoutClassFails() { assertThrows( IllegalArgumentException.class, () -> EnumMultiset.create(ImmutableList.<Color>of())); } public void testToString() { Multiset<Color> ms = EnumMultiset.create(Color.class); ms.add(Color.BLUE, 3); ms.add(Color.YELLOW, 1); ms.add(Color.RED, 2); assertThat(ms.toString()).isEqualTo("[BLUE x 3, RED x 2, YELLOW]");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.1K bytes - Click Count (0)