Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webapp-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CS-214
ul2024
webapp-lib
Commits
df982193
Commit
df982193
authored
5 months ago
by
Clément Pit-Claudel
Browse files
Options
Downloads
Patches
Plain Diff
tests: Move most static functions to companion object
parent
4a4490f0
No related branches found
No related tags found
1 merge request
!32
Add simple tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jvm/src/test/scala/cs214/webapp/ServerSuite.scala
+3
-1
3 additions, 1 deletion
jvm/src/test/scala/cs214/webapp/ServerSuite.scala
with
3 additions
and
1 deletion
jvm/src/test/scala/cs214/webapp/ServerSuite.scala
+
3
−
1
View file @
df982193
...
...
@@ -19,7 +19,7 @@ given unsafeURI: Conversion[String, Uri] with
case
class
WebServerInfo
(
uri
:
String
)
:
override
def
toString
=
uri
class
ServerSuite
extends
munit
.
FunSuite
:
object
ServerSuite
:
type
Ping
=
String
type
Pong
=
String
type
State
=
String
...
...
@@ -62,7 +62,9 @@ class ServerSuite extends munit.FunSuite:
println
(
f
"Elapsed: ${(end - start) / 1000000} ms"
)
result
class
ServerSuite
extends
munit
.
FunSuite
:
import
sttp.client4.quick.*
import
ServerSuite.*
test
(
"
The
main
and
app-selection
pages
respond
to
requests
"
)
:
withServer:
ws
?=>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment