Skip to content
Snippets Groups Projects
Commit 3a0de428 authored by Minh Hiep Pham's avatar Minh Hiep Pham :speech_balloon:
Browse files

updated test for hwBridge (add 2 attributes : isFireWall and firewallRulles to equalSpec method)

parent 1ee94e0a
No related branches found
No related tags found
1 merge request!239Created equalSpec methods to compare TML
......@@ -42,6 +42,8 @@
package tmltranslator;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Objects;
......@@ -74,7 +76,9 @@ public class HwBridge extends HwCommunicationNode {
if (!super.equalSpec(o)) return false;
HwBridge hwBridge = (HwBridge) o;
return latency == hwBridge.latency &&
bufferByteSize == hwBridge.bufferByteSize;
bufferByteSize == hwBridge.bufferByteSize &&
isFirewall == hwBridge.isFirewall &&
(new HashSet<>(firewallRules).equals(new HashSet<>(hwBridge.firewallRules)));
}
}
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