Expect makes sure it's enabled as a rule. #7

Merged
merged 5 commits into from Mar 15, 2012

Projects

None yet

2 participants

@dsaff
Member
dsaff commented Aug 24, 2011

This finishes off the implementation of EXPECT: now, if someone uses it when it has accidentally not been enabled as a rule, it will fail the test and complain. Also, the tests are un-ignored.

@cgruber

Hmm. Does this mean that the usage is now to do a MethodRule like this? Or would the standard usage of Expect still be:

@Rule public Expect EXPECT = Expect.create(); //?

Member

The standard usage is unchanged. This is an obfuscated way to be able to test the exceptions that EXPECT throws. 4.10 has support for making tests like this look a little nicer.

@cgruber cgruber merged commit 740c594 into google:master Mar 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment