Skip to content

Commit

Permalink
Fix the unit test with us now calling addEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Feb 1, 2024
1 parent ecdea00 commit a68a083
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import io.javalin.Javalin
import io.javalin.http.Context
import io.javalin.http.Handler
import io.javalin.http.HandlerType
import io.javalin.router.Endpoint
import spock.lang.Specification

import java.util.function.Function
Expand Down Expand Up @@ -291,7 +292,7 @@ class DomainsRegistrationTest extends Specification {
DomainsRegistration.registerDomains(javalinApp, domains as Set<Class<? extends DomainConnector>>)

then:
expectedNumberOfAddHandlerCalls * javalinApp.addHandler(_ as HandlerType, _ as String, _ as Handler)
expectedNumberOfAddHandlerCalls * javalinApp.addEndpoint(_ as Endpoint)
}

def "an OpenAPI endpoint is registered and it sets it content-type as YAML"() {
Expand Down

0 comments on commit a68a083

Please sign in to comment.