Software Testing and Development Blog Posts

Subscribe to the full blog feed using RSS

All Posts | Categories | Archive

Protect The Square and Buggy Games

Protect The Square and Buggy Games

5 minute read - Testing

Published

TLDR; Some games are not meant to be played, they are meant to be played with.

I recently released “Protect The Square”, which according to my version control system I wrote on 2nd May 2016. I had forgotten about it.

I found it again a few days ago and decided to release it as the technical exploration exercise it was intended for.

Protect Screenshot


Overview Of Spark Java Webserver Testing

Overview of Spark and HTTP Testing with JUnit

4 minute read - REST API Java For Testers

Published

TLDR: Spark is static so having it run in an @BeforeClass allows HTTP request testing to begin.

I use Spark as the embedded web server in my applications. I also run simple HTTP tests against this as part of my local maven build. And I start Spark within the JUnit tests themselves. In this post I’ll show how.


Migrating From Jaxb XML To Xstream

Migrating from JAXB XML processing to XStream

6 minute read - REST API Java For Testers

Published

TLDR: refactored to isolate XML processing, configured XStream in code, removed all annotations, added XML header, wrote less code

I have a small REST API application which uses Spark and GSON and JAXB. I haven’t released this to Github yet but I did release some of the example externally executed []integration verification code](https://github.com/eviltester/automating-rest-api) for it.

When trying to package this for Java 1.9 I encountered the, now standard, missing JAXB, libraries. So I thought I’d investigate another XML library.