Skip to content

Commit

Permalink
Added Fixtures.clearIdCache() to overcome the fact that it became static
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Epardaud authored and FroMage committed Aug 17, 2011
1 parent 2a61137 commit a890578
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/src/play/test/Fixtures.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public class Fixtures {
static Pattern keyPattern = Pattern.compile("([^(]+)\\(([^)]+)\\)");
static Map<String, Object> idCache = new HashMap<String, Object>();

public static void clearIdCache(){
idCache.clear();
}

public static void executeSQL(String sqlScript) {
for(String sql: sqlScript.split(";")) {
if(sql.trim().length() > 0) {
Expand Down

0 comments on commit a890578

Please sign in to comment.