Database refactoring to fix injection problems.

This commit is contained in:
akwizgran
2011-09-23 18:52:56 +01:00
parent 4b0e91f52c
commit 98ab523092
10 changed files with 88 additions and 34 deletions

View File

@@ -96,7 +96,9 @@ public abstract class DatabaseComponentTest extends TestCase {
allowing(database).commitTransaction(txn);
// open(false)
oneOf(database).open(false);
oneOf(cleaner).startCleaning();
oneOf(cleaner).startCleaning(
with(any(DatabaseCleaner.Callback.class)),
with(any(long.class)));
// getRating(authorId)
oneOf(database).getRating(txn, authorId);
will(returnValue(Rating.UNRATED));