Entries from December 2010 ↓

OpenGL ES Tutorial for Android – Part VI – Textures

Per-Erik Bergman

Last tutorial we worked a bit more on meshes and we have also talked about adding colors to our mesh. The most common way of adding colors to your mesh is to add a texture. There is a couple of different steps involved with adding a texture to the mesh I will try to go [...]

Tags: , ,

Review of Crafting Rails Applications, by José Valim

Anders Janmyr

José Valim is one of the newest members of the Rails core team. Apart from this he has also developed some good gems, Devise, Responders, and SimpleForm, that I use for almost every project. And now he has written a book, a really good book, about advanced Rails programming techniques, called Crafting Rails Applications. The [...]

Tags: , ,

PowerMock with unsupported frameworks such as JMock

Johan Haleby

Currently PowerMock builds on top of EasyMock and Mockito to provide mocking of e.g. static methods and final classes using a familiar API. What most people don’t know is that it’s pretty easy to benefit from PowerMock even for frameworks it doesn’t support. JMock is another popular mocking framework that PowerMock currently doesn’t support but [...]

Tags: , , ,

Using PowerMock with Spring integration testing

Johan Haleby

I quite often get the question if PowerMock can be used together with Spring integration testing or other frameworks that require a JUnit runner to bootstrap. The answer up until now has been somewhat ambiguous. The reason is that for the last year or so we’ve been working with a new way of bootstrapping PowerMock [...]

Tags: , ,

REST Assured – Or how to easily test REST services in Java

Johan Haleby

Testing and validating REST services in Java is harder than in dynamic languages such as Ruby and Groovy. REST Assured is a Java DSL (built on top of HTTP Builder) that brings the simplicity of these languages into the Java domain. Example 1 – JSON Assume that a GET request to http://localhost:8080/lotto returns JSON as: [...]

Tags: , , ,

Theme aware panorama background in windows phone 7

Håkan Reis

I like the thought you have to put in to a Windows Phone 7 application, to make it work in both dark and light themes together with the accent colors. But at the same time it creates quite a few challenges. One of those is to have a panorama background and title graphics that reacts [...]