{"action":"created","issue":{"url":"https://api.github.com/repos/springtestdbunit/spring-test-dbunit/issues/70","labels_url":"https://api.github.com/repos/springtestdbunit/spring-test-dbunit/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/springtestdbunit/spring-test-dbunit/issues/70/comments","events_url":"https://api.github.com/repos/springtestdbunit/spring-test-dbunit/issues/70/events","html_url":"https://github.com/springtestdbunit/spring-test-dbunit/issues/70","id":58530134,"number":70,"title":"Per class setup and teardown","user":{"login":"bruce264","id":8547936,"avatar_url":"https://avatars.githubusercontent.com/u/8547936?v=3","gravatar_id":"","url":"https://api.github.com/users/bruce264","html_url":"https://github.com/bruce264","followers_url":"https://api.github.com/users/bruce264/followers","following_url":"https://api.github.com/users/bruce264/following{/other_user}","gists_url":"https://api.github.com/users/bruce264/gists{/gist_id}","starred_url":"https://api.github.com/users/bruce264/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruce264/subscriptions","organizations_url":"https://api.github.com/users/bruce264/orgs","repos_url":"https://api.github.com/users/bruce264/repos","events_url":"https://api.github.com/users/bruce264/events{/privacy}","received_events_url":"https://api.github.com/users/bruce264/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springtestdbunit/spring-test-dbunit/labels/Duplicate","name":"Duplicate","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-23T00:11:33Z","updated_at":"2015-02-26T18:50:21Z","closed_at":"2015-02-25T02:38:04Z","body":"This is basically an enhancement idea to add per class setup and teardown capabilities to the framework."},"comment":{"url":"https://api.github.com/repos/springtestdbunit/spring-test-dbunit/issues/comments/76241893","html_url":"https://github.com/springtestdbunit/spring-test-dbunit/issues/70#issuecomment-76241893","issue_url":"https://api.github.com/repos/springtestdbunit/spring-test-dbunit/issues/70","id":76241893,"user":{"login":"bruce264","id":8547936,"avatar_url":"https://avatars.githubusercontent.com/u/8547936?v=3","gravatar_id":"","url":"https://api.github.com/users/bruce264","html_url":"https://github.com/bruce264","followers_url":"https://api.github.com/users/bruce264/followers","following_url":"https://api.github.com/users/bruce264/following{/other_user}","gists_url":"https://api.github.com/users/bruce264/gists{/gist_id}","starred_url":"https://api.github.com/users/bruce264/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruce264/subscriptions","organizations_url":"https://api.github.com/users/bruce264/orgs","repos_url":"https://api.github.com/users/bruce264/repos","events_url":"https://api.github.com/users/bruce264/events{/privacy}","received_events_url":"https://api.github.com/users/bruce264/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T18:50:20Z","updated_at":"2015-02-26T18:50:20Z","body":"Hi Phil,\n\nI have an update, I have started to move things around and added\n\n    @Override\n    public void beforeTestClass(TestContext testContext) throws Exception {\n        runner.beforeTestClass(new DbUnitTestContextAdapter(testContext));\n    }\n\nHowever I noticed hat the textContext variable at this point has a null\nconnection which causes the database setup to fail, I am trying to think of\na workaround for this issue.\n\nThanks and kind regards,\n\nBruce\n\nOn Wed, Feb 25, 2015 at 9:07 PM, bruce.w H <bruce264@gmail.com> wrote:\n\n> Ok I'll do that, also I have another question I haven't used GitHub to\n> collaborate in an open source project, I am using IntelliJ, I selected\n> checkout from VCS and then GitHub, it asked me for my account, should I be\n> able to push from an alternate branch to the repository itself or should I\n> push somewhere else and request a merge?\n>\n> Regarding the change I am thinking of adding a boolean isPerClass field\n> that defaults to false to the @DatabaseSetup annotation and then adding\n> afterTestClass and beforeTestClass methods to DbUnitRunner that only act\n> when the isPerClass value is set to true and then I would have the\n> beforeTestMethod and afterTestMethod to not act when the flag is true as\n> well, do you think this is a good approach or there might be a more elegant\n> one?\n>\n> Thank you very much and kind regards,\n>\n> Bruce\n>\n> On Wed, Feb 25, 2015 at 5:15 PM, Phil Webb <notifications@github.com>\n> wrote:\n>\n>> I think it should be fine as long as the default value is \"per method\"\n>>\n>> —\n>> Reply to this email directly or view it on GitHub\n>> <https://github.com/springtestdbunit/spring-test-dbunit/issues/70#issuecomment-76072532>\n>> .\n>>\n>\n>\n"}}