Skip to content
Snippets Groups Projects
Commit b8843ec5 authored by jerray's avatar jerray
Browse files

update test Security Generation

parent db896a47
No related branches found
No related tags found
1 merge request!500Auto security diplodocus
package tmltranslator;
import common.ConfigurationTTool;
import launcher.RshServer;
import myutil.FileUtils;
import myutil.TraceManager;
import org.junit.Before;
......@@ -10,7 +11,6 @@ import test.AbstractTest;
import tmltranslator.patternhandling.SecurityGenerationForTMAP;
import java.io.File;
import java.io.FilenameFilter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
......@@ -49,10 +49,17 @@ public class AutoSecurityGenerationDiplodocusTest extends AbstractTest {
super();
}
@Before
public void setUp() throws Exception {
TraceManager.devPolicy = TraceManager.TO_CONSOLE;
final Runnable runnable = new Runnable() {
@Override
public void run() {
new RshServer( null ).startServer();
}
};
Thread threadServer = new Thread( runnable );
threadServer.start();
ConfigurationTTool.ProVerifVerifierPath = "proverif";
ConfigurationTTool.ProVerifVerifierHost = "localhost";
TraceManager.addDev("Starting test for Security Generation");
......
......@@ -1068,7 +1068,7 @@ public class TMLComparingMethodTest extends AbstractTest {
@Test
public void isSecurityPatternMapEquals() {
assertTrue("two lists have same context but difference element order" +
assertFalse("two lists have same context but difference element order" +
"",comparing.isSecurityPatternMapEquals(securityMap1,securityMap2));
assertFalse("two lists have same size but difference context" +
......
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