Skip to content

Commit

Permalink
depend on fake-servlet5
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Mar 14, 2024
1 parent 87597e6 commit 010dfb0
Show file tree
Hide file tree
Showing 19 changed files with 8 additions and 1,487 deletions.
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ hibernate-validator = "org.hibernate.validator:hibernate-validator:8.0.1.Final"
jakarta-el-api = "jakarta.el:jakarta.el-api:5.0.1"
spring-boot-starter-test = "org.springframework.boot:spring-boot-starter-test:3.0.4"
spring-boot-starter-web = "org.springframework.boot:spring-boot-starter-web:3.0.4"
fake-servlet5 = "com.github.mvysny.fake-servlet:fake-servlet5:1.0"
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.mvysny.kaributesting.v10.groovy

import com.github.mvysny.kaributesting.mockhttp.MockHttpSession
import com.github.mvysny.kaributesting.mockhttp.MockRequest
import com.github.mvysny.kaributesting.mockhttp.MockResponse
import com.github.mvysny.fakeservlet.FakeHttpSession
import com.github.mvysny.fakeservlet.FakeRequest
import com.github.mvysny.fakeservlet.FakeResponse
import com.github.mvysny.kaributesting.v10.UtilsKt
import com.vaadin.flow.server.VaadinRequest
import com.vaadin.flow.server.VaadinResponse
Expand All @@ -19,7 +19,7 @@ class MockVaadinExtensionMethods {
* </pre>
*/
@NotNull
static MockRequest getMock(@NotNull VaadinRequest self) {
static FakeRequest getMock(@NotNull VaadinRequest self) {
UtilsKt.getMock(self)
}

Expand All @@ -30,7 +30,7 @@ class MockVaadinExtensionMethods {
* </pre>
*/
@NotNull
static MockResponse getMock(@NotNull VaadinResponse self) {
static FakeResponse getMock(@NotNull VaadinResponse self) {
UtilsKt.getMock(self)
}

Expand All @@ -41,7 +41,7 @@ class MockVaadinExtensionMethods {
* </pre>
*/
@NotNull
static MockHttpSession getMock(@NotNull VaadinSession self) {
static FakeHttpSession getMock(@NotNull VaadinSession self) {
UtilsKt.getMock(self)
}
}
2 changes: 1 addition & 1 deletion karibu-testing-v10/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
compileOnly(libs.vaadin.v24.all)
testImplementation(libs.vaadin.v24.all)

api(project(":mock-servlet-environment5"))
api(libs.fake.servlet5)
api(libs.kaributools)

testImplementation(libs.dynatest)
Expand Down
50 changes: 0 additions & 50 deletions mock-servlet-environment5/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions mock-servlet-environment5/build.gradle.kts

This file was deleted.

Loading

0 comments on commit 010dfb0

Please sign in to comment.