Skip to content

Commit

Permalink
Add Styles IT
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Oct 14, 2024
1 parent da1d413 commit 3188d23
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package io.quarkiverse.jasperreports.it;

import io.quarkus.test.junit.QuarkusIntegrationTest;

@QuarkusIntegrationTest
class JasperReportsStylesResourceIT extends JasperReportsStylesResourceTest {
// Execute the same tests but in packaged mode.
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package io.quarkiverse.jasperreports.it;

import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.containsString;

import org.junit.jupiter.api.Test;

import io.quarkus.test.junit.QuarkusTest;

@QuarkusTest
class JasperReportsStylesResourceTest {

@Test
void testStyleDatasource() {
given()
.when().header("accept", "text/csv").get("jasper/style")
.then()
.statusCode(200)
.body(containsString("Regular (default): font size = 12, centered, border"));
}

}

0 comments on commit 3188d23

Please sign in to comment.