You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2018/10/31 01:49:36 UTC
[18/33] james-project git commit: JAMES-2575 fix escaped component
name, replace status code
JAMES-2575 fix escaped component name, replace status code
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/a2cd1e0b
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/a2cd1e0b
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/a2cd1e0b
Branch: refs/heads/master
Commit: a2cd1e0b9f0d5d8676271bce38c0a68b3af43416
Parents: d454884
Author: Michael Schnitzler <sc...@gmail.com>
Authored: Mon Oct 29 16:52:36 2018 +0100
Committer: Benoit Tellier <bt...@linagora.com>
Committed: Wed Oct 31 08:48:29 2018 +0700
----------------------------------------------------------------------
.../org/apache/james/webadmin/routes/HealthCheckRoutesTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/a2cd1e0b/server/protocols/webadmin/webadmin-core/src/test/java/org/apache/james/webadmin/routes/HealthCheckRoutesTest.java
----------------------------------------------------------------------
diff --git a/server/protocols/webadmin/webadmin-core/src/test/java/org/apache/james/webadmin/routes/HealthCheckRoutesTest.java b/server/protocols/webadmin/webadmin-core/src/test/java/org/apache/james/webadmin/routes/HealthCheckRoutesTest.java
index 2ff0555..6235f3b 100644
--- a/server/protocols/webadmin/webadmin-core/src/test/java/org/apache/james/webadmin/routes/HealthCheckRoutesTest.java
+++ b/server/protocols/webadmin/webadmin-core/src/test/java/org/apache/james/webadmin/routes/HealthCheckRoutesTest.java
@@ -50,7 +50,7 @@ public class HealthCheckRoutesTest {
private static final String NAME_1 = "component-1";
private static final String NAME_2 = "component-2";
private static final String NAME_3 = "component 3";
- private static final String NAME_3_ESCAPED = "component&203";
+ private static final String NAME_3_ESCAPED = "component%203";
private static final ComponentName COMPONENT_NAME_1 = new ComponentName(NAME_1);
private static final ComponentName COMPONENT_NAME_2 = new ComponentName(NAME_2);
@@ -173,7 +173,7 @@ public class HealthCheckRoutesTest {
.body("details", is(nullValue()))
.body("type", equalTo("notFound"))
.body("message", equalTo("Component with name unknown cannot be found"))
- .body("statusCode", is(404));
+ .body("statusCode", is(HttpStatus.NOT_FOUND_404));
}
@Test
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org