{"action":"created","comment":{"url":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/comments/200638880","pull_request_review_id":134995420,"id":200638880,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDYzODg4MA==","diff_hunk":"@@ -0,0 +1,121 @@\n+/*\n+ *\n+ * Copyright 2018 EMBL - European Bioinformatics Institute\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 uk.ac.ebi.ampt2d.commons.accession.core;\n+\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.beans.factory.annotation.Qualifier;\n+import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;\n+import org.springframework.test.context.ContextConfiguration;\n+import org.springframework.test.context.TestPropertySource;\n+import org.springframework.test.context.junit4.SpringRunner;\n+import uk.ac.ebi.ampt2d.commons.accession.autoconfigure.MonotonicGeneratorProperties;\n+import uk.ac.ebi.ampt2d.commons.accession.core.exceptions.AccessionCouldNotBeGeneratedException;\n+import uk.ac.ebi.ampt2d.commons.accession.generators.DecoratedAccessionGenerator;\n+import uk.ac.ebi.ampt2d.commons.accession.generators.monotonic.MonotonicAccessionGenerator;\n+import uk.ac.ebi.ampt2d.commons.accession.hashing.SHA1HashingFunction;\n+import uk.ac.ebi.ampt2d.commons.accession.persistence.jpa.monotonic.service.ContiguousIdBlockService;\n+import uk.ac.ebi.ampt2d.commons.accession.service.BasicMonotonicAccessioningService;\n+import uk.ac.ebi.ampt2d.test.TestModel;\n+import uk.ac.ebi.ampt2d.test.configuration.TestMonotonicDatabaseServiceTestConfiguration;\n+import uk.ac.ebi.ampt2d.test.service.TestMonotonicDatabaseService;\n+\n+import java.util.Arrays;\n+import java.util.LinkedHashMap;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.stream.Collectors;\n+import java.util.stream.IntStream;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertFalse;\n+\n+@RunWith(SpringRunner.class)\n+@DataJpaTest\n+@ContextConfiguration(classes = {TestMonotonicDatabaseServiceTestConfiguration.class})\n+@TestPropertySource(\"classpath:application-test1.properties\")\n+public class BasicMonotonicTestForAlternateRanges {","path":"accession-commons-monotonic-generator-jpa/src/test/java/uk/ac/ebi/ampt2d/commons/accession/core/BasicMonotonicTestForAlternateRanges.java","position":null,"original_position":53,"commit_id":"67f7680f09ca7022e38a273375a031ded725efc4","original_commit_id":"904fc3eb1c1d5d0224763f7c0272a97cfc0eac95","user":{"login":"selvaebi","id":33631243,"node_id":"MDQ6VXNlcjMzNjMxMjQz","avatar_url":"https://avatars2.githubusercontent.com/u/33631243?v=4","gravatar_id":"","url":"https://api.github.com/users/selvaebi","html_url":"https://github.com/selvaebi","followers_url":"https://api.github.com/users/selvaebi/followers","following_url":"https://api.github.com/users/selvaebi/following{/other_user}","gists_url":"https://api.github.com/users/selvaebi/gists{/gist_id}","starred_url":"https://api.github.com/users/selvaebi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selvaebi/subscriptions","organizations_url":"https://api.github.com/users/selvaebi/orgs","repos_url":"https://api.github.com/users/selvaebi/repos","events_url":"https://api.github.com/users/selvaebi/events{/privacy}","received_events_url":"https://api.github.com/users/selvaebi/received_events","type":"User","site_admin":false},"body":"Renamed to  BasicMonotonicAccessioningWithAlternateRangesTest with consistency with other test classes in the package","created_at":"2018-07-06T12:31:40Z","updated_at":"2018-07-06T12:31:40Z","html_url":"https://github.com/EBIvariation/accession-commons/pull/39#discussion_r200638880","pull_request_url":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/39","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/comments/200638880"},"html":{"href":"https://github.com/EBIvariation/accession-commons/pull/39#discussion_r200638880"},"pull_request":{"href":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/39"}},"in_reply_to_id":198528032},"pull_request":{"url":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/39","id":193960634,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzOTYwNjM0","html_url":"https://github.com/EBIvariation/accession-commons/pull/39","diff_url":"https://github.com/EBIvariation/accession-commons/pull/39.diff","patch_url":"https://github.com/EBIvariation/accession-commons/pull/39.patch","issue_url":"https://api.github.com/repos/EBIvariation/accession-commons/issues/39","number":39,"state":"open","locked":false,"title":"T2D-183 Alternate ranges accession","user":{"login":"selvaebi","id":33631243,"node_id":"MDQ6VXNlcjMzNjMxMjQz","avatar_url":"https://avatars2.githubusercontent.com/u/33631243?v=4","gravatar_id":"","url":"https://api.github.com/users/selvaebi","html_url":"https://github.com/selvaebi","followers_url":"https://api.github.com/users/selvaebi/followers","following_url":"https://api.github.com/users/selvaebi/following{/other_user}","gists_url":"https://api.github.com/users/selvaebi/gists{/gist_id}","starred_url":"https://api.github.com/users/selvaebi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selvaebi/subscriptions","organizations_url":"https://api.github.com/users/selvaebi/orgs","repos_url":"https://api.github.com/users/selvaebi/repos","events_url":"https://api.github.com/users/selvaebi/events{/privacy}","received_events_url":"https://api.github.com/users/selvaebi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-11T12:07:43Z","updated_at":"2018-07-06T12:31:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5eebcf275d8ffef05f025f7469866cae0fcd8604","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/39/commits","review_comments_url":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/39/comments","review_comment_url":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EBIvariation/accession-commons/issues/39/comments","statuses_url":"https://api.github.com/repos/EBIvariation/accession-commons/statuses/67f7680f09ca7022e38a273375a031ded725efc4","head":{"label":"selvaebi:T2D-183AltAccessions","ref":"T2D-183AltAccessions","sha":"67f7680f09ca7022e38a273375a031ded725efc4","user":{"login":"selvaebi","id":33631243,"node_id":"MDQ6VXNlcjMzNjMxMjQz","avatar_url":"https://avatars2.githubusercontent.com/u/33631243?v=4","gravatar_id":"","url":"https://api.github.com/users/selvaebi","html_url":"https://github.com/selvaebi","followers_url":"https://api.github.com/users/selvaebi/followers","following_url":"https://api.github.com/users/selvaebi/following{/other_user}","gists_url":"https://api.github.com/users/selvaebi/gists{/gist_id}","starred_url":"https://api.github.com/users/selvaebi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selvaebi/subscriptions","organizations_url":"https://api.github.com/users/selvaebi/orgs","repos_url":"https://api.github.com/users/selvaebi/repos","events_url":"https://api.github.com/users/selvaebi/events{/privacy}","received_events_url":"https://api.github.com/users/selvaebi/received_events","type":"User","site_admin":false},"repo":{"id":112477731,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI0Nzc3MzE=","name":"accession-commons","full_name":"selvaebi/accession-commons","owner":{"login":"selvaebi","id":33631243,"node_id":"MDQ6VXNlcjMzNjMxMjQz","avatar_url":"https://avatars2.githubusercontent.com/u/33631243?v=4","gravatar_id":"","url":"https://api.github.com/users/selvaebi","html_url":"https://github.com/selvaebi","followers_url":"https://api.github.com/users/selvaebi/followers","following_url":"https://api.github.com/users/selvaebi/following{/other_user}","gists_url":"https://api.github.com/users/selvaebi/gists{/gist_id}","starred_url":"https://api.github.com/users/selvaebi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selvaebi/subscriptions","organizations_url":"https://api.github.com/users/selvaebi/orgs","repos_url":"https://api.github.com/users/selvaebi/repos","events_url":"https://api.github.com/users/selvaebi/events{/privacy}","received_events_url":"https://api.github.com/users/selvaebi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/selvaebi/accession-commons","description":"Generic service for accessioning of any type of object","fork":true,"url":"https://api.github.com/repos/selvaebi/accession-commons","forks_url":"https://api.github.com/repos/selvaebi/accession-commons/forks","keys_url":"https://api.github.com/repos/selvaebi/accession-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/selvaebi/accession-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/selvaebi/accession-commons/teams","hooks_url":"https://api.github.com/repos/selvaebi/accession-commons/hooks","issue_events_url":"https://api.github.com/repos/selvaebi/accession-commons/issues/events{/number}","events_url":"https://api.github.com/repos/selvaebi/accession-commons/events","assignees_url":"https://api.github.com/repos/selvaebi/accession-commons/assignees{/user}","branches_url":"https://api.github.com/repos/selvaebi/accession-commons/branches{/branch}","tags_url":"https://api.github.com/repos/selvaebi/accession-commons/tags","blobs_url":"https://api.github.com/repos/selvaebi/accession-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/selvaebi/accession-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/selvaebi/accession-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/selvaebi/accession-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/selvaebi/accession-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/selvaebi/accession-commons/languages","stargazers_url":"https://api.github.com/repos/selvaebi/accession-commons/stargazers","contributors_url":"https://api.github.com/repos/selvaebi/accession-commons/contributors","subscribers_url":"https://api.github.com/repos/selvaebi/accession-commons/subscribers","subscription_url":"https://api.github.com/repos/selvaebi/accession-commons/subscription","commits_url":"https://api.github.com/repos/selvaebi/accession-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/selvaebi/accession-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/selvaebi/accession-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/selvaebi/accession-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/selvaebi/accession-commons/contents/{+path}","compare_url":"https://api.github.com/repos/selvaebi/accession-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/selvaebi/accession-commons/merges","archive_url":"https://api.github.com/repos/selvaebi/accession-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/selvaebi/accession-commons/downloads","issues_url":"https://api.github.com/repos/selvaebi/accession-commons/issues{/number}","pulls_url":"https://api.github.com/repos/selvaebi/accession-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/selvaebi/accession-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/selvaebi/accession-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/selvaebi/accession-commons/labels{/name}","releases_url":"https://api.github.com/repos/selvaebi/accession-commons/releases{/id}","deployments_url":"https://api.github.com/repos/selvaebi/accession-commons/deployments","created_at":"2017-11-29T13:18:16Z","updated_at":"2018-03-29T16:32:07Z","pushed_at":"2018-07-04T10:19:57Z","git_url":"git://github.com/selvaebi/accession-commons.git","ssh_url":"git@github.com:selvaebi/accession-commons.git","clone_url":"https://github.com/selvaebi/accession-commons.git","svn_url":"https://github.com/selvaebi/accession-commons","homepage":null,"size":945,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"EBIvariation:release/0.5","ref":"release/0.5","sha":"51b92e211394746b03a719e0d48c3f758a0a2748","user":{"login":"EBIvariation","id":6419333,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0MTkzMzM=","avatar_url":"https://avatars1.githubusercontent.com/u/6419333?v=4","gravatar_id":"","url":"https://api.github.com/users/EBIvariation","html_url":"https://github.com/EBIvariation","followers_url":"https://api.github.com/users/EBIvariation/followers","following_url":"https://api.github.com/users/EBIvariation/following{/other_user}","gists_url":"https://api.github.com/users/EBIvariation/gists{/gist_id}","starred_url":"https://api.github.com/users/EBIvariation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EBIvariation/subscriptions","organizations_url":"https://api.github.com/users/EBIvariation/orgs","repos_url":"https://api.github.com/users/EBIvariation/repos","events_url":"https://api.github.com/users/EBIvariation/events{/privacy}","received_events_url":"https://api.github.com/users/EBIvariation/received_events","type":"Organization","site_admin":false},"repo":{"id":84810176,"node_id":"MDEwOlJlcG9zaXRvcnk4NDgxMDE3Ng==","name":"accession-commons","full_name":"EBIvariation/accession-commons","owner":{"login":"EBIvariation","id":6419333,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0MTkzMzM=","avatar_url":"https://avatars1.githubusercontent.com/u/6419333?v=4","gravatar_id":"","url":"https://api.github.com/users/EBIvariation","html_url":"https://github.com/EBIvariation","followers_url":"https://api.github.com/users/EBIvariation/followers","following_url":"https://api.github.com/users/EBIvariation/following{/other_user}","gists_url":"https://api.github.com/users/EBIvariation/gists{/gist_id}","starred_url":"https://api.github.com/users/EBIvariation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EBIvariation/subscriptions","organizations_url":"https://api.github.com/users/EBIvariation/orgs","repos_url":"https://api.github.com/users/EBIvariation/repos","events_url":"https://api.github.com/users/EBIvariation/events{/privacy}","received_events_url":"https://api.github.com/users/EBIvariation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EBIvariation/accession-commons","description":"Generic library for accessioning any type of object","fork":false,"url":"https://api.github.com/repos/EBIvariation/accession-commons","forks_url":"https://api.github.com/repos/EBIvariation/accession-commons/forks","keys_url":"https://api.github.com/repos/EBIvariation/accession-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EBIvariation/accession-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EBIvariation/accession-commons/teams","hooks_url":"https://api.github.com/repos/EBIvariation/accession-commons/hooks","issue_events_url":"https://api.github.com/repos/EBIvariation/accession-commons/issues/events{/number}","events_url":"https://api.github.com/repos/EBIvariation/accession-commons/events","assignees_url":"https://api.github.com/repos/EBIvariation/accession-commons/assignees{/user}","branches_url":"https://api.github.com/repos/EBIvariation/accession-commons/branches{/branch}","tags_url":"https://api.github.com/repos/EBIvariation/accession-commons/tags","blobs_url":"https://api.github.com/repos/EBIvariation/accession-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EBIvariation/accession-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EBIvariation/accession-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/EBIvariation/accession-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EBIvariation/accession-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/EBIvariation/accession-commons/languages","stargazers_url":"https://api.github.com/repos/EBIvariation/accession-commons/stargazers","contributors_url":"https://api.github.com/repos/EBIvariation/accession-commons/contributors","subscribers_url":"https://api.github.com/repos/EBIvariation/accession-commons/subscribers","subscription_url":"https://api.github.com/repos/EBIvariation/accession-commons/subscription","commits_url":"https://api.github.com/repos/EBIvariation/accession-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/EBIvariation/accession-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/EBIvariation/accession-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/EBIvariation/accession-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/EBIvariation/accession-commons/contents/{+path}","compare_url":"https://api.github.com/repos/EBIvariation/accession-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EBIvariation/accession-commons/merges","archive_url":"https://api.github.com/repos/EBIvariation/accession-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EBIvariation/accession-commons/downloads","issues_url":"https://api.github.com/repos/EBIvariation/accession-commons/issues{/number}","pulls_url":"https://api.github.com/repos/EBIvariation/accession-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/EBIvariation/accession-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/EBIvariation/accession-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EBIvariation/accession-commons/labels{/name}","releases_url":"https://api.github.com/repos/EBIvariation/accession-commons/releases{/id}","deployments_url":"https://api.github.com/repos/EBIvariation/accession-commons/deployments","created_at":"2017-03-13T09:51:26Z","updated_at":"2018-06-26T15:27:29Z","pushed_at":"2018-07-04T10:19:59Z","git_url":"git://github.com/EBIvariation/accession-commons.git","ssh_url":"git@github.com:EBIvariation/accession-commons.git","clone_url":"https://github.com/EBIvariation/accession-commons.git","svn_url":"https://github.com/EBIvariation/accession-commons","homepage":"","size":915,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":6,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/39"},"html":{"href":"https://github.com/EBIvariation/accession-commons/pull/39"},"issue":{"href":"https://api.github.com/repos/EBIvariation/accession-commons/issues/39"},"comments":{"href":"https://api.github.com/repos/EBIvariation/accession-commons/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EBIvariation/accession-commons/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/EBIvariation/accession-commons/statuses/67f7680f09ca7022e38a273375a031ded725efc4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"selvaebi"}}