{"action":"created","comment":{"url":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/comments/61666915","id":61666915,"diff_hunk":"@@ -0,0 +1,851 @@\n+/**\n+ * This class contains unit tests for validating the behavior of Apex classes\n+ * and triggers.\n+ *\n+ * Unit tests are class methods that verify whether a particular piece\n+ * of code is working properly. Unit test methods take no arguments,\n+ * commit no data to the database, and are flagged with the testMethod\n+ * keyword in the method definition.\n+ *\n+ * All test methods in an organization are executed whenever Apex code is deployed\n+ * to a production organization to confirm correctness, ensure code\n+ * coverage, and prevent regressions. All Apex classes are\n+ * required to have at least 75% code coverage in order to be deployed\n+ * to a production organization. In addition, all triggers must have some code coverage.\n+ * \n+ * The @isTest class annotation indicates this class only contains test\n+ * methods. Classes defined with the @isTest annotation do not count against\n+ * the organization size limit for all Apex scripts.\n+ *\n+ * See the Apex Language Reference for more information about Testing and Code Coverage.\n+ */\n+@isTest\n+private class PobControllerExtTest {\n+\t\n+\tprivate static final Integer NUMBER_OF_LOTS = 12;\n+\tprivate static final String APPLES = 'Apples';\n+\tprivate static final String PEARS = 'Pears';\n+\tprivate static final String ORANGES = 'Oranges';\n+\tprivate static final Integer NUMBER_OF_LOTS_ORANGES = 5;\n+\tprivate static final Integer NUMBER_OF_LOTS_PEARS = 7;\n+\tprivate static final Integer EXPECTED_PAGES_ORANGES_AND_PEARS = 3;\n+\tprivate static final Integer EXPECTED_PAGES_ORANGES_ONLY = 1;\n+\tprivate static final Integer EXPECTED_PAGES_PEARS_ONLY = 2;\n+\tprivate static final Decimal TEST_ORDER_BUDGET = 150000;\n+\n+\t/** \n+\t\tTEST PRODUCT CATEGORY FILTER\n+\t\t==========================================================================================\n+    \tEnsure category filter works properly when the page is created, \n+    \tthe filter is set and reset back.\n+    \t\t1) by default the filter must be off\n+    \t\t2) when turned on only products of a specific category must be shown\n+    \t\t3) if the value of the filter isn't found, no results shoul be displayed\n+    \t========================================================================================== */\n+\tstatic testMethod void testCategoryFilter() {\n+\t\t\n+\t\t// Vars, users & data\n+\t\tAccount myAccount;\n+\t\tOrder__c myOrder;\n+\t\tUser accountManager = TestDataFactory.createUser('Account Managers', 'aManager');\n+\t\tUser inventoryManager = TestDataFactory.createUser('Inventory Managers','iManager');\n+\t\t\n+\t\tSystem.runAs(inventoryManager) {\n+\t\t\tList<Lot__c> lotsOfPears = TestDataFactory.createLots(PEARS, NUMBER_OF_LOTS_PEARS);\n+    \t\tList<Lot__c> lotsOfOranges = TestDataFactory.createLots(ORANGES, NUMBER_OF_LOTS_ORANGES);\n+    \t\tinsert lotsOfPears;\n+    \t\tinsert lotsOfOranges;\n+\t\t}\n+\t\t\n+\t\tSystem.runAs(accountManager) {\n+\t\t\tmyAccount = TestDataFactory.createAccount();\n+    \t\tinsert myAccount;\n+    \t\t\n+    \t\tTest.startTest();\n+    \t\t\n+\t    \t\t// Create controller    \t\n+\t\t    \tmyOrder = TestDataFactory.createOrder(myAccount);\n+\t\t\t\tApexPages.StandardController sc = new ApexPages.standardController(myOrder);\n+\t\t    \tPobControllerExt ce = new PobControllerExt(sc);\n+\t\t    \t\n+\t\t    \t// Test picklist values are loaded\n+\t\t    \tList<SelectOption> options = ce.getFilterValues();\n+\t\t    \tSystem.assertEquals(true, options.size()>0, 'Options expected in the filter picklist');\n+\t\t    \t\n+\t\t    \t\n+\t\t    \t/* \t(1)  By default filter must be OFF\n+\t\t    \t\tCheck number of pages, products count for each category\n+\t\t\t\t============================================================================ */\n+\t\t    \tSystem.assertEquals(EXPECTED_PAGES_ORANGES_AND_PEARS, ce.getNumberOfPages(), 'Inconsistent number of pages when filter is OFF');\n+\t\t    \tInteger orangesCount = 0, pearsCount = 0;\n+\t\t    \tfor (Integer i=0; i<ce.getNumberOfPages(); i++) {\n+\t\t    \t\tSystem.assertNotEquals(0, ce.wrappers.size(), 'Empty pages detected when filter is OFF'); \n+\t\t    \t\tfor (PobControllerExt.Wrapper w:ce.wrappers) {\n+\t\t    \t\t\tif (w.product.Product_Category__c == PEARS) {\n+\t\t    \t\t\t\tpearsCount++;\n+\t\t    \t\t\t}\n+\t\t    \t\t\tif (w.product.Product_Category__c == ORANGES) {\n+\t\t    \t\t\t\torangesCount++;\n+\t\t    \t\t\t}\n+\t\t    \t\t}\n+\t\t    \t\tce.nextPage();\n+\t\t    \t} \n+\t\t    \tSystem.assertEquals(NUMBER_OF_LOTS_PEARS, pearsCount, 'Inconsisent products count across pages with filter OFF');\n+\t\t    \tSystem.assertEquals(NUMBER_OF_LOTS_ORANGES, orangesCount, 'Inconsisent products count across pages with filter OFF');\n+\t\t    \t\n+\t\t    \t/* \t(2) Turn ON filter, using showing only products of a specific category\n+\t\t    \t\tCheck number of pages, products count for each category\n+\t\t\t\t============================================================================ */\n+\t\t    \tce.categoryFilter = PEARS;\n+\t\t    \tce.updateFilter();\n+\t\t    \tSystem.assertEquals(EXPECTED_PAGES_PEARS_ONLY, ce.getNumberOfPages(), 'Inconsistent number of pages with filter ON');\n+\t\t    \torangesCount = pearsCount = 0;\n+\t\t    \tfor (Integer i=0; i<ce.getNumberOfPages(); i++) {\n+\t\t    \t\tSystem.assertNotEquals(0, ce.wrappers.size(), 'Empty pages detected when filter is ON');\n+\t\t    \t\tfor (PobControllerExt.Wrapper w:ce.wrappers) {\n+\t\t    \t\t\tif (w.product.Product_Category__c == PEARS) {\n+\t\t    \t\t\t\tpearsCount++;\n+\t\t    \t\t\t}\n+\t\t    \t\t\tif (w.product.Product_Category__c == ORANGES) {\n+\t\t    \t\t\t\torangesCount++;\n+\t\t    \t\t\t}\n+\t\t    \t\t}\n+\t\t    \t\tce.nextPage();\n+\t\t    \t} \n+\t\t    \tSystem.assertEquals(NUMBER_OF_LOTS_PEARS, pearsCount, 'Inconsisent products count across pages with filter ON');\n+\t\t    \tSystem.assertEquals(0, orangesCount, 'Oranges should have been filtered out');\n+\t\t    \t\n+\t\t    \t/* \t(3) Turn ON filter, using a category that has no records\n+\t\t    \t\tCheck number of pages, products count for each category\n+\t\t\t\t============================================================================ */\n+\t\t    \tce.categoryFilter = 'This category does not exist';\n+\t\t    \tce.updateFilter();\n+\t\t    \tSystem.assertEquals(0, ce.getNumberOfPages(), 'No pages should be found when filtering by a product category that does not exist');\n+\t\t    \tSystem.assertEquals(0, ce.wrappers.size(), 'Page should be empty when filtering by a category not found');\n+\t    \t\n+\t    \tTest.stopTest();\n+\t\t}\n+\t}\n+\t\n+\n+\t/** \n+    \tTEST PAGINATION (Positive case)\n+    \t======================================================================\n+    \tEnsure pagination works correctly when some products/lots are\n+    \tin the database. Checks:\n+    \t- default page is #1\n+    \t- number of items per page\n+    \t- number of pages\n+    \t- prev/next\n+    \t- first/last\n+    \t====================================================================== */\t\n+\tstatic testMethod void testPaginationWithProducts() {\n+\t\t\n+\t\t// Setup users\n+\t\tUser accountManager = TestDataFactory.createUser('Account Managers', 'aManager');\n+\t\tUser inventoryManager = TestDataFactory.createUser('Inventory Managers','iManager');\n+\t\t\n+\t\t// Prepare products\n+\t\tSystem.runAs(inventoryManager) {\n+\t\t\tList<Lot__c> lots = TestDataFactory.createLots(NUMBER_OF_LOTS);\n+\t\t\tinsert lots;\n+\t\t}\n+\t\t\n+\t\t// Create account, controller and start testing\n+\t\tSystem.runAs(accountManager) {\n+\t\t\t\n+\t\t\t// Test data\n+\t\t\tAccount myAccount = TestDataFactory.createAccount();\n+\t    \tinsert myAccount;\n+\t    \tOrder__c myOrder = TestDataFactory.createOrder(myAccount);\n+\t    \tinsert myOrder;\n+\t\t\t\n+\t\t\tTest.startTest();\n+\t\t\t\n+\t\t\t// Create controller    \t\n+\t\t\tApexPages.StandardController sc = new ApexPages.standardController(myOrder);\n+\t    \tPobControllerExt ce = new PobControllerExt(sc);\n+\t    \t\n+\t    \t// Default\n+\t    \tSystem.assertEquals(true, ce.getPrevDisabled(), 'Prev button should be disabled');\n+\t    \tSystem.assertEquals(false, ce.getNextDisabled(), 'Next button should be disabled');\n+\t    \tSystem.assertEquals(3, ce.getNumberOfPages(), '3 pages expected');\n+\t    \tSystem.assertEquals(1, ce.getCurrentPage(), 'Current page is expected to be 1st');\n+\t    \tSystem.assertEquals(5, ce.wrappers.size(), '5 items expected in the page');\n+\t    \t\n+\t\t\t// Next\n+\t\t\tce.nextPage();\n+\t\t\tSystem.assertEquals(false, ce.getPrevDisabled(), 'Prev button should be enabled');\n+\t    \tSystem.assertEquals(false, ce.getNextDisabled(), 'Next button should be enabled');\n+\t\t\tSystem.assertEquals(2, ce.getCurrentPage(), 'Unexpected current page');\n+\t    \tSystem.assertEquals(3, ce.getNumberOfPages(), '3 pages expected');\n+\t    \tSystem.assertEquals(5, ce.wrappers.size(), '5 items expected in the page');\n+\t    \t\n+\t\t\t// Previous\n+\t\t\tce.prevPage();\n+\t    \tSystem.assertEquals(true, ce.getPrevDisabled(), 'Prev button should be disabled');\n+\t    \tSystem.assertEquals(false, ce.getNextDisabled(), 'Next button should be disabled');\n+\t    \tSystem.assertEquals(3, ce.getNumberOfPages(), '3 pages expected');\n+\t    \tSystem.assertEquals(1, ce.getCurrentPage(), 'Current page is expected to be 1st');\n+\t    \tSystem.assertEquals(5, ce.wrappers.size(), '5 items expected in the page');\n+\t    \t\n+\t    \t// Last\n+\t    \tce.lastPage();\n+\t    \tSystem.assertEquals(false, ce.getPrevDisabled(), 'Prev button should be disabled');\n+\t    \tSystem.assertEquals(true, ce.getNextDisabled(), 'Next button should be disabled');\n+\t    \tSystem.assertEquals(3, ce.getNumberOfPages(), '3 pages expected');\n+\t    \tSystem.assertEquals(3, ce.getCurrentPage(), 'Current page is expected to be 3rds');\n+\t    \tSystem.assertEquals(2, ce.wrappers.size(), '2 items expected in the page');\n+\t    \t\n+\t    \t// First\n+\t    \tce.firstPage();\n+\t    \tSystem.assertEquals(true, ce.getPrevDisabled(), 'Prev button should be disabled');\n+\t    \tSystem.assertEquals(false, ce.getNextDisabled(), 'Next button should be disabled');\n+\t    \tSystem.assertEquals(3, ce.getNumberOfPages(), '3 pages expected');\n+\t    \tSystem.assertEquals(1, ce.getCurrentPage(), 'Current page is expected to be 1st');\n+\t    \tSystem.assertEquals(5, ce.wrappers.size(), '5 items expected in the page');\n+\t    \t\n+\t    \tTest.stopTest();\n+\t\t}\n+\t}\n+\n+\t/** \n+    \tTEST PAGINATION (Negative case, no products available)\n+    \t======================================================================\n+    \tEnsure pagination works correctly even if no products are available\n+    \tin the database.\n+    \t====================================================================== */\n+    static testMethod void testPaginationNoProducts() {","path":"src/classes/PobControllerExtTest.cls","position":218,"original_position":218,"commit_id":"0526621cf37232b90915be49d86246f330faae34","original_commit_id":"0526621cf37232b90915be49d86246f330faae34","user":{"login":"eroispaziali","id":1273282,"avatar_url":"https://avatars.githubusercontent.com/u/1273282?v=3","gravatar_id":"","url":"https://api.github.com/users/eroispaziali","html_url":"https://github.com/eroispaziali","followers_url":"https://api.github.com/users/eroispaziali/followers","following_url":"https://api.github.com/users/eroispaziali/following{/other_user}","gists_url":"https://api.github.com/users/eroispaziali/gists{/gist_id}","starred_url":"https://api.github.com/users/eroispaziali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eroispaziali/subscriptions","organizations_url":"https://api.github.com/users/eroispaziali/orgs","repos_url":"https://api.github.com/users/eroispaziali/repos","events_url":"https://api.github.com/users/eroispaziali/events{/privacy}","received_events_url":"https://api.github.com/users/eroispaziali/received_events","type":"User","site_admin":false},"body":"Style issue: test methods should be annotated with IsTest for better readability","created_at":"2016-04-30T08:16:49Z","updated_at":"2016-04-30T08:16:49Z","html_url":"https://github.com/eroispaziali/my-test-project/pull/1#discussion_r61666915","pull_request_url":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/comments/61666915"},"html":{"href":"https://github.com/eroispaziali/my-test-project/pull/1#discussion_r61666915"},"pull_request":{"href":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/1","id":68394285,"html_url":"https://github.com/eroispaziali/my-test-project/pull/1","diff_url":"https://github.com/eroispaziali/my-test-project/pull/1.diff","patch_url":"https://github.com/eroispaziali/my-test-project/pull/1.patch","issue_url":"https://api.github.com/repos/eroispaziali/my-test-project/issues/1","number":1,"state":"open","locked":false,"title":"new stuff","user":{"login":"eroispaziali","id":1273282,"avatar_url":"https://avatars.githubusercontent.com/u/1273282?v=3","gravatar_id":"","url":"https://api.github.com/users/eroispaziali","html_url":"https://github.com/eroispaziali","followers_url":"https://api.github.com/users/eroispaziali/followers","following_url":"https://api.github.com/users/eroispaziali/following{/other_user}","gists_url":"https://api.github.com/users/eroispaziali/gists{/gist_id}","starred_url":"https://api.github.com/users/eroispaziali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eroispaziali/subscriptions","organizations_url":"https://api.github.com/users/eroispaziali/orgs","repos_url":"https://api.github.com/users/eroispaziali/repos","events_url":"https://api.github.com/users/eroispaziali/events{/privacy}","received_events_url":"https://api.github.com/users/eroispaziali/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-29T16:00:10Z","updated_at":"2016-04-30T08:16:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02fafe5850702ff330b444dece8ce62408780eba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/1/commits","review_comments_url":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/1/comments","review_comment_url":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eroispaziali/my-test-project/issues/1/comments","statuses_url":"https://api.github.com/repos/eroispaziali/my-test-project/statuses/0526621cf37232b90915be49d86246f330faae34","head":{"label":"eroispaziali:trunk","ref":"trunk","sha":"0526621cf37232b90915be49d86246f330faae34","user":{"login":"eroispaziali","id":1273282,"avatar_url":"https://avatars.githubusercontent.com/u/1273282?v=3","gravatar_id":"","url":"https://api.github.com/users/eroispaziali","html_url":"https://github.com/eroispaziali","followers_url":"https://api.github.com/users/eroispaziali/followers","following_url":"https://api.github.com/users/eroispaziali/following{/other_user}","gists_url":"https://api.github.com/users/eroispaziali/gists{/gist_id}","starred_url":"https://api.github.com/users/eroispaziali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eroispaziali/subscriptions","organizations_url":"https://api.github.com/users/eroispaziali/orgs","repos_url":"https://api.github.com/users/eroispaziali/repos","events_url":"https://api.github.com/users/eroispaziali/events{/privacy}","received_events_url":"https://api.github.com/users/eroispaziali/received_events","type":"User","site_admin":false},"repo":{"id":57395407,"name":"my-test-project","full_name":"eroispaziali/my-test-project","owner":{"login":"eroispaziali","id":1273282,"avatar_url":"https://avatars.githubusercontent.com/u/1273282?v=3","gravatar_id":"","url":"https://api.github.com/users/eroispaziali","html_url":"https://github.com/eroispaziali","followers_url":"https://api.github.com/users/eroispaziali/followers","following_url":"https://api.github.com/users/eroispaziali/following{/other_user}","gists_url":"https://api.github.com/users/eroispaziali/gists{/gist_id}","starred_url":"https://api.github.com/users/eroispaziali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eroispaziali/subscriptions","organizations_url":"https://api.github.com/users/eroispaziali/orgs","repos_url":"https://api.github.com/users/eroispaziali/repos","events_url":"https://api.github.com/users/eroispaziali/events{/privacy}","received_events_url":"https://api.github.com/users/eroispaziali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eroispaziali/my-test-project","description":"A test project, nothing really interesting.","fork":false,"url":"https://api.github.com/repos/eroispaziali/my-test-project","forks_url":"https://api.github.com/repos/eroispaziali/my-test-project/forks","keys_url":"https://api.github.com/repos/eroispaziali/my-test-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eroispaziali/my-test-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eroispaziali/my-test-project/teams","hooks_url":"https://api.github.com/repos/eroispaziali/my-test-project/hooks","issue_events_url":"https://api.github.com/repos/eroispaziali/my-test-project/issues/events{/number}","events_url":"https://api.github.com/repos/eroispaziali/my-test-project/events","assignees_url":"https://api.github.com/repos/eroispaziali/my-test-project/assignees{/user}","branches_url":"https://api.github.com/repos/eroispaziali/my-test-project/branches{/branch}","tags_url":"https://api.github.com/repos/eroispaziali/my-test-project/tags","blobs_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eroispaziali/my-test-project/statuses/{sha}","languages_url":"https://api.github.com/repos/eroispaziali/my-test-project/languages","stargazers_url":"https://api.github.com/repos/eroispaziali/my-test-project/stargazers","contributors_url":"https://api.github.com/repos/eroispaziali/my-test-project/contributors","subscribers_url":"https://api.github.com/repos/eroispaziali/my-test-project/subscribers","subscription_url":"https://api.github.com/repos/eroispaziali/my-test-project/subscription","commits_url":"https://api.github.com/repos/eroispaziali/my-test-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/eroispaziali/my-test-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/eroispaziali/my-test-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/eroispaziali/my-test-project/contents/{+path}","compare_url":"https://api.github.com/repos/eroispaziali/my-test-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eroispaziali/my-test-project/merges","archive_url":"https://api.github.com/repos/eroispaziali/my-test-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eroispaziali/my-test-project/downloads","issues_url":"https://api.github.com/repos/eroispaziali/my-test-project/issues{/number}","pulls_url":"https://api.github.com/repos/eroispaziali/my-test-project/pulls{/number}","milestones_url":"https://api.github.com/repos/eroispaziali/my-test-project/milestones{/number}","notifications_url":"https://api.github.com/repos/eroispaziali/my-test-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eroispaziali/my-test-project/labels{/name}","releases_url":"https://api.github.com/repos/eroispaziali/my-test-project/releases{/id}","deployments_url":"https://api.github.com/repos/eroispaziali/my-test-project/deployments","created_at":"2016-04-29T15:41:45Z","updated_at":"2016-04-30T00:09:14Z","pushed_at":"2016-04-30T00:09:13Z","git_url":"git://github.com/eroispaziali/my-test-project.git","ssh_url":"git@github.com:eroispaziali/my-test-project.git","clone_url":"https://github.com/eroispaziali/my-test-project.git","svn_url":"https://github.com/eroispaziali/my-test-project","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":"Apex","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"trunk"}},"base":{"label":"eroispaziali:master","ref":"master","sha":"e9ba4a5bc8ef93b4b8b678d1fb8d92f8cc8c2d3d","user":{"login":"eroispaziali","id":1273282,"avatar_url":"https://avatars.githubusercontent.com/u/1273282?v=3","gravatar_id":"","url":"https://api.github.com/users/eroispaziali","html_url":"https://github.com/eroispaziali","followers_url":"https://api.github.com/users/eroispaziali/followers","following_url":"https://api.github.com/users/eroispaziali/following{/other_user}","gists_url":"https://api.github.com/users/eroispaziali/gists{/gist_id}","starred_url":"https://api.github.com/users/eroispaziali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eroispaziali/subscriptions","organizations_url":"https://api.github.com/users/eroispaziali/orgs","repos_url":"https://api.github.com/users/eroispaziali/repos","events_url":"https://api.github.com/users/eroispaziali/events{/privacy}","received_events_url":"https://api.github.com/users/eroispaziali/received_events","type":"User","site_admin":false},"repo":{"id":57395407,"name":"my-test-project","full_name":"eroispaziali/my-test-project","owner":{"login":"eroispaziali","id":1273282,"avatar_url":"https://avatars.githubusercontent.com/u/1273282?v=3","gravatar_id":"","url":"https://api.github.com/users/eroispaziali","html_url":"https://github.com/eroispaziali","followers_url":"https://api.github.com/users/eroispaziali/followers","following_url":"https://api.github.com/users/eroispaziali/following{/other_user}","gists_url":"https://api.github.com/users/eroispaziali/gists{/gist_id}","starred_url":"https://api.github.com/users/eroispaziali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eroispaziali/subscriptions","organizations_url":"https://api.github.com/users/eroispaziali/orgs","repos_url":"https://api.github.com/users/eroispaziali/repos","events_url":"https://api.github.com/users/eroispaziali/events{/privacy}","received_events_url":"https://api.github.com/users/eroispaziali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eroispaziali/my-test-project","description":"A test project, nothing really interesting.","fork":false,"url":"https://api.github.com/repos/eroispaziali/my-test-project","forks_url":"https://api.github.com/repos/eroispaziali/my-test-project/forks","keys_url":"https://api.github.com/repos/eroispaziali/my-test-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eroispaziali/my-test-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eroispaziali/my-test-project/teams","hooks_url":"https://api.github.com/repos/eroispaziali/my-test-project/hooks","issue_events_url":"https://api.github.com/repos/eroispaziali/my-test-project/issues/events{/number}","events_url":"https://api.github.com/repos/eroispaziali/my-test-project/events","assignees_url":"https://api.github.com/repos/eroispaziali/my-test-project/assignees{/user}","branches_url":"https://api.github.com/repos/eroispaziali/my-test-project/branches{/branch}","tags_url":"https://api.github.com/repos/eroispaziali/my-test-project/tags","blobs_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eroispaziali/my-test-project/statuses/{sha}","languages_url":"https://api.github.com/repos/eroispaziali/my-test-project/languages","stargazers_url":"https://api.github.com/repos/eroispaziali/my-test-project/stargazers","contributors_url":"https://api.github.com/repos/eroispaziali/my-test-project/contributors","subscribers_url":"https://api.github.com/repos/eroispaziali/my-test-project/subscribers","subscription_url":"https://api.github.com/repos/eroispaziali/my-test-project/subscription","commits_url":"https://api.github.com/repos/eroispaziali/my-test-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/eroispaziali/my-test-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/eroispaziali/my-test-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/eroispaziali/my-test-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/eroispaziali/my-test-project/contents/{+path}","compare_url":"https://api.github.com/repos/eroispaziali/my-test-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eroispaziali/my-test-project/merges","archive_url":"https://api.github.com/repos/eroispaziali/my-test-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eroispaziali/my-test-project/downloads","issues_url":"https://api.github.com/repos/eroispaziali/my-test-project/issues{/number}","pulls_url":"https://api.github.com/repos/eroispaziali/my-test-project/pulls{/number}","milestones_url":"https://api.github.com/repos/eroispaziali/my-test-project/milestones{/number}","notifications_url":"https://api.github.com/repos/eroispaziali/my-test-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eroispaziali/my-test-project/labels{/name}","releases_url":"https://api.github.com/repos/eroispaziali/my-test-project/releases{/id}","deployments_url":"https://api.github.com/repos/eroispaziali/my-test-project/deployments","created_at":"2016-04-29T15:41:45Z","updated_at":"2016-04-30T00:09:14Z","pushed_at":"2016-04-30T00:09:13Z","git_url":"git://github.com/eroispaziali/my-test-project.git","ssh_url":"git@github.com:eroispaziali/my-test-project.git","clone_url":"https://github.com/eroispaziali/my-test-project.git","svn_url":"https://github.com/eroispaziali/my-test-project","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":"Apex","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/1"},"html":{"href":"https://github.com/eroispaziali/my-test-project/pull/1"},"issue":{"href":"https://api.github.com/repos/eroispaziali/my-test-project/issues/1"},"comments":{"href":"https://api.github.com/repos/eroispaziali/my-test-project/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eroispaziali/my-test-project/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/eroispaziali/my-test-project/statuses/0526621cf37232b90915be49d86246f330faae34"}}}}