From 0881e0448a861ead9b0415e7992290e6a836c71b Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 5 May 2008 01:22:37 +0000 Subject: Added transaction test case. --- .../java/com/amazon/carbonado/repo/map/MapTransaction.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/main/java/com/amazon/carbonado/repo/map') diff --git a/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java b/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java index d2cfe87..93bcbdc 100644 --- a/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java +++ b/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java @@ -126,6 +126,10 @@ class MapTransaction { public void undo() { storage.mapRemove(key); } + + public String toString() { + return "undo insert by remove: " + key; + } }); } @@ -137,6 +141,10 @@ class MapTransaction { public void undo() { storage.mapPut(old); } + + public String toString() { + return "undo update by put: " + old; + } }); } @@ -148,6 +156,10 @@ class MapTransaction { public void undo() { storage.mapPut(old); } + + public String toString() { + return "undo delete by put: " + old; + } }); } -- cgit v1.2.3