Socket Mock

This is still in the early stages of development, but the plan is to create a small java utility that can be run either from the command line or from a JUnit script (or directly called as an API). The app will start listening on a port and act as a proxy, forwarding requests on to an IP and port of your choice. While it is doing this it will record the inputs and outputs it is forwarding on. Once you have passed some traffic through and it has been "recorded" you can then switch into "playback" mode, and the app will stop proxying to a remote IP and instead it will return it's recorded responses to any inputs it gets that it recognises.

The basic idea is to provide a tool that can be used as part of an automated unit test suite, perhaps as part of a daily continuous integration build. In such scenarios it is often desirable to isolate the system you are building from any outside dependencies, which can be difficult if your app relies in 3rd party web services for example. This tool will hopefully help support such test scenarios by simulating the responses your app relies on from external systems.

Check back here soon to see the first draft version of the app!




Baby Keyboard Fun

A simple fun game for babies who like to play with the computer keyboard!
You will need Java installed on your PC - you can launch the application directly using the link below:

 Launch Game Now

If the above link does not work, or you want to download the game to play locally on a windows machine, you can download a stand-alone executable version (created using JSmooth):

Download Windows Executable

  JavaDoc API Spec

Code

BabyGame.java
Constants.java
ImageFactory.java
BabySoundPlayer.java
SoundFactory.java
SoundPlayer_AppletAudio.java
SoundPlayer_JMF.java
BabyKeyboardFun.jnlp