I am working on a java message queue client (beanstalk) and right now my tests look like this:
//make sure our getJob can handle utf8 characters @Test public void testUTF8() { bean = new Beanstalk(); Job job = new Job(); bean.putJob("€"); job = bean.getJob(); assertEquals("€", job.msg); bean.close(); }
I've read that you shouldn't test the actual queue itself cause it's not code that I write but I DO write the client code -- is there a better way to write this? I really need the tests to assure myself but besides style it's also a pain in the ass to setup for my CI.