diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azurecustombaseuri/AzureCustomBaseUriTests.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azurecustombaseuri/AzureCustomBaseUriTests.java index 876dae8fab2a7..b6007f1d8195e 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azurecustombaseuri/AzureCustomBaseUriTests.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azurecustombaseuri/AzureCustomBaseUriTests.java @@ -23,7 +23,7 @@ public static void setup() { // Positive test case @Test public void getEmptyWithValidCustomUri() throws Exception { - client.setHost("host.:3000"); + client.setHost("host:3000"); Assert.assertTrue(client.getPathsOperations().getEmpty("local").getResponse().isSuccess()); } @@ -49,7 +49,7 @@ public void getEmptyWithInvalidCustomUriHostName() throws Exception { Assert.assertTrue(true); } finally { - client.setHost("host.:3000"); + client.setHost("host:3000"); } } diff --git a/AutoRest/Generators/Java/Java.Tests/src/test/java/fixtures/custombaseuri/CustomBaseUriTests.java b/AutoRest/Generators/Java/Java.Tests/src/test/java/fixtures/custombaseuri/CustomBaseUriTests.java index 2e5ca1f5273db..c21afb1666878 100644 --- a/AutoRest/Generators/Java/Java.Tests/src/test/java/fixtures/custombaseuri/CustomBaseUriTests.java +++ b/AutoRest/Generators/Java/Java.Tests/src/test/java/fixtures/custombaseuri/CustomBaseUriTests.java @@ -17,7 +17,7 @@ public static void setup() { // Positive test case @Test public void getEmptyWithValidCustomUri() throws Exception { - client.setHost("host.:3000"); + client.setHost("host:3000"); Assert.assertTrue(client.getPathsOperations().getEmpty("local").getResponse().isSuccess()); } @@ -43,7 +43,7 @@ public void getEmptyWithInvalidCustomUriHostName() throws Exception { Assert.assertTrue(true); } finally { - client.setHost("host.:3000"); + client.setHost("host:3000"); } }