[jboss-dev-forums] [Design of OSGi Integration] - Re: Logging and Exception Handling
adrian@jboss.org
do-not-reply at jboss.com
Fri Feb 29 12:41:04 EST 2008
"adrian at jboss.org" wrote : org.jboss.test.bundle.support.TestVFSDeploymentUnit.getFile(TestVFSDeploymentUnit.java:83)
|
While we are on the subject, although mocking is a good way of testing
in isolation, it's actually worthless in this case.
You're testing a facade already. A facade to a mock won't tell you whether it works
against the real impl, you can just "fix" the mock to make any test pass. :-)
Of course, if you're going to rerun these tests against the real
implementation then that is fine. You probably want to design these tests
for this reuse in mind?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133313#4133313
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133313
More information about the jboss-dev-forums
mailing list