File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/test/java/com/flowingcode/vaadin/addons/xterm/integration Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1919 */
2020package com .flowingcode .vaadin .addons .xterm .integration ;
2121
22- import static org .junit .Assert .assertEquals ;
23- import static org .junit .Assert .assertTrue ;
22+ import static org .hamcrest .Matchers .is ;
23+ import static org .hamcrest .Matchers .lessThanOrEqualTo ;
24+ import static org .junit .Assert .assertThat ;
2425import org .junit .Test ;
2526import org .openqa .selenium .Dimension ;
2627
@@ -40,7 +41,7 @@ public void testFeature() {
4041 return w != colsBefore ? w : null ;
4142 });
4243
43- assertTrue (colsAfter * 2 <= colsBefore );
44+ assertThat (colsAfter * 2 , is ( lessThanOrEqualTo ( colsBefore )) );
4445
4546 getDriver ().manage ().window ().setSize (dimension );
4647
@@ -49,6 +50,6 @@ public void testFeature() {
4950 return w != colsAfter ? w : null ;
5051 });
5152
52- assertEquals ( colsBefore , colsRestored );
53+ assertThat ( colsRestored , is ( colsBefore ) );
5354 }
5455}
You can’t perform that action at this time.
0 commit comments