|
Can I use Spock to mock connections, PreparedStatements and
ResultSets? I am willing to research it if I knew it is available. Thanks, Mary -- You received this message because you are subscribed to the Google Groups "Spock Framework - User" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. For more options, visit this group at http://groups.google.com/group/spockframework?hl=en. |
|
Administrator
|
These are all plain Java interfaces, so you can mock them with any mocking framework (including Spock's). Here is an example: http://meetspock.appspot.com/script/21001 Not saying it's a good practice, though. In general, you should only mock your own interfaces/classes.
Cheers, Peter On May 17, 2012, at 4:55 PM, Mary wrote:
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. For more options, visit this group at http://groups.google.com/group/spockframework?hl=en. |
|
Maybe I misunderstand Spock's Mock. I mostly want to mock other
interfaces/classes besides my own. How else would you test Dals, gui's etc? Does Spock work with projects like EasyMock or Mockito? Thanks, Mary -- You received this message because you are subscribed to the Google Groups "Spock Framework - User" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. For more options, visit this group at http://groups.google.com/group/spockframework?hl=en. |
|
Administrator
|
Spock's mocking framework works pretty much like other mocking frameworks. Alternatively, you can use Spock together with EasyMock, Mockito, etc.
Cheers, Peter On May 17, 2012, at 7:06 PM, Mary wrote: > Maybe I misunderstand Spock's Mock. I mostly want to mock other > interfaces/classes besides my own. How else would you test Dals, > gui's etc? Does Spock work with projects like EasyMock or Mockito? > > Thanks, > > Mary > > -- > You received this message because you are subscribed to the Google Groups "Spock Framework - User" group. > To post to this group, send email to [hidden email]. > To unsubscribe from this group, send email to [hidden email]. > For more options, visit this group at http://groups.google.com/group/spockframework?hl=en. > -- You received this message because you are subscribed to the Google Groups "Spock Framework - User" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. For more options, visit this group at http://groups.google.com/group/spockframework?hl=en. |
| Powered by Nabble | Edit this page |
