From a43d65c7559b3fb9bd3536ac9482653e134a3aca Mon Sep 17 00:00:00 2001 From: Anshul BANSAL Date: Sat, 22 Feb 2020 20:47:55 +0200 Subject: [PATCH] Takes - hit-refresh feature --- libraries-3/pom.xml | 42 +++++++++++++++++++ .../baeldung/takes/TakesContactUnitTest.java | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/libraries-3/pom.xml b/libraries-3/pom.xml index 3bacdbe1b3..4400fde600 100644 --- a/libraries-3/pom.xml +++ b/libraries-3/pom.xml @@ -139,6 +139,47 @@ + + + hit-refresh + + + + src/main/resources + true + + + src/main/webapp + true + + + + + org.codehaus.mojo + exec-maven-plugin + ${exec-maven-plugin.version} + + + start-server + pre-integration-test + + java + + + + + com.baeldung.takes.TakesApp + false + + --port=${port} + + + + + + + + 1.78 1.18.6 @@ -159,5 +200,6 @@ 1.19 2.2 + 1.6.0 diff --git a/libraries-3/src/test/java/com/baeldung/takes/TakesContactUnitTest.java b/libraries-3/src/test/java/com/baeldung/takes/TakesContactUnitTest.java index 2f1948f100..5f8b7c57fc 100644 --- a/libraries-3/src/test/java/com/baeldung/takes/TakesContactUnitTest.java +++ b/libraries-3/src/test/java/com/baeldung/takes/TakesContactUnitTest.java @@ -10,7 +10,7 @@ public class TakesContactUnitTest { @Test public void givenTake_whenInvokeActMethod_thenRespond() throws Exception { - String resp = new RsPrint(new TakesContact().act(new RqFake())).printBody(); + final String resp = new RsPrint(new TakesContact().act(new RqFake())).printBody(); assertEquals("Contact us at https://www.baeldung.com", resp); }