{"action":"created","issue":{"url":"https://api.github.com/repos/jayway/powermock/issues/109","labels_url":"https://api.github.com/repos/jayway/powermock/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/jayway/powermock/issues/109/comments","events_url":"https://api.github.com/repos/jayway/powermock/issues/109/events","html_url":"https://github.com/jayway/powermock/issues/109","id":96805721,"number":109,"title":"StackOverflowError","user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jayway/powermock/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jayway/powermock/labels/duplicate","name":"duplicate","color":"cccccc"},{"url":"https://api.github.com/repos/jayway/powermock/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/jayway/powermock/labels/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T12:48:56Z","updated_at":"2015-07-23T12:48:57Z","closed_at":null,"body":"_From [gustavoh...@gmail.com](https://code.google.com/u/113874744164882858588/) on January 20, 2009 21:10:03_\n\nWhat steps will reproduce the problem? I tryed to find the exactly steps to reproduce the problem, but I could't\r\nfind it. So, I've posted the source code of my test. What is the expected output? What do you see instead? I'm getting StackOverflowError when I uncomment the line\r\n//@PrepareForTest({Project.class}) in the code listed at the end of this\r\nreport. What version of the product are you using? On what operating system? PowerMock 1.1.1 - Windows XP Media Center Edition\r\nJUnit 4.5\r\nSpring 2.5.6 Please provide any additional information below. I'm using Spring 2.5.6 in my project with @Configurable annotation in my\r\nDomains Objects. Project.close() is the method under testing. Project is a\r\nDomain Object, so, it has the @Configurable annotation. I don't know if\r\nthis it the cause of the problem. If you need any other information, please\r\nlet me know.\r\n\r\nThis is my test code:\r\n\r\npackage br.com.imperion.seomasterpro.core.project;\r\n\r\nimport static org.easymock. EasyMock .expect;\r\nimport static org.powermock.api.easymock.PowerMock.createMock;\r\nimport static org.powermock.api.easymock.PowerMock.createMockAndExpectNew;\r\nimport static org.powermock.api.easymock.PowerMock.replayAll;\r\nimport static org.powermock.api.easymock.PowerMock.verifyAll;\r\n\r\nimport org.junit.After;\r\nimport org.junit.AfterClass;\r\nimport org.junit.Before;\r\nimport org.junit.BeforeClass;\r\nimport org.junit.Ignore;\r\nimport org.junit.Test;\r\nimport org.junit.runner.RunWith;\r\nimport org.powermock.core.classloader.annotations.PrepareForTest;\r\nimport org.powermock.modules.junit4.PowerMockRunner;\r\n\r\nimport br.com.imperion.seomasterpro.core.infrastructure.IdentityMap;\r\nimport\r\nbr.com.imperion.seomasterpro.core.infrastructure.events.EventsAggregator;\r\n\r\n@RunWith(PowerMockRunner.class)\r\n//@PrepareForTest({Project.class})\r\npublic class ProjectTest {\r\n\r\n\tprivate IdentityMap identityMap;\r\n\tprivate EventsAggregator eventsAggregator;\r\n\tprivate Project project;\r\n\r\n\t@BeforeClass\r\n\tpublic static void setUpBeforeClass() throws Exception {\r\n\t}\r\n\r\n\t@AfterClass\r\n\tpublic static void tearDownAfterClass() throws Exception {\r\n\t}\r\n\r\n\t@Before\r\n\tpublic void setUp() throws Exception {\r\n\r\n\t\tidentityMap = createMock(IdentityMap.class);\r\n\t\teventsAggregator = createMock(EventsAggregator.class);\r\n\r\n\t\tproject = new Project();\r\n\r\n\t\tproject.setIdentityMap(identityMap);\r\n\t\tproject.setEventsAggregator(eventsAggregator);\r\n\t\t\r\n\t}\r\n\r\n\t@After\r\n\tpublic void tearDown() throws Exception {\r\n\t}\r\n\r\n\r\n\t@Test\r\n\tpublic final void testClose_OK() throws Exception {\r\n\t\tCloseProjectEvent closeProjectEvent =\r\ncreateMockAndExpectNew(CloseProjectEvent.class,project, false);\r\n\r\n\t\texpect(closeProjectEvent.closeCancelled()).andReturn(false);\r\n\t\teventsAggregator.notifyObserver(project,\r\n\t\t\t\tProjectObserver.CLOSE_PROJECT_EVENT, closeProjectEvent);\r\n\t\tidentityMap.clear();\r\n\r\n\t\treplayAll();\r\n\t\t\r\n\t\tproject.close();\r\n\r\n\t\tverifyAll();\r\n\t}\r\n\r\n\t@Test\r\n\t@Ignore\r\n\tpublic final void testClose_Cancelled() {\r\n\r\n\t}\r\n\r\n}\n\n_Original issue: http://code.google.com/p/powermock/issues/detail?id=89_"},"comment":{"url":"https://api.github.com/repos/jayway/powermock/issues/comments/124084338","html_url":"https://github.com/jayway/powermock/issues/109#issuecomment-124084338","issue_url":"https://api.github.com/repos/jayway/powermock/issues/109","id":124084338,"user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T12:48:57Z","updated_at":"2015-07-23T12:48:57Z","body":"_From [johan.ha...@gmail.com](https://code.google.com/u/105676376875942041029/) on January 22, 2009 01:34:39_\n\nHi, could you please bring this up on our mailing list (goto http://groups.google.com/group/powermock ) so that we can discuss it there? (Just\r\npaste everything you wrote here). If you can please try to include the source of the\r\nartifact that you're to test in the mail as well.\r\n\r\n/Johan"}}