From 6a4a2ec6a4e8067063209b8126fccf9eb3411e53 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Wed, 12 Mar 2014 16:52:52 -0400 Subject: [PATCH] Fix expected and actual argument order Issue: SPR-11424 --- .../test/web/servlet/result/StatusResultMatchers.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java b/spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java index 3d1d48f4d4..a08a223c84 100644 --- a/spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java +++ b/spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java @@ -73,7 +73,7 @@ public class StatusResultMatchers { @Override public void match(MvcResult result) throws Exception { assertEquals("Range for response status value " + result.getResponse().getStatus(), - getHttpStatusSeries(result), HttpStatus.Series.INFORMATIONAL); + HttpStatus.Series.INFORMATIONAL, getHttpStatusSeries(result)); } }; } @@ -86,7 +86,7 @@ public class StatusResultMatchers { @Override public void match(MvcResult result) throws Exception { assertEquals("Range for response status value " + result.getResponse().getStatus(), - getHttpStatusSeries(result), HttpStatus.Series.SUCCESSFUL); + HttpStatus.Series.SUCCESSFUL, getHttpStatusSeries(result)); } }; } @@ -99,7 +99,7 @@ public class StatusResultMatchers { @Override public void match(MvcResult result) throws Exception { assertEquals("Range for response status value " + result.getResponse().getStatus(), - getHttpStatusSeries(result), HttpStatus.Series.REDIRECTION); + HttpStatus.Series.REDIRECTION, getHttpStatusSeries(result)); } }; } @@ -112,7 +112,7 @@ public class StatusResultMatchers { @Override public void match(MvcResult result) throws Exception { assertEquals("Range for response status value " + result.getResponse().getStatus(), - getHttpStatusSeries(result), HttpStatus.Series.CLIENT_ERROR); + HttpStatus.Series.CLIENT_ERROR, getHttpStatusSeries(result)); } }; } @@ -125,7 +125,7 @@ public class StatusResultMatchers { @Override public void match(MvcResult result) throws Exception { assertEquals("Range for response status value " + result.getResponse().getStatus(), - getHttpStatusSeries(result), HttpStatus.Series.SERVER_ERROR); + HttpStatus.Series.SERVER_ERROR, getHttpStatusSeries(result)); } }; }