{"action":"created","comment":{"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments/57891210","id":57891210,"diff_hunk":"@@ -0,0 +1,39 @@\n+package com.kokhanyuk.javase05.myjunit.test;\n+\n+import java.lang.reflect.Method;\n+\n+/**\n+ * TestAnnotationAnalyzer\n+ *\n+ *This class contains methods for starting methods contain annotations.\n+ *\n+ * @author Olexandr Kokhanyuk\n+ * @version 1.0\n+ */\n+public class TestAnnotationAnalyzer {\n+    public void analyz(Class<?> testClass) throws Exception {\n+\n+        Method[] methods = testClass.getMethods();\n+        for (Method method : methods) {\n+            if (method.isAnnotationPresent(Test.class)) {\n+                Test test = method.getAnnotation(Test.class);\n+                boolean ignore = test.ignore();\n+                Class expected = test.expected();\n+                try {\n+                    if (!ignore) {\n+                        method.invoke(testClass.newInstance());\n+                        System.out.println(\"Method \" + method.getName() + \" is passed Test.\\n\");\n+                    } else {\n+                        System.out.println(\"Method \" + method.getName() + \" is ignored Test.\\n\");\n+                    }\n+                } catch (Exception e) {","path":"Oleksander_Kokhanyuk/Module 5 - Annotations and Generics/src/main/java/com/kokhanyuk/javase05/myjunit/test/TestAnnotationAnalyzer.java","position":29,"original_position":29,"commit_id":"61d9f7b92b81e453e5a335adffda7b1aa8fa3108","original_commit_id":"61d9f7b92b81e453e5a335adffda7b1aa8fa3108","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":"![CRITICAL](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-critical.png) Either log or rethrow this exception. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://localhost:9000/coding_rules#rule_key=squid%3AS1166)\n","created_at":"2016-03-30T13:52:13Z","updated_at":"2016-03-30T13:52:13Z","html_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/61#discussion_r57891210","pull_request_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments/57891210"},"html":{"href":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/61#discussion_r57891210"},"pull_request":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/61","id":64627798,"html_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/61","diff_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/61.diff","patch_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/61.patch","issue_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/61","number":61,"state":"open","locked":false,"title":"Oleksander Kokhanyuk: Module 5","user":{"login":"education2016-Kokhanyuk","id":17438244,"avatar_url":"https://avatars.githubusercontent.com/u/17438244?v=3","gravatar_id":"","url":"https://api.github.com/users/education2016-Kokhanyuk","html_url":"https://github.com/education2016-Kokhanyuk","followers_url":"https://api.github.com/users/education2016-Kokhanyuk/followers","following_url":"https://api.github.com/users/education2016-Kokhanyuk/following{/other_user}","gists_url":"https://api.github.com/users/education2016-Kokhanyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/education2016-Kokhanyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education2016-Kokhanyuk/subscriptions","organizations_url":"https://api.github.com/users/education2016-Kokhanyuk/orgs","repos_url":"https://api.github.com/users/education2016-Kokhanyuk/repos","events_url":"https://api.github.com/users/education2016-Kokhanyuk/events{/privacy}","received_events_url":"https://api.github.com/users/education2016-Kokhanyuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-30T13:34:13Z","updated_at":"2016-03-30T13:52:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4e4da75a49f920472df89840b60a70b078e1c40","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/61/commits","review_comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/61/comments","review_comment_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/61/comments","statuses_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/61d9f7b92b81e453e5a335adffda7b1aa8fa3108","head":{"label":"education2016-Kokhanyuk:master","ref":"master","sha":"61d9f7b92b81e453e5a335adffda7b1aa8fa3108","user":{"login":"education2016-Kokhanyuk","id":17438244,"avatar_url":"https://avatars.githubusercontent.com/u/17438244?v=3","gravatar_id":"","url":"https://api.github.com/users/education2016-Kokhanyuk","html_url":"https://github.com/education2016-Kokhanyuk","followers_url":"https://api.github.com/users/education2016-Kokhanyuk/followers","following_url":"https://api.github.com/users/education2016-Kokhanyuk/following{/other_user}","gists_url":"https://api.github.com/users/education2016-Kokhanyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/education2016-Kokhanyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education2016-Kokhanyuk/subscriptions","organizations_url":"https://api.github.com/users/education2016-Kokhanyuk/orgs","repos_url":"https://api.github.com/users/education2016-Kokhanyuk/repos","events_url":"https://api.github.com/users/education2016-Kokhanyuk/events{/privacy}","received_events_url":"https://api.github.com/users/education2016-Kokhanyuk/received_events","type":"User","site_admin":false},"repo":{"id":55064502,"name":"JavaCoreHomework","full_name":"education2016-Kokhanyuk/JavaCoreHomework","owner":{"login":"education2016-Kokhanyuk","id":17438244,"avatar_url":"https://avatars.githubusercontent.com/u/17438244?v=3","gravatar_id":"","url":"https://api.github.com/users/education2016-Kokhanyuk","html_url":"https://github.com/education2016-Kokhanyuk","followers_url":"https://api.github.com/users/education2016-Kokhanyuk/followers","following_url":"https://api.github.com/users/education2016-Kokhanyuk/following{/other_user}","gists_url":"https://api.github.com/users/education2016-Kokhanyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/education2016-Kokhanyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education2016-Kokhanyuk/subscriptions","organizations_url":"https://api.github.com/users/education2016-Kokhanyuk/orgs","repos_url":"https://api.github.com/users/education2016-Kokhanyuk/repos","events_url":"https://api.github.com/users/education2016-Kokhanyuk/events{/privacy}","received_events_url":"https://api.github.com/users/education2016-Kokhanyuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/education2016-Kokhanyuk/JavaCoreHomework","description":"","fork":true,"url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework","forks_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/forks","keys_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/teams","hooks_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/hooks","issue_events_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/issues/events{/number}","events_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/events","assignees_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/assignees{/user}","branches_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/branches{/branch}","tags_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/tags","blobs_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/git/refs{/sha}","trees_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/statuses/{sha}","languages_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/languages","stargazers_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/stargazers","contributors_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/contributors","subscribers_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/subscribers","subscription_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/subscription","commits_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/commits{/sha}","git_commits_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/git/commits{/sha}","comments_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/comments{/number}","issue_comment_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/issues/comments{/number}","contents_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/contents/{+path}","compare_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/merges","archive_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/downloads","issues_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/issues{/number}","pulls_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/pulls{/number}","milestones_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/milestones{/number}","notifications_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/labels{/name}","releases_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/releases{/id}","deployments_url":"https://api.github.com/repos/education2016-Kokhanyuk/JavaCoreHomework/deployments","created_at":"2016-03-30T13:17:03Z","updated_at":"2016-03-30T13:17:06Z","pushed_at":"2016-03-30T13:33:48Z","git_url":"git://github.com/education2016-Kokhanyuk/JavaCoreHomework.git","ssh_url":"git@github.com:education2016-Kokhanyuk/JavaCoreHomework.git","clone_url":"https://github.com/education2016-Kokhanyuk/JavaCoreHomework.git","svn_url":"https://github.com/education2016-Kokhanyuk/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-30T13:34:14Z","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":18,"mirror_url":null,"open_issues_count":14,"forks":18,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/61"},"html":{"href":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/61"},"issue":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/61"},"comments":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/61d9f7b92b81e453e5a335adffda7b1aa8fa3108"}}}}