Published at: 03:02 pm - Sunday February 07 2010
In my last blog post, I described how to use JUnit Theories to create large amounts of test runs, with very limited amount of work, like so:
import static org.junit.Assume.assumeTrue;
@RunWith(Theories.class)
public class TheorieTest {
@DataPoint
public static String a = "a";
@DataPoint
public static String b = "bb";
@DataPoint
public static String c = "ccc";
@Theory
public void stringTest(String x, String y) {
assumeTrue(x.length() > [...]
Published at: 10:01 pm - Sunday January 31 2010
A couple of months ago I blogged about JUnit Rules, one of the new features in JUnit. While fooling around with JUnit Rules, I found a couple more features that you might be interested in. So here it comes: Theories! It turns out Theories are really a piece of cake. Try this:
import static org.junit.Assume.assumeTrue;
import org.junit.experimental.theories.DataPoint;
import [...]
Published at: 12:01 pm - Sunday January 10 2010
In a couple of days I’ll start working on a new project. Actually it is an project that I worked one or two years ago. I think I did decent job last time. But there is always lots of room for improvement. So today I want to list a couple of things I want to [...]
Published at: 12:10 pm - Sunday October 04 2009
I am always surprised how many unknown feature hide in a supposedly simple library. Todays example is JUnit. When inspecting the newest version (4.7) I noted an annotation I hadn’t noticed before: @Rule. WTF? I am looking at a testing framework and not at a rules engine, am I? So naturally I tried to find [...]
Published at: 11:02 pm - Thursday February 26 2009
Pramod Sadalage author of Refactoring Databases: Evolutionary Database Design forwarded an email to the agiledatabases group announcing a new database migration tool (note: the tool is NOT writen by Pramod): dbmaintain
While I am glad that there are others worrying about the lack of basic software development tools in the database realm, I still think we [...]