Mockito


Mocking is a little ugly with generics, since we need to suppress some warnings. Using Mockito’s JUnit runner is a beautiful alternative way to create (and inject) mocks without these warnings! Definitely worth to know. ► All Game of Life Episodes: http://goo.gl/xc59GX ► Let’s Develop! http://letsdeveloper.com ► Don’t Miss an […]

Conway’s Game of Life #19 – Game Loop – Mockito ...


We’re still refactoring out tests. This one got a special challenge: testing the order of call (you might remember: update must be called before render, to avoid lags). Mockito can check order, if you know how to tell it! ► All Game of Life Episodes: http://goo.gl/xc59GX ► Let’s Develop! http://letsdeveloper.com […]

Conway’s Game of Life #18 – Game Loop – Mockito ...