{"action":"created","comment":{"url":"https://api.github.com/repos/griddynamics/jagger/pulls/comments/87827481","pull_request_review_id":8422839,"id":87827481,"diff_hunk":"@@ -37,25 +39,49 @@\n     private MetricLogProcessor metricLogProcessor;\n     private ProfilerLogProcessor profilerLogProcessor;\n     private DurationLogProcessor durationLogProcessor;\n-    private Map<String, JTestSuite> userJTestSuites;\n+    private Map<String, JTestSuite> userJTestSuites = Collections.emptyMap();\n+    private boolean useBuilders;\n+    private final String jTestSuiteNameToExecute;\n+    private Map<String, Configuration> configurations = Collections.emptyMap();\n+    \n+    public ConfigurationGenerator(String jTestSuiteNameToExecute) {\n+        this.jTestSuiteNameToExecute = jTestSuiteNameToExecute;\n+    }\n     \n     public Set<String> getUserJTestSuiteNames() {\n-        if (userJTestSuites == null) {\n-            return Collections.emptySet();\n+        if (useBuilders) {\n+            return new HashSet<>(userJTestSuites.keySet());\n         }\n-        return new HashSet<>(userJTestSuites.keySet());\n+        return new HashSet<>(configurations.keySet());\n     }\n     \n     @Autowired(required = false)\n     public void setUserJTestSuites(List<JTestSuite> userJTestSuites) {\n         this.userJTestSuites = userJTestSuites.stream().collect(Collectors.toMap(JTestSuite::getId, identity()));\n     }\n     \n+    @Autowired(required = false)\n+    public void setConfigurations(Map<String, Configuration> configurations) {\n+        this.configurations = configurations;\n+    }\n+    \n+    public Configuration generate() {\n+        if (useBuilders) {\n+            return generate(jTestSuiteNameToExecute);\n+        }\n+\n+        Configuration configuration = configurations.get(jTestSuiteNameToExecute);\n+        if (configuration == null) {\n+            throw new IllegalArgumentException(String.format(\"No Jagger configuration with name %s\", jTestSuiteNameToExecute));\n+        }\n+        return configuration;\n+    }\n+    \n+    \n     public Configuration generate(String userJTestSuiteName) {","path":"chassis/core/src/main/java/com/griddynamics/jagger/util/generators/ConfigurationGenerator.java","position":56,"original_position":56,"commit_id":"88824af28ad319c16b0052af8e0733edf632cc98","original_commit_id":"88824af28ad319c16b0052af8e0733edf632cc98","user":{"login":"a-badaev","id":1729467,"avatar_url":"https://avatars.githubusercontent.com/u/1729467?v=3","gravatar_id":"","url":"https://api.github.com/users/a-badaev","html_url":"https://github.com/a-badaev","followers_url":"https://api.github.com/users/a-badaev/followers","following_url":"https://api.github.com/users/a-badaev/following{/other_user}","gists_url":"https://api.github.com/users/a-badaev/gists{/gist_id}","starred_url":"https://api.github.com/users/a-badaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-badaev/subscriptions","organizations_url":"https://api.github.com/users/a-badaev/orgs","repos_url":"https://api.github.com/users/a-badaev/repos","events_url":"https://api.github.com/users/a-badaev/events{/privacy}","received_events_url":"https://api.github.com/users/a-badaev/received_events","type":"User","site_admin":false},"body":"i mean if you get rid of it there are no way to trigger any other test except the one with the name you passed to the constructor","created_at":"2016-11-14T15:49:36Z","updated_at":"2016-11-14T15:49:36Z","html_url":"https://github.com/griddynamics/jagger/pull/681#discussion_r87827481","pull_request_url":"https://api.github.com/repos/griddynamics/jagger/pulls/681","_links":{"self":{"href":"https://api.github.com/repos/griddynamics/jagger/pulls/comments/87827481"},"html":{"href":"https://github.com/griddynamics/jagger/pull/681#discussion_r87827481"},"pull_request":{"href":"https://api.github.com/repos/griddynamics/jagger/pulls/681"}}},"pull_request":{"url":"https://api.github.com/repos/griddynamics/jagger/pulls/681","id":93569721,"html_url":"https://github.com/griddynamics/jagger/pull/681","diff_url":"https://github.com/griddynamics/jagger/pull/681.diff","patch_url":"https://github.com/griddynamics/jagger/pull/681.patch","issue_url":"https://api.github.com/repos/griddynamics/jagger/issues/681","number":681,"state":"open","locked":false,"title":"[JFG-964] Tests generated from archetype for java builder doesn't work","user":{"login":"a-badaev","id":1729467,"avatar_url":"https://avatars.githubusercontent.com/u/1729467?v=3","gravatar_id":"","url":"https://api.github.com/users/a-badaev","html_url":"https://github.com/a-badaev","followers_url":"https://api.github.com/users/a-badaev/followers","following_url":"https://api.github.com/users/a-badaev/following{/other_user}","gists_url":"https://api.github.com/users/a-badaev/gists{/gist_id}","starred_url":"https://api.github.com/users/a-badaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-badaev/subscriptions","organizations_url":"https://api.github.com/users/a-badaev/orgs","repos_url":"https://api.github.com/users/a-badaev/repos","events_url":"https://api.github.com/users/a-badaev/events{/privacy}","received_events_url":"https://api.github.com/users/a-badaev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-14T13:52:29Z","updated_at":"2016-11-14T15:49:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a94a1bad77b01175ea3cb20527123541e8fda93","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/griddynamics/jagger/pulls/681/commits","review_comments_url":"https://api.github.com/repos/griddynamics/jagger/pulls/681/comments","review_comment_url":"https://api.github.com/repos/griddynamics/jagger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/griddynamics/jagger/issues/681/comments","statuses_url":"https://api.github.com/repos/griddynamics/jagger/statuses/88824af28ad319c16b0052af8e0733edf632cc98","head":{"label":"a-badaev:JFG-964","ref":"JFG-964","sha":"88824af28ad319c16b0052af8e0733edf632cc98","user":{"login":"a-badaev","id":1729467,"avatar_url":"https://avatars.githubusercontent.com/u/1729467?v=3","gravatar_id":"","url":"https://api.github.com/users/a-badaev","html_url":"https://github.com/a-badaev","followers_url":"https://api.github.com/users/a-badaev/followers","following_url":"https://api.github.com/users/a-badaev/following{/other_user}","gists_url":"https://api.github.com/users/a-badaev/gists{/gist_id}","starred_url":"https://api.github.com/users/a-badaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-badaev/subscriptions","organizations_url":"https://api.github.com/users/a-badaev/orgs","repos_url":"https://api.github.com/users/a-badaev/repos","events_url":"https://api.github.com/users/a-badaev/events{/privacy}","received_events_url":"https://api.github.com/users/a-badaev/received_events","type":"User","site_admin":false},"repo":{"id":64215621,"name":"jagger","full_name":"a-badaev/jagger","owner":{"login":"a-badaev","id":1729467,"avatar_url":"https://avatars.githubusercontent.com/u/1729467?v=3","gravatar_id":"","url":"https://api.github.com/users/a-badaev","html_url":"https://github.com/a-badaev","followers_url":"https://api.github.com/users/a-badaev/followers","following_url":"https://api.github.com/users/a-badaev/following{/other_user}","gists_url":"https://api.github.com/users/a-badaev/gists{/gist_id}","starred_url":"https://api.github.com/users/a-badaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-badaev/subscriptions","organizations_url":"https://api.github.com/users/a-badaev/orgs","repos_url":"https://api.github.com/users/a-badaev/repos","events_url":"https://api.github.com/users/a-badaev/events{/privacy}","received_events_url":"https://api.github.com/users/a-badaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a-badaev/jagger","description":"Jagger","fork":true,"url":"https://api.github.com/repos/a-badaev/jagger","forks_url":"https://api.github.com/repos/a-badaev/jagger/forks","keys_url":"https://api.github.com/repos/a-badaev/jagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a-badaev/jagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a-badaev/jagger/teams","hooks_url":"https://api.github.com/repos/a-badaev/jagger/hooks","issue_events_url":"https://api.github.com/repos/a-badaev/jagger/issues/events{/number}","events_url":"https://api.github.com/repos/a-badaev/jagger/events","assignees_url":"https://api.github.com/repos/a-badaev/jagger/assignees{/user}","branches_url":"https://api.github.com/repos/a-badaev/jagger/branches{/branch}","tags_url":"https://api.github.com/repos/a-badaev/jagger/tags","blobs_url":"https://api.github.com/repos/a-badaev/jagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a-badaev/jagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a-badaev/jagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/a-badaev/jagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a-badaev/jagger/statuses/{sha}","languages_url":"https://api.github.com/repos/a-badaev/jagger/languages","stargazers_url":"https://api.github.com/repos/a-badaev/jagger/stargazers","contributors_url":"https://api.github.com/repos/a-badaev/jagger/contributors","subscribers_url":"https://api.github.com/repos/a-badaev/jagger/subscribers","subscription_url":"https://api.github.com/repos/a-badaev/jagger/subscription","commits_url":"https://api.github.com/repos/a-badaev/jagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/a-badaev/jagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/a-badaev/jagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/a-badaev/jagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/a-badaev/jagger/contents/{+path}","compare_url":"https://api.github.com/repos/a-badaev/jagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a-badaev/jagger/merges","archive_url":"https://api.github.com/repos/a-badaev/jagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a-badaev/jagger/downloads","issues_url":"https://api.github.com/repos/a-badaev/jagger/issues{/number}","pulls_url":"https://api.github.com/repos/a-badaev/jagger/pulls{/number}","milestones_url":"https://api.github.com/repos/a-badaev/jagger/milestones{/number}","notifications_url":"https://api.github.com/repos/a-badaev/jagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a-badaev/jagger/labels{/name}","releases_url":"https://api.github.com/repos/a-badaev/jagger/releases{/id}","deployments_url":"https://api.github.com/repos/a-badaev/jagger/deployments","created_at":"2016-07-26T11:21:57Z","updated_at":"2016-07-26T11:22:00Z","pushed_at":"2016-11-14T13:51:37Z","git_url":"git://github.com/a-badaev/jagger.git","ssh_url":"git@github.com:a-badaev/jagger.git","clone_url":"https://github.com/a-badaev/jagger.git","svn_url":"https://github.com/a-badaev/jagger","homepage":"https://jagger.griddynamics.net","size":33391,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"griddynamics:master","ref":"master","sha":"a3d5099a998d790e52bdcf1e96621bfb3273e14a","user":{"login":"griddynamics","id":54911,"avatar_url":"https://avatars.githubusercontent.com/u/54911?v=3","gravatar_id":"","url":"https://api.github.com/users/griddynamics","html_url":"https://github.com/griddynamics","followers_url":"https://api.github.com/users/griddynamics/followers","following_url":"https://api.github.com/users/griddynamics/following{/other_user}","gists_url":"https://api.github.com/users/griddynamics/gists{/gist_id}","starred_url":"https://api.github.com/users/griddynamics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griddynamics/subscriptions","organizations_url":"https://api.github.com/users/griddynamics/orgs","repos_url":"https://api.github.com/users/griddynamics/repos","events_url":"https://api.github.com/users/griddynamics/events{/privacy}","received_events_url":"https://api.github.com/users/griddynamics/received_events","type":"Organization","site_admin":false},"repo":{"id":3430789,"name":"jagger","full_name":"griddynamics/jagger","owner":{"login":"griddynamics","id":54911,"avatar_url":"https://avatars.githubusercontent.com/u/54911?v=3","gravatar_id":"","url":"https://api.github.com/users/griddynamics","html_url":"https://github.com/griddynamics","followers_url":"https://api.github.com/users/griddynamics/followers","following_url":"https://api.github.com/users/griddynamics/following{/other_user}","gists_url":"https://api.github.com/users/griddynamics/gists{/gist_id}","starred_url":"https://api.github.com/users/griddynamics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griddynamics/subscriptions","organizations_url":"https://api.github.com/users/griddynamics/orgs","repos_url":"https://api.github.com/users/griddynamics/repos","events_url":"https://api.github.com/users/griddynamics/events{/privacy}","received_events_url":"https://api.github.com/users/griddynamics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/griddynamics/jagger","description":"Jagger","fork":false,"url":"https://api.github.com/repos/griddynamics/jagger","forks_url":"https://api.github.com/repos/griddynamics/jagger/forks","keys_url":"https://api.github.com/repos/griddynamics/jagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/griddynamics/jagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/griddynamics/jagger/teams","hooks_url":"https://api.github.com/repos/griddynamics/jagger/hooks","issue_events_url":"https://api.github.com/repos/griddynamics/jagger/issues/events{/number}","events_url":"https://api.github.com/repos/griddynamics/jagger/events","assignees_url":"https://api.github.com/repos/griddynamics/jagger/assignees{/user}","branches_url":"https://api.github.com/repos/griddynamics/jagger/branches{/branch}","tags_url":"https://api.github.com/repos/griddynamics/jagger/tags","blobs_url":"https://api.github.com/repos/griddynamics/jagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/griddynamics/jagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/griddynamics/jagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/griddynamics/jagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/griddynamics/jagger/statuses/{sha}","languages_url":"https://api.github.com/repos/griddynamics/jagger/languages","stargazers_url":"https://api.github.com/repos/griddynamics/jagger/stargazers","contributors_url":"https://api.github.com/repos/griddynamics/jagger/contributors","subscribers_url":"https://api.github.com/repos/griddynamics/jagger/subscribers","subscription_url":"https://api.github.com/repos/griddynamics/jagger/subscription","commits_url":"https://api.github.com/repos/griddynamics/jagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/griddynamics/jagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/griddynamics/jagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/griddynamics/jagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/griddynamics/jagger/contents/{+path}","compare_url":"https://api.github.com/repos/griddynamics/jagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/griddynamics/jagger/merges","archive_url":"https://api.github.com/repos/griddynamics/jagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/griddynamics/jagger/downloads","issues_url":"https://api.github.com/repos/griddynamics/jagger/issues{/number}","pulls_url":"https://api.github.com/repos/griddynamics/jagger/pulls{/number}","milestones_url":"https://api.github.com/repos/griddynamics/jagger/milestones{/number}","notifications_url":"https://api.github.com/repos/griddynamics/jagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/griddynamics/jagger/labels{/name}","releases_url":"https://api.github.com/repos/griddynamics/jagger/releases{/id}","deployments_url":"https://api.github.com/repos/griddynamics/jagger/deployments","created_at":"2012-02-13T14:47:01Z","updated_at":"2016-11-11T13:38:53Z","pushed_at":"2016-11-14T14:13:47Z","git_url":"git://github.com/griddynamics/jagger.git","ssh_url":"git@github.com:griddynamics/jagger.git","clone_url":"https://github.com/griddynamics/jagger.git","svn_url":"https://github.com/griddynamics/jagger","homepage":"https://jagger.griddynamics.net","size":37373,"stargazers_count":47,"watchers_count":47,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":37,"mirror_url":null,"open_issues_count":35,"forks":37,"open_issues":35,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/griddynamics/jagger/pulls/681"},"html":{"href":"https://github.com/griddynamics/jagger/pull/681"},"issue":{"href":"https://api.github.com/repos/griddynamics/jagger/issues/681"},"comments":{"href":"https://api.github.com/repos/griddynamics/jagger/issues/681/comments"},"review_comments":{"href":"https://api.github.com/repos/griddynamics/jagger/pulls/681/comments"},"review_comment":{"href":"https://api.github.com/repos/griddynamics/jagger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/griddynamics/jagger/pulls/681/commits"},"statuses":{"href":"https://api.github.com/repos/griddynamics/jagger/statuses/88824af28ad319c16b0052af8e0733edf632cc98"}}}}
{"actor":{"display_login":"a-badaev"}}