Browse Source

Fix expected and actual argument order

Issue: SPR-11424
pull/448/merge
Rossen Stoyanchev 11 years ago
parent
commit
6a4a2ec6a4
  1. 10
      spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java

10
spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java

@ -73,7 +73,7 @@ public class StatusResultMatchers { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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));
}
};
}

Loading…
Cancel
Save