keeganwitt / gmock

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

Wrong test: FunctionalTest.testVerifyObjectNotReplayed #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
    void testVerifyObjectNotReplayed() {
        def mockLoader = mock()
        try {
            mockLoader._verify()
            fail("Should have throw an exception")
        } catch (Throwable e) {}
    }

Actually the "_verify" method never throws an exception, this test should 
be failed, but the "catch" clause catches the exception thrown by 
the "fail" method.

Original issue reported on code.google.com by JohnnyJianHY on 16 Nov 2008 at 8:20

GoogleCodeExporter commented 9 years ago

Original comment by julien.g...@gmail.com on 16 Nov 2008 at 6:43

GoogleCodeExporter commented 9 years ago
Well spotted. Code and test fixed.

Original comment by julien.g...@gmail.com on 16 Nov 2008 at 6:55