{"action":"created","comment":{"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments/57874869","id":57874869,"diff_hunk":"@@ -0,0 +1,47 @@\n+import tester.Test;\n+\n+import java.lang.reflect.Method;\n+\n+/**\n+ * @author Alexey Ushakov\n+ */\n+public class MenuTester {\n+    public static void main(String[] args) {\n+        Class testedClass = TestedClass.class;\n+        Method[] methods = testedClass.getDeclaredMethods();\n+\n+        for (Method method : methods) {\n+            if (method.isAnnotationPresent(Test.class)) {\n+                Test annotation = method.getAnnotation(Test.class);\n+                if (annotation.ignore()) {\n+                    System.out.println(\"IGNORE\\nMethod \" + method.getName() + '\\n');\n+                } else {\n+                    Class<? extends Throwable> expected = annotation.expected();\n+                    try {\n+                        method.invoke(testedClass.newInstance());\n+                        System.out.println(\"PASSED\\nMethod \" + method.getName() + '\\n');\n+                    } catch (Exception e) {\n+                        String message = e.getCause().getMessage();\n+                        if (e.getCause().getClass() == expected) {\n+                            System.out.println(\"PASSED\\nMethod \" + method.getName());\n+                            System.out.println(\" - Expected: \" + expected);","path":"Oleksii_Ushakov/Module 5 - Annotations and Generics/JUnit Analogue/src/main/java/MenuTester.java","position":27,"original_position":27,"commit_id":"dc381f3c20934cc612e395514cbc7fc20f76c662","original_commit_id":"dc381f3c20934cc612e395514cbc7fc20f76c662","user":{"login":"technicaltaskjava","id":17650564,"avatar_url":"https://avatars.githubusercontent.com/u/17650564?v=3","gravatar_id":"","url":"https://api.github.com/users/technicaltaskjava","html_url":"https://github.com/technicaltaskjava","followers_url":"https://api.github.com/users/technicaltaskjava/followers","following_url":"https://api.github.com/users/technicaltaskjava/following{/other_user}","gists_url":"https://api.github.com/users/technicaltaskjava/gists{/gist_id}","starred_url":"https://api.github.com/users/technicaltaskjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicaltaskjava/subscriptions","organizations_url":"https://api.github.com/users/technicaltaskjava/orgs","repos_url":"https://api.github.com/users/technicaltaskjava/repos","events_url":"https://api.github.com/users/technicaltaskjava/events{/privacy}","received_events_url":"https://api.github.com/users/technicaltaskjava/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) Replace this usage of System.out or System.err by a logger. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://localhost:9000/coding_rules#rule_key=squid%3AS106)\n","created_at":"2016-03-30T11:45:07Z","updated_at":"2016-03-30T11:45:07Z","html_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/48#discussion_r57874869","pull_request_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments/57874869"},"html":{"href":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/48#discussion_r57874869"},"pull_request":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/48","id":64345061,"html_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/48","diff_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/48.diff","patch_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/48.patch","issue_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/48","number":48,"state":"open","locked":false,"title":"Oleksii Ushakov Module 5 - Annotations and Generics","user":{"login":"AugustPrime","id":5373587,"avatar_url":"https://avatars.githubusercontent.com/u/5373587?v=3","gravatar_id":"","url":"https://api.github.com/users/AugustPrime","html_url":"https://github.com/AugustPrime","followers_url":"https://api.github.com/users/AugustPrime/followers","following_url":"https://api.github.com/users/AugustPrime/following{/other_user}","gists_url":"https://api.github.com/users/AugustPrime/gists{/gist_id}","starred_url":"https://api.github.com/users/AugustPrime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AugustPrime/subscriptions","organizations_url":"https://api.github.com/users/AugustPrime/orgs","repos_url":"https://api.github.com/users/AugustPrime/repos","events_url":"https://api.github.com/users/AugustPrime/events{/privacy}","received_events_url":"https://api.github.com/users/AugustPrime/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-28T17:12:11Z","updated_at":"2016-03-30T11:45:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ed91db00d369b3da357052b6dddecee56046bed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/48/commits","review_comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/48/comments","review_comment_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/48/comments","statuses_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/dc381f3c20934cc612e395514cbc7fc20f76c662","head":{"label":"AugustPrime:master","ref":"master","sha":"dc381f3c20934cc612e395514cbc7fc20f76c662","user":{"login":"AugustPrime","id":5373587,"avatar_url":"https://avatars.githubusercontent.com/u/5373587?v=3","gravatar_id":"","url":"https://api.github.com/users/AugustPrime","html_url":"https://github.com/AugustPrime","followers_url":"https://api.github.com/users/AugustPrime/followers","following_url":"https://api.github.com/users/AugustPrime/following{/other_user}","gists_url":"https://api.github.com/users/AugustPrime/gists{/gist_id}","starred_url":"https://api.github.com/users/AugustPrime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AugustPrime/subscriptions","organizations_url":"https://api.github.com/users/AugustPrime/orgs","repos_url":"https://api.github.com/users/AugustPrime/repos","events_url":"https://api.github.com/users/AugustPrime/events{/privacy}","received_events_url":"https://api.github.com/users/AugustPrime/received_events","type":"User","site_admin":false},"repo":{"id":54908685,"name":"JavaCoreHomework","full_name":"AugustPrime/JavaCoreHomework","owner":{"login":"AugustPrime","id":5373587,"avatar_url":"https://avatars.githubusercontent.com/u/5373587?v=3","gravatar_id":"","url":"https://api.github.com/users/AugustPrime","html_url":"https://github.com/AugustPrime","followers_url":"https://api.github.com/users/AugustPrime/followers","following_url":"https://api.github.com/users/AugustPrime/following{/other_user}","gists_url":"https://api.github.com/users/AugustPrime/gists{/gist_id}","starred_url":"https://api.github.com/users/AugustPrime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AugustPrime/subscriptions","organizations_url":"https://api.github.com/users/AugustPrime/orgs","repos_url":"https://api.github.com/users/AugustPrime/repos","events_url":"https://api.github.com/users/AugustPrime/events{/privacy}","received_events_url":"https://api.github.com/users/AugustPrime/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AugustPrime/JavaCoreHomework","description":"","fork":true,"url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework","forks_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/forks","keys_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/teams","hooks_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/hooks","issue_events_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/issues/events{/number}","events_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/events","assignees_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/assignees{/user}","branches_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/branches{/branch}","tags_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/tags","blobs_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/git/refs{/sha}","trees_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/statuses/{sha}","languages_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/languages","stargazers_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/stargazers","contributors_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/contributors","subscribers_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/subscribers","subscription_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/subscription","commits_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/commits{/sha}","git_commits_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/git/commits{/sha}","comments_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/comments{/number}","issue_comment_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/issues/comments{/number}","contents_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/contents/{+path}","compare_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/merges","archive_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/downloads","issues_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/issues{/number}","pulls_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/pulls{/number}","milestones_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/milestones{/number}","notifications_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/labels{/name}","releases_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/releases{/id}","deployments_url":"https://api.github.com/repos/AugustPrime/JavaCoreHomework/deployments","created_at":"2016-03-28T17:07:12Z","updated_at":"2016-03-28T17:07:14Z","pushed_at":"2016-03-28T17:11:50Z","git_url":"git://github.com/AugustPrime/JavaCoreHomework.git","ssh_url":"git@github.com:AugustPrime/JavaCoreHomework.git","clone_url":"https://github.com/AugustPrime/JavaCoreHomework.git","svn_url":"https://github.com/AugustPrime/JavaCoreHomework","homepage":null,"size":2498,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"technicaltaskjava:master","ref":"master","sha":"d4c31067c40b94f1487b64656f7552a40edcddf3","user":{"login":"technicaltaskjava","id":17650564,"avatar_url":"https://avatars.githubusercontent.com/u/17650564?v=3","gravatar_id":"","url":"https://api.github.com/users/technicaltaskjava","html_url":"https://github.com/technicaltaskjava","followers_url":"https://api.github.com/users/technicaltaskjava/followers","following_url":"https://api.github.com/users/technicaltaskjava/following{/other_user}","gists_url":"https://api.github.com/users/technicaltaskjava/gists{/gist_id}","starred_url":"https://api.github.com/users/technicaltaskjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicaltaskjava/subscriptions","organizations_url":"https://api.github.com/users/technicaltaskjava/orgs","repos_url":"https://api.github.com/users/technicaltaskjava/repos","events_url":"https://api.github.com/users/technicaltaskjava/events{/privacy}","received_events_url":"https://api.github.com/users/technicaltaskjava/received_events","type":"User","site_admin":false},"repo":{"id":53159830,"name":"JavaCoreHomework","full_name":"technicaltaskjava/JavaCoreHomework","owner":{"login":"technicaltaskjava","id":17650564,"avatar_url":"https://avatars.githubusercontent.com/u/17650564?v=3","gravatar_id":"","url":"https://api.github.com/users/technicaltaskjava","html_url":"https://github.com/technicaltaskjava","followers_url":"https://api.github.com/users/technicaltaskjava/followers","following_url":"https://api.github.com/users/technicaltaskjava/following{/other_user}","gists_url":"https://api.github.com/users/technicaltaskjava/gists{/gist_id}","starred_url":"https://api.github.com/users/technicaltaskjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicaltaskjava/subscriptions","organizations_url":"https://api.github.com/users/technicaltaskjava/orgs","repos_url":"https://api.github.com/users/technicaltaskjava/repos","events_url":"https://api.github.com/users/technicaltaskjava/events{/privacy}","received_events_url":"https://api.github.com/users/technicaltaskjava/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/technicaltaskjava/JavaCoreHomework","description":"","fork":false,"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework","forks_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/forks","keys_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/teams","hooks_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/hooks","issue_events_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/events{/number}","events_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/events","assignees_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/assignees{/user}","branches_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/branches{/branch}","tags_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/tags","blobs_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/refs{/sha}","trees_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/{sha}","languages_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/languages","stargazers_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/stargazers","contributors_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/contributors","subscribers_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/subscribers","subscription_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/subscription","commits_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/commits{/sha}","git_commits_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/git/commits{/sha}","comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/comments{/number}","issue_comment_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/comments{/number}","contents_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/contents/{+path}","compare_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/merges","archive_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/downloads","issues_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues{/number}","pulls_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls{/number}","milestones_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/milestones{/number}","notifications_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/labels{/name}","releases_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/releases{/id}","deployments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/deployments","created_at":"2016-03-04T19:19:59Z","updated_at":"2016-03-27T13:56:52Z","pushed_at":"2016-03-29T21:16:24Z","git_url":"git://github.com/technicaltaskjava/JavaCoreHomework.git","ssh_url":"git@github.com:technicaltaskjava/JavaCoreHomework.git","clone_url":"https://github.com/technicaltaskjava/JavaCoreHomework.git","svn_url":"https://github.com/technicaltaskjava/JavaCoreHomework","homepage":null,"size":2531,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":13,"forks":17,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/48"},"html":{"href":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/48"},"issue":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/48"},"comments":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/dc381f3c20934cc612e395514cbc7fc20f76c662"}}}}