"adrian(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...