Hi Oscar / anyone else... ... just to say that I've now implemented this ticket; would be good if you could use it in anger and see if it works ok for you.
The comment on the ISIS-813 [1] shows the new method ("replaceService"). Cheers Dan On 20 June 2014 09:33, Dan Haywood <d...@haywood-associates.co.uk> wrote: > > > On 20 June 2014 09:14, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com> > wrote: > >> >> The problem I was finding when trying to mock the service was that it was >> a whole new instance, and there's no way to "replace" the default instance >> by this mocked one, or to "load" the mocked one at first, instead of Isis >> creating a new instance by means of the IsisSystemForTest.Builder. >> >> This was not a priority test (it was an easy to implement functionality >> and I can simply go to the UI to know if it works) but perhaps there will >> be more cases where mocked services could be need in the future. >> >> > It's a good idea... I've created a new ticket [1] for it. > > > [1] https://issues.apache.org/jira/browse/ISIS-813 > > > >> If you can send me that TDD slides would be grate! >> >> I'll mail you offline > > Cheers > Dan > > >