Permalink
Browse files

Artifacts left over from when removing transaction filtering in commit

…8d8ef04 at Tue Nov 8 21:35:18 2011 +0530

Rollback related assertion removed.
  • Loading branch information...
1 parent e06d6d6 commit 288dc963c8dfd7fd5dce6c250a971f5d9d20bacb Karl Wettin committed Oct 31, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 extras/facade/src/test/java/org/prevayler/contrib/facade/SmokeTest.java
@@ -106,17 +106,20 @@ public void testAndSeeIfItSmokes()
repo.storeSomething(data);
assertEquals(data, repo.getData());
+ final String otherData = "other data";
try
{
- repo.oopsRuntime("other data");
+ repo.oopsRuntime(otherData);
fail("should have thrown RuntimeOops");
}
catch (RuntimeOops expected)
{
- // ok
+ System.currentTimeMillis();// ok
}
- assertEquals(data, repo.getData());
+ // previously when rollback was a feature in prevayler
+ // this would have equaled data rather than otherData
+ assertEquals(otherData, repo.getData());
try
{
@@ -126,7 +129,7 @@ public void testAndSeeIfItSmokes()
catch (CheckedOops expected)
{
//expected.printStackTrace();
- // ok
+ System.currentTimeMillis();// ok
}
//checked exception doesn't trigger rollback

0 comments on commit 288dc96

Please sign in to comment.