keeganwitt / gmock

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

Should not allow creating mocks in play closure #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following test should pass:

    void testShouldNotAllowCreatingMocksInPlayClosure() {
        play {
            shouldFail {
                mock()
            }
        }
    }

Original issue reported on code.google.com by JohnnyJianHY on 6 Jan 2009 at 5:01

GoogleCodeExporter commented 9 years ago

Original comment by julien.g...@gmail.com on 6 Jan 2009 at 8:03

GoogleCodeExporter commented 9 years ago
What kind of exception should we throw? And with what message?

Original comment by JohnnyJianHY on 6 Jan 2009 at 10:50

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 10 Jan 2009 at 6:34

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 10 Jan 2009 at 6:37