mirror of
https://github.com/ethauvin/rife2-hello.git
synced 2025-04-27 16:18:12 -07:00
Initial commit
This commit is contained in:
parent
05b1ce9e95
commit
c40209698c
15 changed files with 584 additions and 0 deletions
18
app/src/test/java/hello/AppTest.java
Normal file
18
app/src/test/java/hello/AppTest.java
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* This Java source file was generated by the Gradle 'init' task.
|
||||
*/
|
||||
package hello;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import rife.test.MockConversation;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
public class AppTest {
|
||||
@Test
|
||||
void verifyHello() {
|
||||
var m = new MockConversation(new App());
|
||||
assertEquals("Hello", m.doRequest("/hello")
|
||||
.getTemplate().getValue("title"));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue