Takes - hit-refresh feature
This commit is contained in:
parent
a099b358a7
commit
a43d65c755
@ -139,6 +139,47 @@
|
|||||||
</resources>
|
</resources>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>hit-refresh</id>
|
||||||
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/webapp</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>${exec-maven-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>start-server</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>java</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<mainClass>com.baeldung.takes.TakesApp</mainClass>
|
||||||
|
<cleanupDaemonThreads>false</cleanupDaemonThreads>
|
||||||
|
<arguments>
|
||||||
|
<argument>--port=${port}</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<jcommander.version>1.78</jcommander.version>
|
<jcommander.version>1.78</jcommander.version>
|
||||||
<lombok.version>1.18.6</lombok.version>
|
<lombok.version>1.18.6</lombok.version>
|
||||||
@ -159,5 +200,6 @@
|
|||||||
|
|
||||||
<takes.version>1.19</takes.version>
|
<takes.version>1.19</takes.version>
|
||||||
<velocity-engine-core.version>2.2</velocity-engine-core.version>
|
<velocity-engine-core.version>2.2</velocity-engine-core.version>
|
||||||
|
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -10,7 +10,7 @@ public class TakesContactUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenTake_whenInvokeActMethod_thenRespond() throws Exception {
|
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);
|
assertEquals("Contact us at https://www.baeldung.com", resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user