- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 234 for serupa (0.4 sec)
-
guava-tests/test/com/google/common/io/ByteSinkTest.java
* * @author Colin Decker */ public class ByteSinkTest extends IoTestCase { private final byte[] bytes = newPreFilledByteArray(10000); private TestByteSink sink; @Override protected void setUp() throws Exception { sink = new TestByteSink(); } public void testOpenBufferedStream() throws IOException { OutputStream out = sink.openBufferedStream(); assertTrue(sink.wasStreamOpened());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 3.7K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
private EqualsTester equalsTester; private ValidTestObject equalObject1; private ValidTestObject equalObject2; private ValidTestObject notEqualObject1; @Override public void setUp() throws Exception { super.setUp(); reference = new ValidTestObject(1, 2); equalsTester = new EqualsTester(); equalObject1 = new ValidTestObject(1, 2); equalObject2 = new ValidTestObject(1, 2);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 17 15:49:06 GMT 2023 - 12.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java
// Use a constant seed for all of the benchmarks to ensure apples to apples comparisons. private static final int RANDOM_SEED = new Random().nextInt(); private byte[] testBytes; @BeforeExperiment void setUp() { testBytes = new byte[size]; new Random(RANDOM_SEED).nextBytes(testBytes); } @Benchmark byte hashing(int reps) { byte result = 0x01; HashMethod hashMethod = this.hashMethod;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/NullCacheTest.java
* * @author mike nonemacher */ public class NullCacheTest extends TestCase { QueuingRemovalListener<Object, Object> listener; @Override protected void setUp() { listener = queuingRemovalListener(); } public void testGet() { Object computed = new Object(); LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() .maximumSize(0)
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4.4K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/TearDownStackTest.java
} assertEquals(true, tearDownOne.ran); assertEquals(true, tearDownTwo.ran); } @Override public final void runBare() throws Throwable { try { setUp(); runTest(); } finally { tearDown(); } } @Override protected void tearDown() { tearDownStack.runTearDown(); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 15:19:38 GMT 2023 - 4.6K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java
private static final int[] positive = new int[ARRAY_SIZE]; private static final int[] nonnegative = new int[ARRAY_SIZE]; private static final int[] ints = new int[ARRAY_SIZE]; @BeforeExperiment void setUp() { for (int i = 0; i < ARRAY_SIZE; i++) { exponent[i] = randomExponent(); factorial[i] = RANDOM_SOURCE.nextInt(50); binomial[i] = RANDOM_SOURCE.nextInt(factorial[i] + 1);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java
} }; abstract boolean doEquals(byte[] a, byte[] b); } private byte[] testBytesA; private byte[] testBytesB; @BeforeExperiment void setUp() { testBytesA = new byte[size]; random.nextBytes(testBytesA); testBytesB = Arrays.copyOf(testBytesA, size); int indexToDifferAt = -1; switch (whereToDiffer) { case ONE_PERCENT_IN:
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java
int size; // use concrete classes to remove any possible polymorphic overhead? Object[] array; ArrayList<Object> arrayList; LinkedList<Object> linkedList; @BeforeExperiment void setUp() { array = new Object[size]; arrayList = Lists.newArrayListWithCapacity(size); linkedList = Lists.newLinkedList(); for (int i = 0; i < size; i++) { Object value = new Object();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java
} }; abstract boolean doEquals(byte[] a, byte[] b); } private byte[] testBytesA; private byte[] testBytesB; @BeforeExperiment void setUp() { testBytesA = new byte[size]; random.nextBytes(testBytesA); testBytesB = Arrays.copyOf(testBytesA, size); int indexToDifferAt = -1; switch (whereToDiffer) { case ONE_PERCENT_IN:
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
private ClassLoader oldClassLoader; private URLClassLoader classReloader; private Class<?> settableFutureClass; private Class<?> abstractFutureClass; @Override protected void setUp() throws Exception { // Load the "normal" copy of SettableFuture and related classes. SettableFuture<?> unused = SettableFuture.create();
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.1K bytes - Viewed (0)