From 41f1681c299f36116d7afda9004f5ef3c2efe7e3 Mon Sep 17 00:00:00 2001 From: Simon Stewart Date: Sun, 4 Mar 2018 19:12:47 -0800 Subject: [PATCH] Make a test not rely on JsonElement.toString --- .../utils/configuration/GridNodeConfigurationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/server/test/org/openqa/grid/internal/utils/configuration/GridNodeConfigurationTest.java b/java/server/test/org/openqa/grid/internal/utils/configuration/GridNodeConfigurationTest.java index 4049ee93bea61..4272e5e2061ce 100644 --- a/java/server/test/org/openqa/grid/internal/utils/configuration/GridNodeConfigurationTest.java +++ b/java/server/test/org/openqa/grid/internal/utils/configuration/GridNodeConfigurationTest.java @@ -34,6 +34,7 @@ import org.openqa.grid.common.exception.GridConfigurationException; import org.openqa.grid.internal.cli.GridNodeCliOptions; import org.openqa.selenium.Platform; +import org.openqa.selenium.json.Json; import org.openqa.selenium.remote.DesiredCapabilities; import java.io.IOException; @@ -186,7 +187,7 @@ public void testAsJson() { + "\"debug\":false," + "\"port\":5555," + "\"role\":\"node\"," - + "\"timeout\":1800}", gnc.toJson().toString()); + + "\"timeout\":1800}", new Json().toJson(gnc.toJson())); } @Test