Re: Unit testing classes that depends on RequestFactory

2011-09-02 Thread Magno Machado
I came with an thin abstraction layer over request factory. My presenter declare an inner interface called DataService which exposes methods from RF that are needed for that presenter. For exemple: public class PesquisaPresenter { public interface DataService { void findById(long id,

Re: Unit testing classes that depends on RequestFactory

2011-09-02 Thread Dominik Steiner
I'm pretty new to RF but by reading through various posts regarding the testing of RF i came up with the following solution that seems to work well so far with spring First an abstract test case that your unit test would extends @TransactionConfiguration(defaultRollback = false)