{"action":"created","comment":{"url":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/comments/39171048","id":39171048,"diff_hunk":"@@ -0,0 +1,73 @@\n+/*\n+ * Copyright 2015 Fluo authors (see AUTHORS)\n+ * \n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except\n+ * in compliance with the License. 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 distributed under the License\n+ * is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n+ * or implied. See the License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+\n+package io.fluo.recipes.transaction;\n+\n+import java.io.File;\n+\n+import io.fluo.api.client.FluoClient;\n+import io.fluo.api.client.FluoFactory;\n+import io.fluo.api.config.FluoConfiguration;\n+import io.fluo.api.data.Bytes;\n+import io.fluo.api.data.Column;\n+import io.fluo.api.mini.MiniFluo;\n+import io.fluo.api.types.StringEncoder;\n+import io.fluo.api.types.TypeLayer;\n+import io.fluo.api.types.TypedTransaction;\n+import io.fluo.recipes.serialization.SimpleSerializer;\n+import org.apache.commons.io.FileUtils;\n+import org.junit.After;\n+import org.junit.Assert;\n+import org.junit.Before;\n+import org.junit.Test;\n+\n+public class RecordingTransactionIT {\n+\n+  private MiniFluo miniFluo;\n+\n+  @Before\n+  public void setUpFluo() throws Exception {\n+    FileUtils.deleteQuietly(new File(\"target/mini\"));\n+    FluoConfiguration props = new FluoConfiguration();\n+    props.setApplicationName(\"recordtx\");\n+    props.setMiniDataDir(\"target/mini\");\n+    miniFluo = FluoFactory.newMiniFluo(props);\n+  }\n+\n+  @After\n+  public void tearDownFluo() throws Exception {\n+    if (miniFluo != null) {\n+      miniFluo.close();\n+    }\n+  }\n+\n+  @Test\n+  public void testBasic() {\n+    try (FluoClient client = FluoFactory.newClient(miniFluo.getClientConfiguration())) {\n+      RecordingTransaction rtx = RecordingTransaction.wrap(client.newTransaction());","path":"modules/core/src/test/java/io/fluo/recipes/transaction/RecordingTransactionIT.java","position":null,"original_position":58,"commit_id":"59cb5a7aa07ba6c2bc91edbc8a60c503695abeb8","original_commit_id":"2e9f084216f90d4204ee3edf224baa902581f896","user":{"login":"mikewalch","id":730698,"avatar_url":"https://avatars.githubusercontent.com/u/730698?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewalch","html_url":"https://github.com/mikewalch","followers_url":"https://api.github.com/users/mikewalch/followers","following_url":"https://api.github.com/users/mikewalch/following{/other_user}","gists_url":"https://api.github.com/users/mikewalch/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewalch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewalch/subscriptions","organizations_url":"https://api.github.com/users/mikewalch/orgs","repos_url":"https://api.github.com/users/mikewalch/repos","events_url":"https://api.github.com/users/mikewalch/events{/privacy}","received_events_url":"https://api.github.com/users/mikewalch/received_events","type":"User","site_admin":false},"body":"Great idea.  Runs so much faster as unit test using EasyMock.  Fixed in 59cb5a7aa07.","created_at":"2015-09-10T15:08:20Z","updated_at":"2015-09-10T15:08:20Z","html_url":"https://github.com/keith-turner/fluo-recipes/pull/3#discussion_r39171048","pull_request_url":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/comments/39171048"},"html":{"href":"https://github.com/keith-turner/fluo-recipes/pull/3#discussion_r39171048"},"pull_request":{"href":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/3","id":44569025,"html_url":"https://github.com/keith-turner/fluo-recipes/pull/3","diff_url":"https://github.com/keith-turner/fluo-recipes/pull/3.diff","patch_url":"https://github.com/keith-turner/fluo-recipes/pull/3.patch","issue_url":"https://api.github.com/repos/keith-turner/fluo-recipes/issues/3","number":3,"state":"open","locked":false,"title":"Created RecordingTransaction to keep record of all sets and deletes i…","user":{"login":"mikewalch","id":730698,"avatar_url":"https://avatars.githubusercontent.com/u/730698?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewalch","html_url":"https://github.com/mikewalch","followers_url":"https://api.github.com/users/mikewalch/followers","following_url":"https://api.github.com/users/mikewalch/following{/other_user}","gists_url":"https://api.github.com/users/mikewalch/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewalch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewalch/subscriptions","organizations_url":"https://api.github.com/users/mikewalch/orgs","repos_url":"https://api.github.com/users/mikewalch/repos","events_url":"https://api.github.com/users/mikewalch/events{/privacy}","received_events_url":"https://api.github.com/users/mikewalch/received_events","type":"User","site_admin":false},"body":"…n transaction using TxLog","created_at":"2015-09-09T16:05:13Z","updated_at":"2015-09-10T15:08:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f4d7ef912e091137d3da2d24623ebab407b4a3d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/3/commits","review_comments_url":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/3/comments","review_comment_url":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keith-turner/fluo-recipes/issues/3/comments","statuses_url":"https://api.github.com/repos/keith-turner/fluo-recipes/statuses/59cb5a7aa07ba6c2bc91edbc8a60c503695abeb8","head":{"label":"mikewalch:txrecord","ref":"txrecord","sha":"59cb5a7aa07ba6c2bc91edbc8a60c503695abeb8","user":{"login":"mikewalch","id":730698,"avatar_url":"https://avatars.githubusercontent.com/u/730698?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewalch","html_url":"https://github.com/mikewalch","followers_url":"https://api.github.com/users/mikewalch/followers","following_url":"https://api.github.com/users/mikewalch/following{/other_user}","gists_url":"https://api.github.com/users/mikewalch/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewalch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewalch/subscriptions","organizations_url":"https://api.github.com/users/mikewalch/orgs","repos_url":"https://api.github.com/users/mikewalch/repos","events_url":"https://api.github.com/users/mikewalch/events{/privacy}","received_events_url":"https://api.github.com/users/mikewalch/received_events","type":"User","site_admin":false},"repo":{"id":42184370,"name":"fluo-recipes","full_name":"mikewalch/fluo-recipes","owner":{"login":"mikewalch","id":730698,"avatar_url":"https://avatars.githubusercontent.com/u/730698?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewalch","html_url":"https://github.com/mikewalch","followers_url":"https://api.github.com/users/mikewalch/followers","following_url":"https://api.github.com/users/mikewalch/following{/other_user}","gists_url":"https://api.github.com/users/mikewalch/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewalch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewalch/subscriptions","organizations_url":"https://api.github.com/users/mikewalch/orgs","repos_url":"https://api.github.com/users/mikewalch/repos","events_url":"https://api.github.com/users/mikewalch/events{/privacy}","received_events_url":"https://api.github.com/users/mikewalch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikewalch/fluo-recipes","description":"Fluo Recipes : Implementations of common Fluo patterns","fork":true,"url":"https://api.github.com/repos/mikewalch/fluo-recipes","forks_url":"https://api.github.com/repos/mikewalch/fluo-recipes/forks","keys_url":"https://api.github.com/repos/mikewalch/fluo-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikewalch/fluo-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikewalch/fluo-recipes/teams","hooks_url":"https://api.github.com/repos/mikewalch/fluo-recipes/hooks","issue_events_url":"https://api.github.com/repos/mikewalch/fluo-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/mikewalch/fluo-recipes/events","assignees_url":"https://api.github.com/repos/mikewalch/fluo-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/mikewalch/fluo-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/mikewalch/fluo-recipes/tags","blobs_url":"https://api.github.com/repos/mikewalch/fluo-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikewalch/fluo-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikewalch/fluo-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikewalch/fluo-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikewalch/fluo-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/mikewalch/fluo-recipes/languages","stargazers_url":"https://api.github.com/repos/mikewalch/fluo-recipes/stargazers","contributors_url":"https://api.github.com/repos/mikewalch/fluo-recipes/contributors","subscribers_url":"https://api.github.com/repos/mikewalch/fluo-recipes/subscribers","subscription_url":"https://api.github.com/repos/mikewalch/fluo-recipes/subscription","commits_url":"https://api.github.com/repos/mikewalch/fluo-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikewalch/fluo-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikewalch/fluo-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikewalch/fluo-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikewalch/fluo-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/mikewalch/fluo-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikewalch/fluo-recipes/merges","archive_url":"https://api.github.com/repos/mikewalch/fluo-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikewalch/fluo-recipes/downloads","issues_url":"https://api.github.com/repos/mikewalch/fluo-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/mikewalch/fluo-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/mikewalch/fluo-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/mikewalch/fluo-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikewalch/fluo-recipes/labels{/name}","releases_url":"https://api.github.com/repos/mikewalch/fluo-recipes/releases{/id}","created_at":"2015-09-09T14:40:18Z","updated_at":"2015-09-09T14:40:19Z","pushed_at":"2015-09-10T15:05:51Z","git_url":"git://github.com/mikewalch/fluo-recipes.git","ssh_url":"git@github.com:mikewalch/fluo-recipes.git","clone_url":"https://github.com/mikewalch/fluo-recipes.git","svn_url":"https://github.com/mikewalch/fluo-recipes","homepage":"","size":0,"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":"keith-turner:master","ref":"master","sha":"16843f1115abe0f23f744ac40ab5bcf412f15f3c","user":{"login":"keith-turner","id":1268739,"avatar_url":"https://avatars.githubusercontent.com/u/1268739?v=3","gravatar_id":"","url":"https://api.github.com/users/keith-turner","html_url":"https://github.com/keith-turner","followers_url":"https://api.github.com/users/keith-turner/followers","following_url":"https://api.github.com/users/keith-turner/following{/other_user}","gists_url":"https://api.github.com/users/keith-turner/gists{/gist_id}","starred_url":"https://api.github.com/users/keith-turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keith-turner/subscriptions","organizations_url":"https://api.github.com/users/keith-turner/orgs","repos_url":"https://api.github.com/users/keith-turner/repos","events_url":"https://api.github.com/users/keith-turner/events{/privacy}","received_events_url":"https://api.github.com/users/keith-turner/received_events","type":"User","site_admin":false},"repo":{"id":41892061,"name":"fluo-recipes","full_name":"keith-turner/fluo-recipes","owner":{"login":"keith-turner","id":1268739,"avatar_url":"https://avatars.githubusercontent.com/u/1268739?v=3","gravatar_id":"","url":"https://api.github.com/users/keith-turner","html_url":"https://github.com/keith-turner","followers_url":"https://api.github.com/users/keith-turner/followers","following_url":"https://api.github.com/users/keith-turner/following{/other_user}","gists_url":"https://api.github.com/users/keith-turner/gists{/gist_id}","starred_url":"https://api.github.com/users/keith-turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keith-turner/subscriptions","organizations_url":"https://api.github.com/users/keith-turner/orgs","repos_url":"https://api.github.com/users/keith-turner/repos","events_url":"https://api.github.com/users/keith-turner/events{/privacy}","received_events_url":"https://api.github.com/users/keith-turner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/keith-turner/fluo-recipes","description":"Fluo Recipes : Implementations of common Fluo patterns","fork":false,"url":"https://api.github.com/repos/keith-turner/fluo-recipes","forks_url":"https://api.github.com/repos/keith-turner/fluo-recipes/forks","keys_url":"https://api.github.com/repos/keith-turner/fluo-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keith-turner/fluo-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keith-turner/fluo-recipes/teams","hooks_url":"https://api.github.com/repos/keith-turner/fluo-recipes/hooks","issue_events_url":"https://api.github.com/repos/keith-turner/fluo-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/keith-turner/fluo-recipes/events","assignees_url":"https://api.github.com/repos/keith-turner/fluo-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/keith-turner/fluo-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/keith-turner/fluo-recipes/tags","blobs_url":"https://api.github.com/repos/keith-turner/fluo-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keith-turner/fluo-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keith-turner/fluo-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/keith-turner/fluo-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keith-turner/fluo-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/keith-turner/fluo-recipes/languages","stargazers_url":"https://api.github.com/repos/keith-turner/fluo-recipes/stargazers","contributors_url":"https://api.github.com/repos/keith-turner/fluo-recipes/contributors","subscribers_url":"https://api.github.com/repos/keith-turner/fluo-recipes/subscribers","subscription_url":"https://api.github.com/repos/keith-turner/fluo-recipes/subscription","commits_url":"https://api.github.com/repos/keith-turner/fluo-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/keith-turner/fluo-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/keith-turner/fluo-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/keith-turner/fluo-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/keith-turner/fluo-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/keith-turner/fluo-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keith-turner/fluo-recipes/merges","archive_url":"https://api.github.com/repos/keith-turner/fluo-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keith-turner/fluo-recipes/downloads","issues_url":"https://api.github.com/repos/keith-turner/fluo-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/keith-turner/fluo-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/keith-turner/fluo-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keith-turner/fluo-recipes/labels{/name}","releases_url":"https://api.github.com/repos/keith-turner/fluo-recipes/releases{/id}","created_at":"2015-09-04T01:24:21Z","updated_at":"2015-09-04T01:27:48Z","pushed_at":"2015-09-10T15:05:52Z","git_url":"git://github.com/keith-turner/fluo-recipes.git","ssh_url":"git@github.com:keith-turner/fluo-recipes.git","clone_url":"https://github.com/keith-turner/fluo-recipes.git","svn_url":"https://github.com/keith-turner/fluo-recipes","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/3"},"html":{"href":"https://github.com/keith-turner/fluo-recipes/pull/3"},"issue":{"href":"https://api.github.com/repos/keith-turner/fluo-recipes/issues/3"},"comments":{"href":"https://api.github.com/repos/keith-turner/fluo-recipes/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keith-turner/fluo-recipes/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/keith-turner/fluo-recipes/statuses/59cb5a7aa07ba6c2bc91edbc8a60c503695abeb8"}}}}