- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for generateFresh (0.17 sec)
-
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
String[] a1 = generator.generateFresh(String[].class); String[] a2 = generator.generateFresh(String[].class); assertFalse(a1[0].equals(a2[0])); } public void testPrimitiveArray() { FreshValueGenerator generator = new FreshValueGenerator(); int[] a1 = generator.generateFresh(int[].class); int[] a2 = generator.generateFresh(int[].class); assertTrue(a1[0] != a2[0]); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 17.2K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
String[] a1 = generator.generateFresh(String[].class); String[] a2 = generator.generateFresh(String[].class); assertFalse(a1[0].equals(a2[0])); } public void testPrimitiveArray() { FreshValueGenerator generator = new FreshValueGenerator(); int[] a1 = generator.generateFresh(int[].class); int[] a2 = generator.generateFresh(int[].class); assertTrue(a1[0] != a2[0]); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 18.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
* </ul> */ final @Nullable Object generateFresh(TypeToken<?> type) { Object generated = generate(type); if (generated != null) { freshness.incrementAndGet(); } return generated; } final <T> @Nullable T generateFresh(Class<T> type) { return Primitives.wrap(type).cast(generateFresh(TypeToken.of(type))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 28.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
* </ul> */ final @Nullable Object generateFresh(TypeToken<?> type) { Object generated = generate(type); if (generated != null) { freshness.incrementAndGet(); } return generated; } final <T> @Nullable T generateFresh(Class<T> type) { return Primitives.wrap(type).cast(generateFresh(TypeToken.of(type))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 28.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
tester.addEqualityGroup(instance, createInstance(factory, equalArgs)); for (int i = 0; i < params.size(); i++) { List<Object> newArgs = Lists.newArrayList(args); Object newArg = argGenerators.get(i).generateFresh(params.get(i).getType()); if (newArg == null || Objects.equal(args.get(i), newArg)) { if (params.get(i).getType().getRawType().isEnum()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:18:12 UTC 2024 - 32.7K bytes - Viewed (0)