This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 30c7750 CAMEL-17664: camel-core-model - Rename rest verb files to use same naming style as others. 30c7750 is described below commit 30c775081d4c7e01df9d7c2c4c559cd3d7a13fb8 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Feb 17 15:45:15 2022 +0100 CAMEL-17664: camel-core-model - Rename rest verb files to use same naming style as others. --- .../org/apache/camel/dsl/kotlin/KotlinRoutesBuilderLoaderTest.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dsl/camel-kotlin-dsl/src/test/kotlin/org/apache/camel/dsl/kotlin/KotlinRoutesBuilderLoaderTest.kt b/dsl/camel-kotlin-dsl/src/test/kotlin/org/apache/camel/dsl/kotlin/KotlinRoutesBuilderLoaderTest.kt index ec41cec..8fe5b05 100644 --- a/dsl/camel-kotlin-dsl/src/test/kotlin/org/apache/camel/dsl/kotlin/KotlinRoutesBuilderLoaderTest.kt +++ b/dsl/camel-kotlin-dsl/src/test/kotlin/org/apache/camel/dsl/kotlin/KotlinRoutesBuilderLoaderTest.kt @@ -27,8 +27,8 @@ import org.apache.camel.impl.DefaultCamelContext import org.apache.camel.language.bean.BeanLanguage import org.apache.camel.model.ProcessDefinition import org.apache.camel.model.ToDefinition -import org.apache.camel.model.rest.GetVerbDefinition -import org.apache.camel.model.rest.PostVerbDefinition +import org.apache.camel.model.rest.GetDefinition +import org.apache.camel.model.rest.PostDefinition import org.apache.camel.processor.FatalFallbackErrorHandler import org.apache.camel.support.DefaultHeaderFilterStrategy import org.assertj.core.api.Assertions.assertThat @@ -83,7 +83,7 @@ class KotlinRoutesBuilderLoaderTest { with(ctx.restDefinitions.find { it.path == "/my/path" }) { assertThat(this?.verbs).hasSize(1) - with(this?.verbs?.get(0) as GetVerbDefinition) { + with(this?.verbs?.get(0) as GetDefinition) { assertThat(uri).isEqualTo("/get") assertThat(consumes).isEqualTo("application/json") assertThat(produces).isEqualTo("application/json") @@ -94,7 +94,7 @@ class KotlinRoutesBuilderLoaderTest { with(ctx.restDefinitions.find { it.path == "/post" }) { assertThat(this?.verbs).hasSize(1) - with(this?.verbs?.get(0) as PostVerbDefinition) { + with(this?.verbs?.get(0) as PostDefinition) { assertThat(uri).isNull() assertThat(consumes).isEqualTo("application/json") assertThat(produces).isEqualTo("application/json")