{"action":"opened","issue":{"url":"https://api.github.com/repos/bootique/bootique/issues/142","repository_url":"https://api.github.com/repos/bootique/bootique","labels_url":"https://api.github.com/repos/bootique/bootique/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/bootique/bootique/issues/142/comments","events_url":"https://api.github.com/repos/bootique/bootique/issues/142/events","html_url":"https://github.com/bootique/bootique/issues/142","id":225277348,"number":142,"title":"Test framework: Remove BQTestRuntime wrapper","user":{"login":"andrus","id":42668,"avatar_url":"https://avatars2.githubusercontent.com/u/42668?v=3","gravatar_id":"","url":"https://api.github.com/users/andrus","html_url":"https://github.com/andrus","followers_url":"https://api.github.com/users/andrus/followers","following_url":"https://api.github.com/users/andrus/following{/other_user}","gists_url":"https://api.github.com/users/andrus/gists{/gist_id}","starred_url":"https://api.github.com/users/andrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrus/subscriptions","organizations_url":"https://api.github.com/users/andrus/orgs","repos_url":"https://api.github.com/users/andrus/repos","events_url":"https://api.github.com/users/andrus/events{/privacy}","received_events_url":"https://api.github.com/users/andrus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-29T18:50:27Z","updated_at":"2017-04-29T18:50:27Z","closed_at":null,"body":"Practically all uses of `BQTestRuntime` and `BQDaemonTestRuntime` look like this:\r\n\r\n```java\r\nBQTestRuntime runtime = ..\r\nMyXyz my = runtime.getRuntime().getInstance(MyXyz.class);\r\n```\r\nWould be nice to get rid of the \"test\" wrappers and use runtime directly. What needs to be redone:\r\n\r\n1. Occasionally we need to capture stderr / stdout of the runtime. Perhaps we can set the buffer collecting those via a runtime factory builder method?\r\n2. Maybe there are tests that need to start and stop `DaemonTestRuntime` inside the test? (I haven't seen any). Perhaps we relocate the thread pool part of `DaemonTestRuntime` into the factory (so it won't need to be stopped with runtime). And BQRuntime has its own \"shutdown\" method that a test can use."}}
{"actor":{"display_login":"andrus"}}