{"action":"created","comment":{"url":"https://api.github.com/repos/ehcache/ehcache3/pulls/comments/28951654","id":28951654,"diff_hunk":"@@ -0,0 +1,225 @@\n+/*\n+ * Copyright Terracotta, Inc.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.ehcache;\n+\n+import static org.ehcache.EhcacheBasicBulkUtil.KEY_SET_A;\n+import static org.ehcache.EhcacheBasicBulkUtil.KEY_SET_B;\n+import static org.ehcache.EhcacheBasicBulkUtil.KEY_SET_C;\n+import static org.ehcache.EhcacheBasicBulkUtil.KEY_SET_D;\n+import static org.ehcache.EhcacheBasicBulkUtil.fanIn;\n+import static org.ehcache.EhcacheBasicBulkUtil.getAltEntryMap;\n+import static org.ehcache.EhcacheBasicBulkUtil.getEntryMap;\n+import static org.hamcrest.CoreMatchers.is;\n+import static org.junit.Assert.assertThat;\n+import static org.junit.Assert.fail;\n+import static org.mockito.Matchers.any;\n+import static org.mockito.Matchers.argThat;\n+import static org.mockito.Mockito.doThrow;\n+import static org.mockito.Mockito.never;\n+import static org.mockito.Mockito.spy;\n+import static org.mockito.Mockito.times;\n+import static org.mockito.Mockito.verify;\n+\n+import java.util.Collections;\n+import java.util.LinkedHashMap;\n+import java.util.Map;\n+import java.util.Set;\n+import java.util.concurrent.ExecutorService;\n+import java.util.concurrent.Executors;\n+\n+import org.ehcache.event.CacheEvent;\n+import org.ehcache.event.CacheEventListener;\n+import org.ehcache.events.CacheEventNotificationService;\n+import org.ehcache.events.CacheEventNotificationServiceImpl;\n+import org.ehcache.exceptions.CacheAccessException;\n+import org.ehcache.function.Function;\n+import org.ehcache.spi.loaderwriter.CacheLoaderWriter;\n+import org.ehcache.util.IsCreatedOrUpdated;\n+import org.junit.Test;\n+import org.mockito.Mock;\n+import org.slf4j.LoggerFactory;\n+\n+/**\n+ * Provides events based testing for PUT_ALL operations\n+ */\n+@SuppressWarnings(\"ThrowableResultOfMethodCallIgnored\")\n+public class EhcacheBasicPutAllEventsTest extends EhcacheBasicCrudBase{\n+\n+    @Mock\n+    protected CacheLoaderWriter<String, String> cacheLoaderWriter;\n+\n+    @Mock\n+    protected CacheEventListener testCacheEventListener;\n+\n+    protected CacheEventNotificationService cacheEventNotificationService;","path":"core/src/test/java/org/ehcache/EhcacheBasicPutAllEventsTest.java","position":68,"original_position":68,"commit_id":"6c41b59e417d4d1cd23181b5f6795884ab53398b","original_commit_id":"6c41b59e417d4d1cd23181b5f6795884ab53398b","user":{"login":"ljacomet","id":135308,"avatar_url":"https://avatars.githubusercontent.com/u/135308?v=3","gravatar_id":"","url":"https://api.github.com/users/ljacomet","html_url":"https://github.com/ljacomet","followers_url":"https://api.github.com/users/ljacomet/followers","following_url":"https://api.github.com/users/ljacomet/following{/other_user}","gists_url":"https://api.github.com/users/ljacomet/gists{/gist_id}","starred_url":"https://api.github.com/users/ljacomet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljacomet/subscriptions","organizations_url":"https://api.github.com/users/ljacomet/orgs","repos_url":"https://api.github.com/users/ljacomet/repos","events_url":"https://api.github.com/users/ljacomet/events{/privacy}","received_events_url":"https://api.github.com/users/ljacomet/received_events","type":"User","site_admin":false},"body":"Do not use a raw type here","created_at":"2015-04-23T10:21:58Z","updated_at":"2015-04-23T10:21:58Z","html_url":"https://github.com/ehcache/ehcache3/pull/343#discussion_r28951654","pull_request_url":"https://api.github.com/repos/ehcache/ehcache3/pulls/343","_links":{"self":{"href":"https://api.github.com/repos/ehcache/ehcache3/pulls/comments/28951654"},"html":{"href":"https://github.com/ehcache/ehcache3/pull/343#discussion_r28951654"},"pull_request":{"href":"https://api.github.com/repos/ehcache/ehcache3/pulls/343"}}},"pull_request":{"url":"https://api.github.com/repos/ehcache/ehcache3/pulls/343","id":31912178,"html_url":"https://github.com/ehcache/ehcache3/pull/343","diff_url":"https://github.com/ehcache/ehcache3/pull/343.diff","patch_url":"https://github.com/ehcache/ehcache3/pull/343.patch","issue_url":"https://api.github.com/repos/ehcache/ehcache3/issues/343","number":343,"state":"open","locked":false,"title":"Issue #261 : Changes in EhcacheBasic*Test to include events.","user":{"login":"sunnydas","id":6832370,"avatar_url":"https://avatars.githubusercontent.com/u/6832370?v=3","gravatar_id":"","url":"https://api.github.com/users/sunnydas","html_url":"https://github.com/sunnydas","followers_url":"https://api.github.com/users/sunnydas/followers","following_url":"https://api.github.com/users/sunnydas/following{/other_user}","gists_url":"https://api.github.com/users/sunnydas/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnydas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnydas/subscriptions","organizations_url":"https://api.github.com/users/sunnydas/orgs","repos_url":"https://api.github.com/users/sunnydas/repos","events_url":"https://api.github.com/users/sunnydas/events{/privacy}","received_events_url":"https://api.github.com/users/sunnydas/received_events","type":"User","site_admin":false},"body":"Modifications to EhcacheBasic*Test to include event validations. ","created_at":"2015-03-25T11:09:22Z","updated_at":"2015-04-23T10:21:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"223844183f3b1497670e5865cd79c99b4b6d9d1d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ehcache/ehcache3/pulls/343/commits","review_comments_url":"https://api.github.com/repos/ehcache/ehcache3/pulls/343/comments","review_comment_url":"https://api.github.com/repos/ehcache/ehcache3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ehcache/ehcache3/issues/343/comments","statuses_url":"https://api.github.com/repos/ehcache/ehcache3/statuses/6c41b59e417d4d1cd23181b5f6795884ab53398b","head":{"label":"sunnydas:issue-261","ref":"issue-261","sha":"6c41b59e417d4d1cd23181b5f6795884ab53398b","user":{"login":"sunnydas","id":6832370,"avatar_url":"https://avatars.githubusercontent.com/u/6832370?v=3","gravatar_id":"","url":"https://api.github.com/users/sunnydas","html_url":"https://github.com/sunnydas","followers_url":"https://api.github.com/users/sunnydas/followers","following_url":"https://api.github.com/users/sunnydas/following{/other_user}","gists_url":"https://api.github.com/users/sunnydas/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnydas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnydas/subscriptions","organizations_url":"https://api.github.com/users/sunnydas/orgs","repos_url":"https://api.github.com/users/sunnydas/repos","events_url":"https://api.github.com/users/sunnydas/events{/privacy}","received_events_url":"https://api.github.com/users/sunnydas/received_events","type":"User","site_admin":false},"repo":{"id":32312426,"name":"ehcache3","full_name":"sunnydas/ehcache3","owner":{"login":"sunnydas","id":6832370,"avatar_url":"https://avatars.githubusercontent.com/u/6832370?v=3","gravatar_id":"","url":"https://api.github.com/users/sunnydas","html_url":"https://github.com/sunnydas","followers_url":"https://api.github.com/users/sunnydas/followers","following_url":"https://api.github.com/users/sunnydas/following{/other_user}","gists_url":"https://api.github.com/users/sunnydas/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnydas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnydas/subscriptions","organizations_url":"https://api.github.com/users/sunnydas/orgs","repos_url":"https://api.github.com/users/sunnydas/repos","events_url":"https://api.github.com/users/sunnydas/events{/privacy}","received_events_url":"https://api.github.com/users/sunnydas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sunnydas/ehcache3","description":"Ehcache 3.x line ","fork":true,"url":"https://api.github.com/repos/sunnydas/ehcache3","forks_url":"https://api.github.com/repos/sunnydas/ehcache3/forks","keys_url":"https://api.github.com/repos/sunnydas/ehcache3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunnydas/ehcache3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunnydas/ehcache3/teams","hooks_url":"https://api.github.com/repos/sunnydas/ehcache3/hooks","issue_events_url":"https://api.github.com/repos/sunnydas/ehcache3/issues/events{/number}","events_url":"https://api.github.com/repos/sunnydas/ehcache3/events","assignees_url":"https://api.github.com/repos/sunnydas/ehcache3/assignees{/user}","branches_url":"https://api.github.com/repos/sunnydas/ehcache3/branches{/branch}","tags_url":"https://api.github.com/repos/sunnydas/ehcache3/tags","blobs_url":"https://api.github.com/repos/sunnydas/ehcache3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunnydas/ehcache3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunnydas/ehcache3/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunnydas/ehcache3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunnydas/ehcache3/statuses/{sha}","languages_url":"https://api.github.com/repos/sunnydas/ehcache3/languages","stargazers_url":"https://api.github.com/repos/sunnydas/ehcache3/stargazers","contributors_url":"https://api.github.com/repos/sunnydas/ehcache3/contributors","subscribers_url":"https://api.github.com/repos/sunnydas/ehcache3/subscribers","subscription_url":"https://api.github.com/repos/sunnydas/ehcache3/subscription","commits_url":"https://api.github.com/repos/sunnydas/ehcache3/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunnydas/ehcache3/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunnydas/ehcache3/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunnydas/ehcache3/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunnydas/ehcache3/contents/{+path}","compare_url":"https://api.github.com/repos/sunnydas/ehcache3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunnydas/ehcache3/merges","archive_url":"https://api.github.com/repos/sunnydas/ehcache3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunnydas/ehcache3/downloads","issues_url":"https://api.github.com/repos/sunnydas/ehcache3/issues{/number}","pulls_url":"https://api.github.com/repos/sunnydas/ehcache3/pulls{/number}","milestones_url":"https://api.github.com/repos/sunnydas/ehcache3/milestones{/number}","notifications_url":"https://api.github.com/repos/sunnydas/ehcache3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunnydas/ehcache3/labels{/name}","releases_url":"https://api.github.com/repos/sunnydas/ehcache3/releases{/id}","created_at":"2015-03-16T08:55:28Z","updated_at":"2015-04-22T10:54:23Z","pushed_at":"2015-04-22T11:40:58Z","git_url":"git://github.com/sunnydas/ehcache3.git","ssh_url":"git@github.com:sunnydas/ehcache3.git","clone_url":"https://github.com/sunnydas/ehcache3.git","svn_url":"https://github.com/sunnydas/ehcache3","homepage":"ehcache.org","size":2815,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ehcache:master","ref":"master","sha":"ab44cff121400f9a4656aacb24e950bd3e6fa812","user":{"login":"ehcache","id":5504982,"avatar_url":"https://avatars.githubusercontent.com/u/5504982?v=3","gravatar_id":"","url":"https://api.github.com/users/ehcache","html_url":"https://github.com/ehcache","followers_url":"https://api.github.com/users/ehcache/followers","following_url":"https://api.github.com/users/ehcache/following{/other_user}","gists_url":"https://api.github.com/users/ehcache/gists{/gist_id}","starred_url":"https://api.github.com/users/ehcache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehcache/subscriptions","organizations_url":"https://api.github.com/users/ehcache/orgs","repos_url":"https://api.github.com/users/ehcache/repos","events_url":"https://api.github.com/users/ehcache/events{/privacy}","received_events_url":"https://api.github.com/users/ehcache/received_events","type":"Organization","site_admin":false},"repo":{"id":17224514,"name":"ehcache3","full_name":"ehcache/ehcache3","owner":{"login":"ehcache","id":5504982,"avatar_url":"https://avatars.githubusercontent.com/u/5504982?v=3","gravatar_id":"","url":"https://api.github.com/users/ehcache","html_url":"https://github.com/ehcache","followers_url":"https://api.github.com/users/ehcache/followers","following_url":"https://api.github.com/users/ehcache/following{/other_user}","gists_url":"https://api.github.com/users/ehcache/gists{/gist_id}","starred_url":"https://api.github.com/users/ehcache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehcache/subscriptions","organizations_url":"https://api.github.com/users/ehcache/orgs","repos_url":"https://api.github.com/users/ehcache/repos","events_url":"https://api.github.com/users/ehcache/events{/privacy}","received_events_url":"https://api.github.com/users/ehcache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ehcache/ehcache3","description":"Ehcache 3.x line ","fork":false,"url":"https://api.github.com/repos/ehcache/ehcache3","forks_url":"https://api.github.com/repos/ehcache/ehcache3/forks","keys_url":"https://api.github.com/repos/ehcache/ehcache3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ehcache/ehcache3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ehcache/ehcache3/teams","hooks_url":"https://api.github.com/repos/ehcache/ehcache3/hooks","issue_events_url":"https://api.github.com/repos/ehcache/ehcache3/issues/events{/number}","events_url":"https://api.github.com/repos/ehcache/ehcache3/events","assignees_url":"https://api.github.com/repos/ehcache/ehcache3/assignees{/user}","branches_url":"https://api.github.com/repos/ehcache/ehcache3/branches{/branch}","tags_url":"https://api.github.com/repos/ehcache/ehcache3/tags","blobs_url":"https://api.github.com/repos/ehcache/ehcache3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ehcache/ehcache3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ehcache/ehcache3/git/refs{/sha}","trees_url":"https://api.github.com/repos/ehcache/ehcache3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ehcache/ehcache3/statuses/{sha}","languages_url":"https://api.github.com/repos/ehcache/ehcache3/languages","stargazers_url":"https://api.github.com/repos/ehcache/ehcache3/stargazers","contributors_url":"https://api.github.com/repos/ehcache/ehcache3/contributors","subscribers_url":"https://api.github.com/repos/ehcache/ehcache3/subscribers","subscription_url":"https://api.github.com/repos/ehcache/ehcache3/subscription","commits_url":"https://api.github.com/repos/ehcache/ehcache3/commits{/sha}","git_commits_url":"https://api.github.com/repos/ehcache/ehcache3/git/commits{/sha}","comments_url":"https://api.github.com/repos/ehcache/ehcache3/comments{/number}","issue_comment_url":"https://api.github.com/repos/ehcache/ehcache3/issues/comments{/number}","contents_url":"https://api.github.com/repos/ehcache/ehcache3/contents/{+path}","compare_url":"https://api.github.com/repos/ehcache/ehcache3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ehcache/ehcache3/merges","archive_url":"https://api.github.com/repos/ehcache/ehcache3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ehcache/ehcache3/downloads","issues_url":"https://api.github.com/repos/ehcache/ehcache3/issues{/number}","pulls_url":"https://api.github.com/repos/ehcache/ehcache3/pulls{/number}","milestones_url":"https://api.github.com/repos/ehcache/ehcache3/milestones{/number}","notifications_url":"https://api.github.com/repos/ehcache/ehcache3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ehcache/ehcache3/labels{/name}","releases_url":"https://api.github.com/repos/ehcache/ehcache3/releases{/id}","created_at":"2014-02-26T20:39:16Z","updated_at":"2015-04-22T08:51:34Z","pushed_at":"2015-04-23T10:05:45Z","git_url":"git://github.com/ehcache/ehcache3.git","ssh_url":"git@github.com:ehcache/ehcache3.git","clone_url":"https://github.com/ehcache/ehcache3.git","svn_url":"https://github.com/ehcache/ehcache3","homepage":"ehcache.org","size":6140,"stargazers_count":80,"watchers_count":80,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":61,"forks":61,"open_issues":61,"watchers":80,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ehcache/ehcache3/pulls/343"},"html":{"href":"https://github.com/ehcache/ehcache3/pull/343"},"issue":{"href":"https://api.github.com/repos/ehcache/ehcache3/issues/343"},"comments":{"href":"https://api.github.com/repos/ehcache/ehcache3/issues/343/comments"},"review_comments":{"href":"https://api.github.com/repos/ehcache/ehcache3/pulls/343/comments"},"review_comment":{"href":"https://api.github.com/repos/ehcache/ehcache3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ehcache/ehcache3/pulls/343/commits"},"statuses":{"href":"https://api.github.com/repos/ehcache/ehcache3/statuses/6c41b59e417d4d1cd23181b5f6795884ab53398b"}}}}