mirror of
https://github.com/ethauvin/rife2-hello.git
synced 2025-04-26 15:48:13 -07:00
24 lines
572 B
Java
24 lines
572 B
Java
/*
|
|
* 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 verifyRoot() {
|
|
var m = new MockConversation(new App());
|
|
assertEquals(m.doRequest("/").getStatus(), 302);
|
|
}
|
|
|
|
@Test
|
|
void verifyHello() {
|
|
var m = new MockConversation(new App());
|
|
assertEquals("Hello", m.doRequest("/hello")
|
|
.getTemplate().getValue("title"));
|
|
}
|
|
}
|