Re: Disabling serialization in wicket tester....

2010-08-01 Thread Erik Brakkee
On Sun, Aug 1, 2010 at 5:11 AM, Kent Tong k...@cpttm.org.mo wrote I would like very much to disable serialization in wicket tester. I am using pages with mockito mocks that are not serializable (and why should they in a unit test). I am using workarounds now. You can take a look at

Disabling serialization in wicket tester....

2010-07-31 Thread Erik Brakkee
Hi, I would like very much to disable serialization in wicket tester. I am using pages with mockito mocks that are not serializable (and why should they in a unit test). I am using workarounds now. Is there an easy way in wicket tester to disable the serializations that occur? Cheers Erik

Re: Disabling serialization in wicket tester....

2010-07-31 Thread Martin Makundi
Your tests will not be equivalent .. ** Martin 2010/8/1 Erik Brakkee erik.brak...@gmail.com: Hi, I would like very much to disable serialization in wicket tester. I am using pages with mockito mocks that are not serializable (and why should they in a unit test). I am using workarounds now.

Re: Disabling serialization in wicket tester....

2010-07-31 Thread Erik Brakkee
That my tests will not be equivalent is no big problem. In this case I am really unit testing the pages while mocking the backend. That allows me to also test anomalous behavior of the backend. In addition, I am also doing unit integration testing with rendering wicket pages with an actual JPA

Re: Disabling serialization in wicket tester....

2010-07-31 Thread James Carman
Will mockito let you mock more than one class at once? If so, you can add Serializable to the list. On Jul 31, 2010 5:40 PM, Erik Brakkee erik.brak...@gmail.com wrote: That my tests will not be equivalent is no big problem. In this case I am really unit testing the pages while mocking the

Re: Disabling serialization in wicket tester....

2010-07-31 Thread Kent Tong
I would like very much to disable serialization in wicket tester. I am using pages with mockito mocks that are not serializable (and why should they in a unit test). I am using workarounds now. You can take a look at http://wicketpagetest.sourceforge.net which allows you to inject