Installing Windows XP into a Virtual Box VM

I need to do some testing, so let’s try installing Windows XP Pro into a Virtual Box VM to avoid trashing my production system. Which is pretty trashed anyway, and has a big frosty pre-ordered (cheap) Windows 7 waiting when I finally get around to researching a driver for my now non-supported HP LaserJet 3150… Continue reading Installing Windows XP into a Virtual Box VM

Mockito and void methods on mock objects

SO I have class TestFoo { } TestFoo s1 = Mockito.mock(TestFoo.class); TestFoo s2 = Mockito.mock(TestFoo.class); The Mockito doc “Real Partial Mocks” says to do this: when(mock.someMethod()).thenCallRealMethod(); we get the error “The method when(T) in the type Mockito is not applicable for the arguments (void)” After 1/2 hour of hunting I found a hint, and refactored:… Continue reading Mockito and void methods on mock objects