Skip to content
Snippets Groups Projects
Commit 7105f8c2 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Adding test for clone TML

parent 7434bcc2
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,8 @@
package tmltranslator;
import myutil.TraceManager;
import java.util.*;
/**
......@@ -541,6 +543,9 @@ public class TMLTask extends TMLElement {
if (!super.equalSpec(o)) return false;
TMLTask tmlTask = (TMLTask) o;
TMLComparingMethod comp = new TMLComparingMethod();
TraceManager.addDev("Going to compare requests");
if (request != null) {
if (!request.equalSpec(tmlTask.getRequest())) return false;
} else {
......@@ -549,6 +554,9 @@ public class TMLTask extends TMLElement {
if (!(new HashSet<>(attributes).equals(new HashSet<>(tmlTask.attributes))))
return false;
TraceManager.addDev("HashSet of attributes ok");
return operationType == tmlTask.operationType &&
isDaemon == tmlTask.isDaemon &&
isPeriodic == tmlTask.isPeriodic &&
......
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