- Sort Score
- Result 10 results
- Languages All
Results 571 - 580 of 1,434 for created (0.04 sec)
-
TreeBasedTableTest.java
@Override L96: protected TreeBasedTable<String, Integer, Character> create(@Nullable Object... data) { L97: TreeBasedTable<String, Integer, Character> table = TreeBasedTable.create(); L98: table.put("foo", 4, 'a'); L99: table.put("cat", 1, 'b'); L100: table.clear(); L101: populate(table, data); L102: return table; L103: } L104: L105: public void testCreateExplicitComparators() { L106: table = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString()); L107: ...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 15K bytes -
SettableFutureTest.java
throws Exception { L109: SettableFuture<String> future = SettableFuture.create(); L110: SettableFuture<String> nested = SettableFuture.create(); L111: assertTrue(future.setFuture(nested)); L112: // Later attempts to set the future should return false. L113: assertFalse(future.set("x")); L114: assertFalse(future.setException(new Exception("bar"))); L115: assertFalse(future.setFuture(SettableFuture.<String>create())); L116: // Check that the future has been set properly. L117: ...github.com/google/guava/guava-tests/test/com/go...Fri Oct 18 22:10:29 UTC 2024 7.3K bytes -
TreeRangeSetTest.java
testInvariantsEmpty() { L189: testInvariants(TreeRangeSet.create()); L190: } L191: L192: public void testEmptyIntersecting() { L193: testIntersects(TreeRangeSet.<Integer>create()); L194: testIntersects(TreeRangeSet.<Integer>create().complement()); L195: } L196: L197: public void testAllSingleRangesIntersecting() { L198: for (Range<Integer> range : QUERY_RANGES) { L199: TreeRangeSet<Integer> rangeSet = TreeRangeSet.create(); L200: rangeSet.add(range); L201: testIntersects(rangeSet);...github.com/google/guava/android/guava-tests/tes...Sat Oct 19 00:05:46 UTC 2024 24.3K bytes -
MultimapEqualsTester.java
L46: .addEqualityGroup(multimap(), getSubjectGenerator().create(getSampleElements().toArray())) L47: .testEquals(); L48: } L49: L50: public void testEqualsFalse() { L51: List<Entry<K, V>> targetEntries = new ArrayList<>(getSampleElements()); L52: targetEntries.add(mapEntry(k0(), v3())); L53: new EqualsTester() L54: .addEqualityGroup(multimap()) L55: .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray())) L56: .testEquals(); L57: } L58:...github.com/google/guava/android/guava-testlib/s...Wed Oct 30 16:15:19 UTC 2024 3.5K bytes -
ArrayListMultimapTest.java
Multimap<String, Integer> original = HashMultimap.create(); L153: ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original); L154: assertEquals(3, multimap.expectedValuesPerKey); L155: } L156: L157: public void testCreateFromArrayListMultimap() { L158: ArrayListMultimap<String, Integer> original = ArrayListMultimap.create(15, 20); L159: ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original); L160: assertEquals(20, multimap.expectedValuesPerKey);...github.com/google/guava/guava-tests/test/com/go...Tue Oct 15 17:36:06 UTC 2024 6.5K bytes -
SynchronizedNavigableMapTest.java
testLastEntry() { L356: create().lastEntry(); L357: } L358: L359: public void testLastKey() { L360: NavigableMap<String, Integer> map = create(); L361: map.put("a", 1); L362: map.lastKey(); L363: } L364: L365: public void testLowerEntry() { L366: create().lowerEntry("a"); L367: } L368: L369: public void testLowerKey() { L370: create().lowerKey("a"); L371: } L372: L373: public void testNavigableKeySet() { L374: NavigableMap<String, Integer> map = create(); L375: NavigableSet<String>...github.com/google/guava/guava-tests/test/com/go...Wed Jul 24 22:09:38 UTC 2024 12.2K bytes -
TestEnumSetGenerator.java
SampleElements<AnEnum> samples() { L36: return new Enums(); L37: } L38: L39: @Override L40: public Set<AnEnum> create(Object... elements) { L41: AnEnum[] array = new AnEnum[elements.length]; L42: int i = 0; L43: for (Object e : elements) { L44: array[i++] = (AnEnum) e; L45: } L46: return create(array); L47: } L48: L49: protected abstract Set<AnEnum> create(AnEnum[] elements); L50: L51: @Override L52: public AnEnum[] createArray(int length) { L53: return new AnEnum[length];...github.com/google/guava/guava-testlib/src/com/g...Wed Oct 30 16:15:19 UTC 2024 1.7K 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 -
ArrayListMultimapTest.java
Multimap<String, Integer> original = HashMultimap.create(); L153: ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original); L154: assertEquals(3, multimap.expectedValuesPerKey); L155: } L156: L157: public void testCreateFromArrayListMultimap() { L158: ArrayListMultimap<String, Integer> original = ArrayListMultimap.create(15, 20); L159: ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original); L160: assertEquals(20, multimap.expectedValuesPerKey);...github.com/google/guava/android/guava-tests/tes...Tue Oct 15 17:36:06 UTC 2024 6.5K bytes