- Sort Score
- Num 10 results
- Language All
Results 441 - 450 of 6,205 for new1 (0.04 seconds)
-
guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
assertThat(new String(buf)).isEqualTo(expected); assertFullyRead(reader); // read in chunks to fixed array reader = new CharSequenceReader(charSequence); buf = new char[5]; StringBuilder builder = new StringBuilder(); int read; while ((read = reader.read(buf, 0, buf.length)) != -1) { builder.append(buf, 0, read); } assertThat(builder.toString()).isEqualTo(expected);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 6.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java
* * @author Kevin Bourrillion */ @GwtIncompatible public class TestsForMapsInJavaUtil { public static Test suite() { return new TestsForMapsInJavaUtil().allTests(); } public Test allTests() { TestSuite suite = new TestSuite("java.util Maps"); suite.addTest(testsForCheckedMap()); suite.addTest(testsForCheckedNavigableMap()); suite.addTest(testsForCheckedSortedMap());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Dec 16 03:23:31 GMT 2025 - 21.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
if (is == null) { throw new IOException("Resource not found: non/existent/resource.json"); } // This line should not be reached new String(is.readAllBytes(), StandardCharsets.UTF_8); fail("Should throw IOException for missing resource"); }
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 9.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
@AndroidIncompatible // test-suite builders public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(ImmutableMultisetTest.class); suite.addTest( MultisetTestSuiteBuilder.using( new TestStringMultisetGenerator() { @Override protected Multiset<String> create(String[] elements) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 20.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
@BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); Properties props = new Properties(); config = new PropertyConfiguration(props); } @Test void testConstructor() { // Test constructor with SMB_INFO_ALLOCATION response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION); assertNotNull(response);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
void testEncodeSizeConsistency() { // Given byte[] sourceKey = new byte[SOURCE_KEY_SIZE]; Arrays.fill(sourceKey, (byte) 0x55); SrvCopychunk[] testCases = { new SrvCopychunk(1, 2, 3), new SrvCopychunk(4, 5, 6), new SrvCopychunk(7, 8, 9), new SrvCopychunk(10, 11, 12), new SrvCopychunk(13, 14, 15) };
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 23.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
.createTestSuite(); } private static String[] dedupe(String[] elements) { Set<String> tmp = new LinkedHashSet<>(); Collections.addAll(tmp, elements); return tmp.toArray(new String[0]); } static <T> Comparator<T> arbitraryNullFriendlyComparator() { return new NullFriendlyComparator<>(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 19.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java
BigDecimal maxDoubleAsBigDecimal = new BigDecimal(Double.MAX_VALUE); new RoundToDoubleTester(maxDoubleAsBigDecimal) .setExpectation(Double.MAX_VALUE, RoundingMode.values()) .test(); } public void testRoundToDouble_maxDoublePlusOne() { BigDecimal maxDoubleAsBigDecimal = new BigDecimal(Double.MAX_VALUE).add(BigDecimal.ONE); new RoundToDoubleTester(maxDoubleAsBigDecimal)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 11K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java
ClassLoader customClassLoader = new URLClassLoader(new URL[0], null) { @Override public Class<?> loadClass(String name) throws ClassNotFoundException { if ("org.apache.commons.httpclient.MultiThreadedHttpConnectionManager".equals(name)) { // Simulate class not found throw new ClassNotFoundException(name); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java
private final TearDownStack tearDownStack = new TearDownStack(); private TestThread<Monitor> thread1; private TestThread<Monitor> thread2; protected MonitorTestCase(boolean interruptible) { this.interruptible = interruptible; } @Override protected final void setUp() throws Exception { boolean fair = new Random().nextBoolean(); monitor = new Monitor(fair);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 8.1K bytes - Click Count (0)