keeganwitt / gmock

Automatically exported from code.google.com/p/gmock
6 stars 2 forks source link

Support JUnit4 by introducing a runner #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The runner should look like:

@RunWith(GMock)
class SomeTest {
    def controller = new GMockController()
// or
    def gmc = new GMockController()
// or
    GMockController something = new GMockController()

    @Test void test() {
        ...
    }
}

And in the GMock runner, we should iterate all properties to find the one 
of which the type is GMockController or the name is "controller" 
or "gmc"(need more discussion).

Original issue reported on code.google.com by JohnnyJianHY on 13 Dec 2008 at 7:29

GoogleCodeExporter commented 9 years ago
We might want to push this feature in a later version.

Original comment by julien.g...@gmail.com on 13 Dec 2008 at 11:15

GoogleCodeExporter commented 9 years ago
Closed as the GMockController.stop() method is removed and the JUnit4 runner is 
not
needed any more.

Original comment by JohnnyJianHY on 2 Jan 2009 at 6:32