Registry / testing / akka-http-testkit-2-11

akka-http-testkit-2-11

JSON →
library10.1.15javamavenunverified

Akka HTTP TestKit provides testing utilities for Akka HTTP, a modern, fast, asynchronous, streaming-first HTTP server and client.

<dependency> <groupId>com.typesafe.akka</groupId> <artifactId>akka-http-testkit_2.11</artifactId> <version>10.1.15</version> </dependency>
INSTALL
IMPORT
SIG · AKKA-HTTP-TESTKIT-
A
akka-http-testkit-2-11
testingjavav10.1.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JUnitRouteTest
akka.http.javadsl.testkit.JUnitRouteTest

Tests an Akka HTTP route using JUnit.

import akka.http.javadsl.testkit.JUnitRouteTest; import akka.http.javadsl.server.Route; public class MyRouteTest extends JUnitRouteTest { public void testRoute() { Route route = path("hello", () -> complete("world")); testRoute(route).run(HttpRequest.GET("/hello")) .assertStatusCode(200) .assertEntity("world"); } }
Debug
Known issues
breakingThis artifact is for Scala 2.11; use the appropriate version for your Scala version.
fix
Use akka-http-testkit with the correct Scala version suffix (e.g., _2.12, _2.13).
affects: *
Upgrade
Version history
10.1.15latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
30
OpenAI (training)
1
Resources
akka-http-testkit-2-11 — mvn dependency:get akka-http-testkit-2-11 · libregistry