- Sort Score
- Result 10 results
- Languages All
Results 601 - 610 of 1,456 for created (0.08 sec)
-
SetCreationTester.java
n.class, () -> collection = getSubjectGenerator().create(array)); L72: } L73: L74: @CollectionFeature.Require(REJECTS_DUPLICATES_AT_CREATION) L75: @CollectionSize.Require(absent = {ZERO, ONE}) L76: public void testCreateWithDuplicates_nonNullDuplicatesRejected() { L77: E[] array = createSamplesArray(); L78: array[1] = e0(); L79: assertThrows( L80: IllegalArgumentException.class, () -> collection = getSubjectGenerator().create(array)); L81: } L82:}...github.com/google/guava/guava-testlib/src/com/g...Sat Oct 19 00:05:46 UTC 2024 3.4K bytes -
AdminDictStemmeroverrideAction.java
L280: // Actually Crud L281: // ------------- L282: @Execute L283: @Secured({ ROLE }) L284: public HtmlResponse create(final CreateForm form) { L285: verifyCrudMode(form.crudMode, CrudMode.CREATE, form.dictId); L286: validate(form, messages -> {}, this::asEditHtml); L287: verifyToken(this::asEditHtml); L288: createStemmerOverrideItem(form, this::asEditHtml).ifPresent(entity ->...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 18.6K bytes -
AdminElevatewordAction.java
L256: // Actually Crud L257: // ------------- L258: @Execute L259: @Secured({ ROLE }) L260: public HtmlResponse create(final CreateForm form) { L261: verifyCrudMode(form.crudMode, CrudMode.CREATE); L262: validate(form, messages -> {}, this::asEditHtml); L263: verifyToken(this::asEditHtml); L264: getElevateWord(form).ifPresent(entity -> { L265: try { L266: ...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 18.7K bytes -
TestsForMapsInJavaUtil.java
return NavigableMapTestSuiteBuilder.using( L396: new TestStringSortedMapGenerator() { L397: @Override L398: protected SortedMap<String, String> create(Entry<String, String>[] entries) { L399: /* L400: * TODO(cpovirk): it would be nice to create an input Map and use L401: * the copy constructor here and in the other tests L402: */ L403: return populate(new TreeMap<String, String>(),...github.com/google/guava/guava-testlib/src/com/g...Wed Oct 30 16:15:19 UTC 2024 21.6K bytes -
AbstractFutureTest.java
) throws Exception { L211: // Two futures should not have the same toString, to avoid people asserting on it L212: assertThat(SettableFuture.create().toString()).isNotEqualTo(SettableFuture.create().toString()); L213: } L214: L215: public void testToString_oom() throws Exception { L216: SettableFuture<Object> future = SettableFuture.create(); L217: future.set( L218: new Object() { L219: @Override L220: public String toString() { L221: throw new OutOfMemoryError();...github.com/google/guava/android/guava-tests/tes...Fri Oct 18 22:10:29 UTC 2024 47.1K bytes -
SubscriberTest.java
int.class); L90: Method concat = String.class.getMethod("concat", String.class); L91: new EqualsTester() L92: .addEqualityGroup( L93: Subscriber.create(bus, "foo", charAt), Subscriber.create(bus, "foo", charAt)) L94: .addEqualityGroup(Subscriber.create(bus, "bar", charAt)) L95: .addEqualityGroup(Subscriber.create(bus, "foo", concat)) L96: .testEquals(); L97: } L98: L99: private Method getTestSubscriberMethod(String name) { L100: try { L101: return getC...github.com/google/guava/android/guava-tests/tes...Wed Sep 06 17:04:31 UTC 2023 4.8K bytes -
UnmodifiableListIteratorTest.java
@SuppressWarnings("DoNotCall") L36: public void testRemove() { L37: Iterator<String> iterator = create(); L38: L39: assertTrue(iterator.hasNext()); L40: assertEquals("a", iterator.next()); L41: assertThrows(UnsupportedOperationException.class, () -> iterator.remove()); L42: } L43: L44: @SuppressWarnings("DoNotCall") L45: public void testAdd() { L46: ListIterator<String> iterator = create(); L47: L48: assertTrue(iterator.hasNext()); L49: assertEquals("a", iterator.next()); L50:...github.com/google/guava/android/guava-tests/tes...Tue Oct 15 17:36:06 UTC 2024 2.8K bytes -
HashBiMapTest.java
L45:public class HashBiMapTest extends TestCase { L46: L47: public static final class HashBiMapGenerator extends TestStringBiMapGenerator { L48: @Override L49: protected BiMap<String, String> create(Entry<String, String>[] entries) { L50: BiMap<String, String> result = HashBiMap.create(); L51: for (Entry<String, String> entry : entries) { L52: result.put(entry.getKey(), entry.getValue()); L53: } L54: return result; L55: } L56: } L57: L58: @J2ktIncompatible...github.com/google/guava/guava-tests/test/com/go...Sat Oct 19 00:05:46 UTC 2024 8.3K bytes -
UncheckedExecutionException.java
rNull String message) { L73: super(message); L74: } L75: L76: /** L77: * Creates a new instance with the given detail message and cause. Prefer to provide a L78: * non-nullable {@code cause}, as many users expect to find one. L79: */ L80: public UncheckedExecutionException(@CheckForNull String message, @CheckForNull Throwable cause) { L81: super(message, cause); L82: } L83: L84: /** L85: * Creates a new instance with {@code null} as its detail message and the given cause. Prefer...github.com/google/guava/guava/src/com/google/co...Thu Mar 07 17:52:19 UTC 2024 4.1K bytes -
ImmutableMultisetFloodingTest.java
@Override L45: public ImmutableMultiset<Object> create(List<?> keys) { L46: return ImmutableMultiset.copyOf(keys); L47: } L48: }, L49: COPY_OF_ITERATOR { L50: @Override L51: public ImmutableMultiset<Object> create(List<?> keys) { L52: return ImmutableMultiset.copyOf(keys.iterator()); L53: } L54: }, L55: BUILDER_ADD_ENTRY_BY_ENTRY { L56: @Override L57: public ImmutableMultiset<Object> create(List<?> keys) { L58: ImmutableMultiset.Builder<Object>...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 2.4K bytes