File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
junit/mockwebserver/src/test/groovy/io/fabric8/mockwebserver/crud Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,13 @@ class AttributeSetTest extends Specification {
106106 when :
107107 AttributeSet attributeSet = new AttributeSet (a2)
108108 AttributeSet selectorWithOne = new AttributeSet (a2)
109- AttributeSet selectorWithTwo = new AttributeSet (a2, a3);
109+ AttributeSet selectorWithTwo = new AttributeSet (a2, a3)
110+ def orderedAttributes = new LinkedHashSet ([a2, a3]);
110111 then :
111112
112113 // Assert that the order is suitable for testing. The failing attribute should
113114 // be in the *second* position to ensure we're examining all the values of the selector
114- assert new ArrayList<> (selectorWithTwo . attributes . values() ). indexOf(a3) == 1 ;
115+ assert new ArrayList<> (orderedAttributes ). indexOf(a3) == 1 ;
115116
116117 assert attributeSet. matches(selectorWithOne)
117118 assert ! attributeSet. matches(selectorWithTwo)
You can’t perform that action at this time.
0 commit comments