Skip to content
Browse files

Added Fixtures.clearIdCache() to overcome the fact that it became static

  • Loading branch information...
1 parent 2a61137 commit a890578e45d6ef8eb418e5dfb9afc0b9dbe5d03c Stephane Epardaud committed with FroMage Jun 27, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 framework/src/play/test/Fixtures.java
View
4 framework/src/play/test/Fixtures.java
@@ -48,6 +48,10 @@
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) {

0 comments on commit a890578

Please sign in to comment.
Something went wrong with that request. Please try again.