Skip to content
Snippets Groups Projects
Commit 1df697f5 authored by Clément Pit-Claudel's avatar Clément Pit-Claudel
Browse files

Rename WebappTest to WebappSuite and move it to webapp.utils

parent 55966448
No related branches found
No related tags found
No related merge requests found
package cs214.webapp.server
package cs214.webapp.utils
import java.net.URI
import java.net.http.HttpRequest
......@@ -8,7 +8,7 @@ import cs214.webapp.*
import cs214.webapp.server.StateMachine
/** Abstract test suite to help testing logic of Webapps */
abstract class WebappTest[Event, State, View] extends munit.FunSuite:
abstract class WebappSuite[Event, State, View] extends munit.FunSuite:
protected val UID0: String = "yak"
protected val UID1: String = "hut"
......@@ -17,6 +17,8 @@ abstract class WebappTest[Event, State, View] extends munit.FunSuite:
/** Mock user IDs that can be used in tests */
protected val USER_IDS = Seq(UID0, UID1, UID2)
protected val RNG = util.Random(0)
/** Your app logic */
val sm: StateMachine[Event, State, View]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment