{"action":"created","comment":{"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments/59545015","id":59545015,"diff_hunk":"@@ -0,0 +1,46 @@\n+package com.epam.task1;\n+\n+import org.junit.Test;\n+import org.xml.sax.SAXException;\n+\n+import javax.xml.parsers.ParserConfigurationException;\n+import javax.xml.stream.XMLStreamException;\n+import java.io.IOException;\n+\n+/**\n+ * Created by Yuriy Krishtop on 10.04.2016.\n+ */\n+public class ParsersTest {\n+\n+    String[] nameFile = {\"src/main/resources/test.xml\", \" \"};\n+\n+    @Test\n+    public void testSAXParser() {\n+        System.out.println(\"SAX parser:\");\n+        try {\n+            SAXParser.main(nameFile);\n+        } catch (ParserConfigurationException | SAXException | IOException e) {\n+            e.printStackTrace();\n+        }\n+    }\n+\n+    @Test\n+    public void testDOMParser() {\n+        System.out.println(\"DOM parser:\");\n+        try {\n+            DOMParser.main(nameFile);\n+        } catch (ParserConfigurationException | SAXException | IOException e) {\n+            e.printStackTrace();\n+        }\n+    }\n+\n+    @Test\n+    public void testStAXParser() {\n+        System.out.println(\"StAX parser:\");\n+        try {\n+            StAXParser.main(nameFile);\n+        } catch (XMLStreamException | IOException e) {","path":"Yuri_Krishtop/Module 7 - Java and XML programming/src/test/java/com/epam/task1/ParsersTest.java","position":42,"original_position":42,"commit_id":"92c033d5e663e2b1ac0ce5ad85fcc9fbfa1056ac","original_commit_id":"92c033d5e663e2b1ac0ce5ad85fcc9fbfa1056ac","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-04-13T13:16:18Z","updated_at":"2016-04-13T13:16:18Z","html_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/94#discussion_r59545015","pull_request_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments/59545015"},"html":{"href":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/94#discussion_r59545015"},"pull_request":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/94","id":66085028,"html_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/94","diff_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/94.diff","patch_url":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/94.patch","issue_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/94","number":94,"state":"open","locked":false,"title":"Yuriy Krishtop Module 7 - Java and XML programming","user":{"login":"YuriyKrishtop","id":17403771,"avatar_url":"https://avatars.githubusercontent.com/u/17403771?v=3","gravatar_id":"","url":"https://api.github.com/users/YuriyKrishtop","html_url":"https://github.com/YuriyKrishtop","followers_url":"https://api.github.com/users/YuriyKrishtop/followers","following_url":"https://api.github.com/users/YuriyKrishtop/following{/other_user}","gists_url":"https://api.github.com/users/YuriyKrishtop/gists{/gist_id}","starred_url":"https://api.github.com/users/YuriyKrishtop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuriyKrishtop/subscriptions","organizations_url":"https://api.github.com/users/YuriyKrishtop/orgs","repos_url":"https://api.github.com/users/YuriyKrishtop/repos","events_url":"https://api.github.com/users/YuriyKrishtop/events{/privacy}","received_events_url":"https://api.github.com/users/YuriyKrishtop/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-12T00:43:27Z","updated_at":"2016-04-13T13:16:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b1531bbb4fab4cd593910cd0c0738b20e374c42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/94/commits","review_comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/94/comments","review_comment_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/94/comments","statuses_url":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/92c033d5e663e2b1ac0ce5ad85fcc9fbfa1056ac","head":{"label":"YuriyKrishtop:master","ref":"master","sha":"92c033d5e663e2b1ac0ce5ad85fcc9fbfa1056ac","user":{"login":"YuriyKrishtop","id":17403771,"avatar_url":"https://avatars.githubusercontent.com/u/17403771?v=3","gravatar_id":"","url":"https://api.github.com/users/YuriyKrishtop","html_url":"https://github.com/YuriyKrishtop","followers_url":"https://api.github.com/users/YuriyKrishtop/followers","following_url":"https://api.github.com/users/YuriyKrishtop/following{/other_user}","gists_url":"https://api.github.com/users/YuriyKrishtop/gists{/gist_id}","starred_url":"https://api.github.com/users/YuriyKrishtop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuriyKrishtop/subscriptions","organizations_url":"https://api.github.com/users/YuriyKrishtop/orgs","repos_url":"https://api.github.com/users/YuriyKrishtop/repos","events_url":"https://api.github.com/users/YuriyKrishtop/events{/privacy}","received_events_url":"https://api.github.com/users/YuriyKrishtop/received_events","type":"User","site_admin":false},"repo":{"id":56018060,"name":"JavaCoreHomework","full_name":"YuriyKrishtop/JavaCoreHomework","owner":{"login":"YuriyKrishtop","id":17403771,"avatar_url":"https://avatars.githubusercontent.com/u/17403771?v=3","gravatar_id":"","url":"https://api.github.com/users/YuriyKrishtop","html_url":"https://github.com/YuriyKrishtop","followers_url":"https://api.github.com/users/YuriyKrishtop/followers","following_url":"https://api.github.com/users/YuriyKrishtop/following{/other_user}","gists_url":"https://api.github.com/users/YuriyKrishtop/gists{/gist_id}","starred_url":"https://api.github.com/users/YuriyKrishtop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuriyKrishtop/subscriptions","organizations_url":"https://api.github.com/users/YuriyKrishtop/orgs","repos_url":"https://api.github.com/users/YuriyKrishtop/repos","events_url":"https://api.github.com/users/YuriyKrishtop/events{/privacy}","received_events_url":"https://api.github.com/users/YuriyKrishtop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YuriyKrishtop/JavaCoreHomework","description":"","fork":true,"url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework","forks_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/forks","keys_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/teams","hooks_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/hooks","issue_events_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/issues/events{/number}","events_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/events","assignees_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/assignees{/user}","branches_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/branches{/branch}","tags_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/tags","blobs_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/git/refs{/sha}","trees_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/statuses/{sha}","languages_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/languages","stargazers_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/stargazers","contributors_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/contributors","subscribers_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/subscribers","subscription_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/subscription","commits_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/commits{/sha}","git_commits_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/git/commits{/sha}","comments_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/comments{/number}","issue_comment_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/issues/comments{/number}","contents_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/contents/{+path}","compare_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/merges","archive_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/downloads","issues_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/issues{/number}","pulls_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/pulls{/number}","milestones_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/milestones{/number}","notifications_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/labels{/name}","releases_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/releases{/id}","deployments_url":"https://api.github.com/repos/YuriyKrishtop/JavaCoreHomework/deployments","created_at":"2016-04-12T00:34:51Z","updated_at":"2016-04-12T00:34:53Z","pushed_at":"2016-04-13T11:42:55Z","git_url":"git://github.com/YuriyKrishtop/JavaCoreHomework.git","ssh_url":"git@github.com:YuriyKrishtop/JavaCoreHomework.git","clone_url":"https://github.com/YuriyKrishtop/JavaCoreHomework.git","svn_url":"https://github.com/YuriyKrishtop/JavaCoreHomework","homepage":null,"size":3045,"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":"cf876683c99f8214d8919de6452371daaf37288e","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-04-07T16:35:36Z","pushed_at":"2016-04-13T11:42:55Z","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":6131,"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":6,"forks":18,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/94"},"html":{"href":"https://github.com/technicaltaskjava/JavaCoreHomework/pull/94"},"issue":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/94"},"comments":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/technicaltaskjava/JavaCoreHomework/statuses/92c033d5e663e2b1ac0ce5ad85fcc9fbfa1056ac"}}}}