Categories

Lifesource Phone Spam

At work, I would get calls:

Voice Message 8884274836

At home, three times a night. Never leaving a messsage.

I Googled the phone number finally and found who: Lifesource blood services.

I logged in (easy) and turned off all my notifications. We’ll see if it works.

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 [...]

It's Hard to Be Legal - Sheet Music Edition

So I wanted to buy the sheet music for “Lust” by Tori Amos. I love the piano music and wanted to learn it – to play, not to sing.

I started with Google, found several music sites, and prepared to pay. Seems to be about $4.50. Ok, I can deal with that.

Started with I had purchased [...]

Burnt Teapot

So I started the teapot up today, and went downstairs to check one thing. Ten minutes later I came up and there was no whistle. After checking the teapot, there was no water.

With our old crappy teapot, I wouldn’t care. Let it cool down, whatever. Of course this teapot is a 19/10 stainless teapot from [...]

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:

Mockito.doCallRealMethod().when(s1).assertEquals(s2);