Compare commits
3 Commits
7860819029
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 786c11981b | |||
| 7671c05893 | |||
| de1c4fadd7 |
@@ -14,6 +14,7 @@ val quarkusPlatformArtifactId: String by project
|
|||||||
val quarkusPlatformVersion: String by project
|
val quarkusPlatformVersion: String by project
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation("io.quarkus:quarkus-container-image-docker")
|
||||||
implementation("io.quarkus:quarkus-config-yaml")
|
implementation("io.quarkus:quarkus-config-yaml")
|
||||||
implementation(enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}"))
|
implementation(enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}"))
|
||||||
implementation("io.quarkus:quarkus-rest")
|
implementation("io.quarkus:quarkus-rest")
|
||||||
@@ -34,7 +35,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "com.rak"
|
group = "com.rak"
|
||||||
version = "1.0-SNAPSHOT"
|
version = "0.0.2"
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
sourceCompatibility = JavaVersion.VERSION_21
|
||||||
|
|||||||
@@ -96,6 +96,12 @@ scraper:
|
|||||||
value: "./td/a[0]"
|
value: "./td/a[0]"
|
||||||
- type: xpath
|
- type: xpath
|
||||||
value: "./text()"
|
value: "./text()"
|
||||||
|
transform:
|
||||||
|
- name: "regexReplace"
|
||||||
|
parameters: [
|
||||||
|
".+-[A-Za-z]*0?",
|
||||||
|
""
|
||||||
|
]
|
||||||
- steps:
|
- steps:
|
||||||
- type: xpath
|
- type: xpath
|
||||||
value: "./td/span/text()"
|
value: "./td/span/text()"
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
package com.rak
|
|
||||||
|
|
||||||
import io.quarkus.test.junit.QuarkusTest
|
|
||||||
import io.restassured.RestAssured.given
|
|
||||||
import org.hamcrest.CoreMatchers.`is`
|
|
||||||
import org.junit.jupiter.api.Test
|
|
||||||
|
|
||||||
@QuarkusTest
|
|
||||||
class ExampleResourceTest {
|
|
||||||
|
|
||||||
@Test
|
|
||||||
fun testHelloEndpoint() {
|
|
||||||
given()
|
|
||||||
.`when`().get("/hello")
|
|
||||||
.then()
|
|
||||||
.statusCode(200)
|
|
||||||
.body(`is`("Hello from Quarkus REST"))
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user