Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
3a0de428
Commit
3a0de428
authored
5 years ago
by
Minh Hiep Pham
Browse files
Options
Downloads
Patches
Plain Diff
updated test for hwBridge (add 2 attributes : isFireWall and firewallRulles to equalSpec method)
parent
1ee94e0a
No related branches found
Branches containing commit
No related tags found
1 merge request
!239
Created equalSpec methods to compare TML
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/tmltranslator/HwBridge.java
+5
-1
5 additions, 1 deletion
src/main/java/tmltranslator/HwBridge.java
with
5 additions
and
1 deletion
src/main/java/tmltranslator/HwBridge.java
+
5
−
1
View file @
3a0de428
...
...
@@ -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
)));
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment