From 25ee92b5d843934b2b207bed986e4b9ca8e65b11 Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Tue, 2 Jul 2019 17:21:40 -0400 Subject: [PATCH] Re-add hello.xml file (#147) * Re-add hello.xml file Apparently it was lost during the great refactoring. * Remove hello.xml from test resources --- .../src/main/java/google/registry/proxy/EppProtocolModule.java | 2 +- .../resources/google/registry/proxy}/hello.xml | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename proxy/src/{test/java/google/registry/proxy/resources => main/resources/google/registry/proxy}/hello.xml (100%) diff --git a/proxy/src/main/java/google/registry/proxy/EppProtocolModule.java b/proxy/src/main/java/google/registry/proxy/EppProtocolModule.java index 60d1b533e..819138855 100644 --- a/proxy/src/main/java/google/registry/proxy/EppProtocolModule.java +++ b/proxy/src/main/java/google/registry/proxy/EppProtocolModule.java @@ -134,7 +134,7 @@ public class EppProtocolModule { @Named("hello") static byte[] provideHelloBytes() { try { - return readResourceBytes(EppProtocolModule.class, "resources/hello.xml").read(); + return readResourceBytes(EppProtocolModule.class, "hello.xml").read(); } catch (IOException e) { throw new RuntimeException("Cannot read EPP message file.", e); } diff --git a/proxy/src/test/java/google/registry/proxy/resources/hello.xml b/proxy/src/main/resources/google/registry/proxy/hello.xml similarity index 100% rename from proxy/src/test/java/google/registry/proxy/resources/hello.xml rename to proxy/src/main/resources/google/registry/proxy/hello.xml