{"action":"created","comment":{"url":"https://api.github.com/repos/ByteHamster/PSE/pulls/comments/108035324","pull_request_review_id":29046489,"id":108035324,"diff_hunk":"@@ -0,0 +1,61 @@\n+package edu.kit.pse.osip.monitoring.view.settings;\n+\n+import edu.kit.pse.osip.core.OSIPConstants;\n+import edu.kit.pse.osip.core.io.files.ClientSettingsWrapper;\n+import edu.kit.pse.osip.core.model.base.TankSelector;\n+import java.io.File;\n+import java.io.IOException;\n+import java.io.PrintWriter;\n+import org.junit.After;\n+import org.testfx.framework.junit.ApplicationTest;\n+\n+/**\n+ * Abstract test class for the settings. It provides a ClientSettingsWrapper instance.\n+ * \n+ * @author Martin Armbruster\n+ * @version 1.0\n+ */\n+public abstract class SettingsTest extends ApplicationTest {\n+    /**\n+     * A temporary file with the settings.\n+     */\n+    private File tempTestFile;\n+    /**\n+     * The usable ClientSettingsWrapper instance.\n+     */\n+    protected ClientSettingsWrapper wrapper;\n+    \n+    /**\n+     * Setups the ClientSettingsWrapper instance.\n+     * \n+     * @throws IOException when something goes wrong.\n+     */\n+    protected void prepareWrapper() throws IOException {\n+        tempTestFile = File.createTempFile(\"testClientSettingsTemp\", \".properties\");        \n+        PrintWriter outStream = new PrintWriter(tempTestFile);     \n+        outStream.println(\"fetchInterval=80\");\n+        int port = OSIPConstants.DEFAULT_PORT_MIX;\n+        for (TankSelector tank : TankSelector.values()) {\n+            outStream.println(\"overflowAlarm_\" + tank + \"=\" + \"false\");","path":"src/osip-monitoring-view/src/test/java/edu/kit/pse/osip/monitoring/view/settings/SettingsTest.java","position":null,"original_position":39,"commit_id":"c6e759cbd78f993cae00c20248e542b9c3557c0b","original_commit_id":"2f8ab5d8705cf59b24317c7d24681f5bc82f1aca","user":{"login":"HansMartinA","id":23618805,"avatar_url":"https://avatars3.githubusercontent.com/u/23618805?v=3","gravatar_id":"","url":"https://api.github.com/users/HansMartinA","html_url":"https://github.com/HansMartinA","followers_url":"https://api.github.com/users/HansMartinA/followers","following_url":"https://api.github.com/users/HansMartinA/following{/other_user}","gists_url":"https://api.github.com/users/HansMartinA/gists{/gist_id}","starred_url":"https://api.github.com/users/HansMartinA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HansMartinA/subscriptions","organizations_url":"https://api.github.com/users/HansMartinA/orgs","repos_url":"https://api.github.com/users/HansMartinA/repos","events_url":"https://api.github.com/users/HansMartinA/events{/privacy}","received_events_url":"https://api.github.com/users/HansMartinA/received_events","type":"User","site_admin":false},"body":"Erledigt.","created_at":"2017-03-25T12:36:47Z","updated_at":"2017-03-25T12:36:47Z","html_url":"https://github.com/ByteHamster/PSE/pull/441#discussion_r108035324","pull_request_url":"https://api.github.com/repos/ByteHamster/PSE/pulls/441","_links":{"self":{"href":"https://api.github.com/repos/ByteHamster/PSE/pulls/comments/108035324"},"html":{"href":"https://github.com/ByteHamster/PSE/pull/441#discussion_r108035324"},"pull_request":{"href":"https://api.github.com/repos/ByteHamster/PSE/pulls/441"}}},"pull_request":{"url":"https://api.github.com/repos/ByteHamster/PSE/pulls/441","id":112303034,"html_url":"https://github.com/ByteHamster/PSE/pull/441","diff_url":"https://github.com/ByteHamster/PSE/pull/441.diff","patch_url":"https://github.com/ByteHamster/PSE/pull/441.patch","issue_url":"https://api.github.com/repos/ByteHamster/PSE/issues/441","number":441,"state":"open","locked":false,"title":"Tests für die Überwachungskonsole","user":{"login":"HansMartinA","id":23618805,"avatar_url":"https://avatars3.githubusercontent.com/u/23618805?v=3","gravatar_id":"","url":"https://api.github.com/users/HansMartinA","html_url":"https://github.com/HansMartinA","followers_url":"https://api.github.com/users/HansMartinA/followers","following_url":"https://api.github.com/users/HansMartinA/following{/other_user}","gists_url":"https://api.github.com/users/HansMartinA/gists{/gist_id}","starred_url":"https://api.github.com/users/HansMartinA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HansMartinA/subscriptions","organizations_url":"https://api.github.com/users/HansMartinA/orgs","repos_url":"https://api.github.com/users/HansMartinA/repos","events_url":"https://api.github.com/users/HansMartinA/events{/privacy}","received_events_url":"https://api.github.com/users/HansMartinA/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-23T18:05:19Z","updated_at":"2017-03-25T12:36:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72d10cfb286262fa469d1865bb774a6bca2bd747","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ByteHamster/PSE/pulls/441/commits","review_comments_url":"https://api.github.com/repos/ByteHamster/PSE/pulls/441/comments","review_comment_url":"https://api.github.com/repos/ByteHamster/PSE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ByteHamster/PSE/issues/441/comments","statuses_url":"https://api.github.com/repos/ByteHamster/PSE/statuses/c6e759cbd78f993cae00c20248e542b9c3557c0b","head":{"label":"ByteHamster:tests1","ref":"tests1","sha":"c6e759cbd78f993cae00c20248e542b9c3557c0b","user":{"login":"ByteHamster","id":5811634,"avatar_url":"https://avatars3.githubusercontent.com/u/5811634?v=3","gravatar_id":"","url":"https://api.github.com/users/ByteHamster","html_url":"https://github.com/ByteHamster","followers_url":"https://api.github.com/users/ByteHamster/followers","following_url":"https://api.github.com/users/ByteHamster/following{/other_user}","gists_url":"https://api.github.com/users/ByteHamster/gists{/gist_id}","starred_url":"https://api.github.com/users/ByteHamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByteHamster/subscriptions","organizations_url":"https://api.github.com/users/ByteHamster/orgs","repos_url":"https://api.github.com/users/ByteHamster/repos","events_url":"https://api.github.com/users/ByteHamster/events{/privacy}","received_events_url":"https://api.github.com/users/ByteHamster/received_events","type":"User","site_admin":false},"repo":{"id":74042107,"name":"PSE","full_name":"ByteHamster/PSE","owner":{"login":"ByteHamster","id":5811634,"avatar_url":"https://avatars3.githubusercontent.com/u/5811634?v=3","gravatar_id":"","url":"https://api.github.com/users/ByteHamster","html_url":"https://github.com/ByteHamster","followers_url":"https://api.github.com/users/ByteHamster/followers","following_url":"https://api.github.com/users/ByteHamster/following{/other_user}","gists_url":"https://api.github.com/users/ByteHamster/gists{/gist_id}","starred_url":"https://api.github.com/users/ByteHamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByteHamster/subscriptions","organizations_url":"https://api.github.com/users/ByteHamster/orgs","repos_url":"https://api.github.com/users/ByteHamster/repos","events_url":"https://api.github.com/users/ByteHamster/events{/privacy}","received_events_url":"https://api.github.com/users/ByteHamster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ByteHamster/PSE","description":"Praxis der Softwareentwicklung 2016/17 am KIT","fork":false,"url":"https://api.github.com/repos/ByteHamster/PSE","forks_url":"https://api.github.com/repos/ByteHamster/PSE/forks","keys_url":"https://api.github.com/repos/ByteHamster/PSE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ByteHamster/PSE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ByteHamster/PSE/teams","hooks_url":"https://api.github.com/repos/ByteHamster/PSE/hooks","issue_events_url":"https://api.github.com/repos/ByteHamster/PSE/issues/events{/number}","events_url":"https://api.github.com/repos/ByteHamster/PSE/events","assignees_url":"https://api.github.com/repos/ByteHamster/PSE/assignees{/user}","branches_url":"https://api.github.com/repos/ByteHamster/PSE/branches{/branch}","tags_url":"https://api.github.com/repos/ByteHamster/PSE/tags","blobs_url":"https://api.github.com/repos/ByteHamster/PSE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ByteHamster/PSE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ByteHamster/PSE/git/refs{/sha}","trees_url":"https://api.github.com/repos/ByteHamster/PSE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ByteHamster/PSE/statuses/{sha}","languages_url":"https://api.github.com/repos/ByteHamster/PSE/languages","stargazers_url":"https://api.github.com/repos/ByteHamster/PSE/stargazers","contributors_url":"https://api.github.com/repos/ByteHamster/PSE/contributors","subscribers_url":"https://api.github.com/repos/ByteHamster/PSE/subscribers","subscription_url":"https://api.github.com/repos/ByteHamster/PSE/subscription","commits_url":"https://api.github.com/repos/ByteHamster/PSE/commits{/sha}","git_commits_url":"https://api.github.com/repos/ByteHamster/PSE/git/commits{/sha}","comments_url":"https://api.github.com/repos/ByteHamster/PSE/comments{/number}","issue_comment_url":"https://api.github.com/repos/ByteHamster/PSE/issues/comments{/number}","contents_url":"https://api.github.com/repos/ByteHamster/PSE/contents/{+path}","compare_url":"https://api.github.com/repos/ByteHamster/PSE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ByteHamster/PSE/merges","archive_url":"https://api.github.com/repos/ByteHamster/PSE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ByteHamster/PSE/downloads","issues_url":"https://api.github.com/repos/ByteHamster/PSE/issues{/number}","pulls_url":"https://api.github.com/repos/ByteHamster/PSE/pulls{/number}","milestones_url":"https://api.github.com/repos/ByteHamster/PSE/milestones{/number}","notifications_url":"https://api.github.com/repos/ByteHamster/PSE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ByteHamster/PSE/labels{/name}","releases_url":"https://api.github.com/repos/ByteHamster/PSE/releases{/id}","deployments_url":"https://api.github.com/repos/ByteHamster/PSE/deployments","created_at":"2016-11-17T15:49:11Z","updated_at":"2017-03-16T09:46:16Z","pushed_at":"2017-03-25T12:36:25Z","git_url":"git://github.com/ByteHamster/PSE.git","ssh_url":"git@github.com:ByteHamster/PSE.git","clone_url":"https://github.com/ByteHamster/PSE.git","svn_url":"https://github.com/ByteHamster/PSE","homepage":"","size":18070,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"base":{"label":"ByteHamster:master","ref":"master","sha":"063f09af4da895bd75e0e43fbc0028a6598dbdda","user":{"login":"ByteHamster","id":5811634,"avatar_url":"https://avatars3.githubusercontent.com/u/5811634?v=3","gravatar_id":"","url":"https://api.github.com/users/ByteHamster","html_url":"https://github.com/ByteHamster","followers_url":"https://api.github.com/users/ByteHamster/followers","following_url":"https://api.github.com/users/ByteHamster/following{/other_user}","gists_url":"https://api.github.com/users/ByteHamster/gists{/gist_id}","starred_url":"https://api.github.com/users/ByteHamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByteHamster/subscriptions","organizations_url":"https://api.github.com/users/ByteHamster/orgs","repos_url":"https://api.github.com/users/ByteHamster/repos","events_url":"https://api.github.com/users/ByteHamster/events{/privacy}","received_events_url":"https://api.github.com/users/ByteHamster/received_events","type":"User","site_admin":false},"repo":{"id":74042107,"name":"PSE","full_name":"ByteHamster/PSE","owner":{"login":"ByteHamster","id":5811634,"avatar_url":"https://avatars3.githubusercontent.com/u/5811634?v=3","gravatar_id":"","url":"https://api.github.com/users/ByteHamster","html_url":"https://github.com/ByteHamster","followers_url":"https://api.github.com/users/ByteHamster/followers","following_url":"https://api.github.com/users/ByteHamster/following{/other_user}","gists_url":"https://api.github.com/users/ByteHamster/gists{/gist_id}","starred_url":"https://api.github.com/users/ByteHamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByteHamster/subscriptions","organizations_url":"https://api.github.com/users/ByteHamster/orgs","repos_url":"https://api.github.com/users/ByteHamster/repos","events_url":"https://api.github.com/users/ByteHamster/events{/privacy}","received_events_url":"https://api.github.com/users/ByteHamster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ByteHamster/PSE","description":"Praxis der Softwareentwicklung 2016/17 am KIT","fork":false,"url":"https://api.github.com/repos/ByteHamster/PSE","forks_url":"https://api.github.com/repos/ByteHamster/PSE/forks","keys_url":"https://api.github.com/repos/ByteHamster/PSE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ByteHamster/PSE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ByteHamster/PSE/teams","hooks_url":"https://api.github.com/repos/ByteHamster/PSE/hooks","issue_events_url":"https://api.github.com/repos/ByteHamster/PSE/issues/events{/number}","events_url":"https://api.github.com/repos/ByteHamster/PSE/events","assignees_url":"https://api.github.com/repos/ByteHamster/PSE/assignees{/user}","branches_url":"https://api.github.com/repos/ByteHamster/PSE/branches{/branch}","tags_url":"https://api.github.com/repos/ByteHamster/PSE/tags","blobs_url":"https://api.github.com/repos/ByteHamster/PSE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ByteHamster/PSE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ByteHamster/PSE/git/refs{/sha}","trees_url":"https://api.github.com/repos/ByteHamster/PSE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ByteHamster/PSE/statuses/{sha}","languages_url":"https://api.github.com/repos/ByteHamster/PSE/languages","stargazers_url":"https://api.github.com/repos/ByteHamster/PSE/stargazers","contributors_url":"https://api.github.com/repos/ByteHamster/PSE/contributors","subscribers_url":"https://api.github.com/repos/ByteHamster/PSE/subscribers","subscription_url":"https://api.github.com/repos/ByteHamster/PSE/subscription","commits_url":"https://api.github.com/repos/ByteHamster/PSE/commits{/sha}","git_commits_url":"https://api.github.com/repos/ByteHamster/PSE/git/commits{/sha}","comments_url":"https://api.github.com/repos/ByteHamster/PSE/comments{/number}","issue_comment_url":"https://api.github.com/repos/ByteHamster/PSE/issues/comments{/number}","contents_url":"https://api.github.com/repos/ByteHamster/PSE/contents/{+path}","compare_url":"https://api.github.com/repos/ByteHamster/PSE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ByteHamster/PSE/merges","archive_url":"https://api.github.com/repos/ByteHamster/PSE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ByteHamster/PSE/downloads","issues_url":"https://api.github.com/repos/ByteHamster/PSE/issues{/number}","pulls_url":"https://api.github.com/repos/ByteHamster/PSE/pulls{/number}","milestones_url":"https://api.github.com/repos/ByteHamster/PSE/milestones{/number}","notifications_url":"https://api.github.com/repos/ByteHamster/PSE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ByteHamster/PSE/labels{/name}","releases_url":"https://api.github.com/repos/ByteHamster/PSE/releases{/id}","deployments_url":"https://api.github.com/repos/ByteHamster/PSE/deployments","created_at":"2016-11-17T15:49:11Z","updated_at":"2017-03-16T09:46:16Z","pushed_at":"2017-03-25T12:36:25Z","git_url":"git://github.com/ByteHamster/PSE.git","ssh_url":"git@github.com:ByteHamster/PSE.git","clone_url":"https://github.com/ByteHamster/PSE.git","svn_url":"https://github.com/ByteHamster/PSE","homepage":"","size":18070,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ByteHamster/PSE/pulls/441"},"html":{"href":"https://github.com/ByteHamster/PSE/pull/441"},"issue":{"href":"https://api.github.com/repos/ByteHamster/PSE/issues/441"},"comments":{"href":"https://api.github.com/repos/ByteHamster/PSE/issues/441/comments"},"review_comments":{"href":"https://api.github.com/repos/ByteHamster/PSE/pulls/441/comments"},"review_comment":{"href":"https://api.github.com/repos/ByteHamster/PSE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ByteHamster/PSE/pulls/441/commits"},"statuses":{"href":"https://api.github.com/repos/ByteHamster/PSE/statuses/c6e759cbd78f993cae00c20248e542b9c3557c0b"}}}}
{"actor":{"display_login":"HansMartinA"}}