- Sort Score
- Result 10 results
- Languages All
Results 521 - 530 of 1,434 for created (0.04 sec)
-
HashMultisetTest.java
TestStringMultisetGenerator hashMultisetGenerator() { L65: return new TestStringMultisetGenerator() { L66: @Override L67: protected Multiset<String> create(String[] elements) { L68: return HashMultiset.create(asList(elements)); L69: } L70: }; L71: } L72: L73: public void testCreate() { L74: Multiset<String> multiset = HashMultiset.create(); L75: multiset.add("foo", 2); L76: multiset.add("bar"); L77: assertEquals(3, multiset.size()); L78: assertEquals(2, multiset.count("foo"));...github.com/google/guava/guava-tests/test/com/go...Sat Oct 19 00:05:46 UTC 2024 4.4K bytes -
SynchronizedMapTest.java
correctly. L160: */ L161: L162: public void testSize() { L163: int unused = create().size(); L164: } L165: L166: public void testIsEmpty() { L167: boolean unused = create().isEmpty(); L168: } L169: L170: public void testRemove() { L171: create().remove(null); L172: } L173: L174: public void testClear() { L175: create().clear(); L176: } L177: L178: public void testContainsKey() { L179: boolean unused = create().containsKey(null); L180: } L181: L182: public void testContainsValue()...github.com/google/guava/guava-tests/test/com/go...Tue Aug 06 17:23:04 UTC 2024 5.8K bytes -
MultisetsCollectionTest.java
private static TestStringMultisetGenerator unionGenerator() { L156: return new TestStringMultisetGenerator() { L157: @Override L158: protected Multiset<String> create(String[] elements) { L159: Multiset<String> multiset1 = LinkedHashMultiset.create(); L160: Multiset<String> multiset2 = LinkedHashMultiset.create(); L161: for (int i = 0; i < elements.length; i++) { L162: String element = elements[i]; L163: if (multiset1.contains(element) || multiset2.contains(element))...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 9.6K bytes -
AdminRelatedcontentAction.java
L179: // Actually Crud L180: // ------------- L181: @Execute L182: @Secured({ ROLE }) L183: public HtmlResponse create(final CreateForm form) { L184: verifyCrudMode(form.crudMode, CrudMode.CREATE); L185: validate(form, messages -> {}, this::asEditHtml); L186: verifyToken(this::asEditHtml); L187: getRelatedContent(form).ifPresent(entity -> { L188: try { L189: ...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 13.2K bytes -
AdminBoostdocAction.java
L179: // Actually Crud L180: // ------------- L181: @Execute L182: @Secured({ ROLE }) L183: public HtmlResponse create(final CreateForm form) { L184: verifyCrudMode(form.crudMode, CrudMode.CREATE); L185: validate(form, messages -> {}, this::asEditHtml); L186: verifyToken(this::asEditHtml); L187: getBoostDocumentRule(form).ifPresent(entity -> { L188: try { L189: ...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 13.1K bytes -
BsKeyMatch.java
registerModifiedProperty("boost"); L154: this.boost = value; L155: } L156: L157: public String getCreatedBy() { L158: checkSpecifiedProperty("createdBy"); L159: return convertEmptyToNull(createdBy); L160: } L161: L162: public void setCreatedBy(String value) { L163: registerModifiedProperty("createdBy"); L164: this.createdBy = value; L165: } L166: L167: public Long getCreatedTime() { L168: checkSpecifiedProperty("createdTime"); L169: return createdTime;...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 7.4K bytes -
TestsForQueuesInJavaUtil.java
e() { L92: return emptySet(); L93: } L94: L95: public Test testsForArrayDeque() { L96: return QueueTestSuiteBuilder.using( L97: new TestStringQueueGenerator() { L98: @Override L99: public Queue<String> create(String[] elements) { L100: return new ArrayDeque<>(MinimalCollection.of(elements)); L101: } L102: }) L103: .named("ArrayDeque") L104: .withFeatures( L105: CollectionFeature.GENERAL_PURPOSE,...github.com/google/guava/android/guava-testlib/s...Wed Oct 30 16:15:19 UTC 2024 7.6K bytes -
README.md
: L23: L24:1. Script the mocks. L25:2. Run application code. L26:3. Verify that the expected requests were made. L27: L28:Here's a complete example: L29: L30:```java L31:public void test() throws Exception { L32: // Create a MockWebServer. These are lean enough that you can create a new L33: // instance for every unit test. L34: MockWebServer server = new MockWebServer(); L35: L36: // Schedule some responses. L37: server.enqueue(new MockResponse().setBody("hello, world!")); L38: server.enqueue(new...github.com/square/okhttp/mockwebserver/README.mdSun Dec 17 15:34:10 UTC 2023 5K bytes -
BsDataConfigCQ.java
createdBy, ConditionOptionCall<TermQueryBuilder> opLambda) { L562: TermQueryBuilder builder = regTermQ("createdBy", createdBy); L563: if (opLambda != null) { L564: opLambda.callback(builder); L565: } L566: } L567: L568: public void setCreatedBy_NotEqual(String createdBy) { L569: setCreatedBy_NotTerm(createdBy, null); L570: } L571: L572: public void setCreatedBy_NotTerm(String createdBy) { L573: setCreatedBy_NotTerm(createdBy, null); L574:...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 108.9K bytes -
TreeRangeMapTest.java
{ L733: TreeRangeMap<Integer, Integer> empty = TreeRangeMap.create(); L734: TreeRangeMap<Integer, Integer> nonEmpty = TreeRangeMap.create(); L735: nonEmpty.put(Range.all(), 1); L736: TreeRangeMap<Integer, Integer> coalesced = TreeRangeMap.create(); L737: coalesced.put(Range.atLeast(1), 1); L738: coalesced.putCoalescing(Range.atMost(1), 1); L739: TreeRangeMap<Integer, Integer> differentValues = TreeRangeMap.create(); L740: differentValues.put(Range.closedOpen(1, 2), 2); L741:...github.com/google/guava/android/guava-tests/tes...Sun Oct 06 13:04:03 UTC 2024 29.9K bytes