I’m working on a small 2d-game engine and I’ve run in to some trouble. So far I’ve been very strict on coding test first programming and using JUnit to test everything. But now I’ve come to the point where I’m rendering simple graphics, but I have no idea how to test this. ???
I’m guessing I should use some how BufferdImage.createGraphics(); to create a Graphics2D, render and then check the image for result. But beyond that I have no idea how to do things. Is there any one here that has had any experience with unit testing rendering that can give me a pointer or two in the right direction? :-\

