Skip to content
Snippets Groups Projects
Commit c2ec24b5 authored by srosse's avatar srosse
Browse files

FXOLAT-207: fix an event issue with the PortfolioModule and add more memory to the test process

parent d545f6dd
No related branches found
No related tags found
No related merge requests found
......@@ -301,7 +301,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<argLine>-Xmx1024m -Xms1024m</argLine>
<argLine>-XX:MaxPermSize=256m -Xmx1024m -Xms1024m</argLine>
<systemPropertyVariables>
<java.io.tmpdir>${project.build.directory}/olatdata</java.io.tmpdir>
</systemPropertyVariables>
......@@ -365,7 +365,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<argLine>-Xmx512m -Xms512m</argLine>
<argLine>-XX:MaxPermSize=256m -Xmx1024m -Xms1024m</argLine>
<systemPropertyVariables>
<java.io.tmpdir>${project.build.directory}/olatdata</java.io.tmpdir>
</systemPropertyVariables>
......@@ -589,7 +589,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<argLine>-Xmx512m -Xms512m</argLine>
<argLine>-XX:MaxPermSize=256m -Xmx1024m -Xms1024m</argLine>
<systemPropertyVariables>
<java.io.tmpdir>${project.build.directory}/olatdata</java.io.tmpdir>
</systemPropertyVariables>
......
......@@ -113,12 +113,6 @@ public class PortfolioModuleTest extends OlatTestCase {
//////////////////////////////////
portfolioModule.setEnableArtefactHandler(dummyHandler, false);
try {//wait until the event is send
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
//found in the list of all available handlers
List<EPArtefactHandler<?>> allHandlers = portfolioModule.getAllAvailableArtefactHandlers();
boolean foundInAll = false;
......@@ -150,12 +144,6 @@ public class PortfolioModuleTest extends OlatTestCase {
//////////////////////////////////
portfolioModule.setEnableArtefactHandler(dummyHandler, false);
try {//wait until the event is send
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
//found in the list of all available handlers
allHandlers = portfolioModule.getAllAvailableArtefactHandlers();
foundInAll = false;
......@@ -215,6 +203,7 @@ public class PortfolioModuleTest extends OlatTestCase {
}
public class DummyArtefact extends AbstractArtefact {
private static final long serialVersionUID = -7986085106701245624L;
public static final String TYPE = "dummy";
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment