How to create a component for testing purposes only

I inject an array of interface MyComponent to ComponentA. And I am trying to test if ComponentA is correctly invoking MyComponent's methods. So for testing purposes, I would like to register a testing MyComponent so that it is injected to ComponentA. Is there a way to do that?  I am extending JavaCodeInsightFixtureTestCase for my test classes.

0

Please sign in to leave a comment.