[jboss-svn-commits] JBL Code SVN: r34238 - labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Jul 27 23:57:55 EDT 2010
Author: mark.proctor at jboss.com
Date: 2010-07-27 23:57:55 -0400 (Tue, 27 Jul 2010)
New Revision: 34238
Modified:
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java
Log:
-fixed setLastModified issue for windows platform
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4243868
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java 2010-07-28 03:25:40 UTC (rev 34237)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java 2010-07-28 03:57:55 UTC (rev 34238)
@@ -144,6 +144,7 @@
// have to sleep here as linux lastModified does not do milliseconds
// http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=019789
+ System.gc();
Thread.sleep(2000);
rule1 = this.createDefaultRule("rule3");
@@ -151,6 +152,7 @@
output = new BufferedWriter(new FileWriter(f1));
output.write(rule1);
output.close();
+ System.gc();
Thread.sleep(3000);
ksession = kagent.getKnowledgeBase().newStatefulKnowledgeSession();
@@ -234,6 +236,7 @@
// have to sleep here as linux lastModified does not do milliseconds
// http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=019789
+ System.gc();
Thread.sleep(2000);
rule1 = this.createDefaultRule("rule3");
@@ -304,6 +307,7 @@
// have to sleep here as linux lastModified does not do milliseconds
// http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=019789
+ System.gc();
Thread.sleep(2000);
rule1 = this.createDefaultRule("rule3");
@@ -373,6 +377,7 @@
// have to sleep here as linux lastModified does not do milliseconds
// http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=019789
+ System.gc();
Thread.sleep(2000);
rule1 = this.createDefaultRule("rule3");
@@ -583,6 +588,7 @@
// have to sleep here as linux lastModified does not do milliseconds
// http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=019789
+ System.gc();
Thread.sleep(2000);
rule1 = this.createDefaultRule("rule3");
@@ -663,6 +669,7 @@
list.clear();
+ System.gc();
Thread.sleep(2000); // give it 2 seconds to detect and build the changes
String rule3 = this.createDefaultRule("rule3");
File f3 = fileManager.newFile("rule3.drl");
@@ -741,6 +748,7 @@
// have to sleep here as linux lastModified does not do milliseconds
// http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=019789
+ System.gc();
Thread.sleep(2000);
rule1 = this.createDefaultRule("rule3");
More information about the jboss-svn-commits
mailing list