Permalink
Browse files

Fix expected and actual argument order

Issue: SPR-11424
  • Loading branch information...
1 parent 3474afb commit 6a4a2ec6a4e8067063209b8126fccf9eb3411e53 @rstoyanchev rstoyanchev committed Mar 12, 2014
@@ -73,7 +73,7 @@ public ResultMatcher is1xxInformational() {
@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 ResultMatcher is2xxSuccessful() {
@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 ResultMatcher is3xxRedirection() {
@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 ResultMatcher is4xxClientError() {
@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 ResultMatcher is5xxServerError() {
@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));
}
};
}

0 comments on commit 6a4a2ec

Please sign in to comment.