Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakartaee-platform-dev] [External] : Re: Review of Platform TCK removal of duplicate Jakarta JSON Binding tests

Thank you; this is very helpful.

On Tue, Mar 1, 2022 at 5:42 PM Ondrej Mihályi <ondrej.mihalyi@xxxxxxxxxxx> wrote:

I don't know how JSON-B TCK does it now, it probably doesn't give any details about how to run the TCK with Arquillian according to what Romain wrote. But I think you can follow a guide and examples on the Jakarta Batch TCK, which also uses JUnit 5 for tests.

In Batch, the core TCK uses plain JUnit 5 with flat classpath. But we've developed an extension for Arquillian to automatically build a deployment WAR for Arquillian tests. The example project uses the official JUnit 5 extension from the Arquillian project to run the tests in an Arquillian container instead of the current classpath. Since the tests don't define a deployment (it's not needed with a flat classpath), our extension for Arquillian defines the deployment automatically for each test, based on Maven dependencies defined in pom.xml.

I think that in the JSON-B TCK, the same approach can be used to run the tests via Arquillian, either with the extension we developed in Batch or with a similar extension. Have a look at for the example Arquillian-based TCK runner and instructions how to set it up. Also look at the related jakarta.batch.arquillian.exec-parent project and the extension in jakarta.batch.arquillian.extension.

In the future, I hope we can unify this approach and documentation for each TCK that uses JUnit 5 or Arquillian.

Kind regards,

Ondrej Mihályi

Senior Payara Service Engineer
Payara - Supported Enterprise Software for Jakarta EE and MicroProfile Applications
US: +1 415 523 0175 | UK: +44 207 754 0481


Payara is a proud recipient of the prestigious Queen's Award for Enterprise: International Trade 2021

Payara-Tech LDA, Registered Office: Rua Nova de São Pedro no. 54, 2nd floor, room “D”, 9000 048 Funchal, Ilha da Madeira, Portugal

VAT: PT 515158674 | | info@xxxxxxxxxxx | @Payara_Fish

From: jakartaee-platform-dev <jakartaee-platform-dev-bounces@xxxxxxxxxxx> on behalf of Romain Manni-Bucau <rmannibucau@xxxxxxxxx>
Sent: 01 March 2022 19:01
To: arjan tijms <arjan.tijms@xxxxxxxxx>
Cc: jakartaee-platform developer discussions <jakartaee-platform-dev@xxxxxxxxxxx>
Subject: Re: [jakartaee-platform-dev] [External] : Re: Review of Platform TCK removal of duplicate Jakarta JSON Binding tests

Test kit is a junit5 which means it is "standalone" by default but also means you can integrate tests with arquillian if you need registering ArquillianExtension as implicit - or what I was thinking to, a container specific extension to run embedded or remotely. I don't think it needs to be referenced in the guide since it is part of the vendor dependent setup and there is no particular TCK SPI needed but if it helps it can probably.

Romain Manni-Bucau
@rmannibucau |  Blog | Old BlogGithub | LinkedIn | Book

Le mar. 1 mars 2022 à 18:58, arjan tijms <arjan.tijms@xxxxxxxxx> a écrit :

On Tue, Mar 1, 2022 at 4:48 PM Romain Manni-Bucau <rmannibucau@xxxxxxxxx> wrote:

just to clarify that standalone tests can be ran against any server thanks the runner and without any change so I think we cover all the mentionned case already and implementations have no blocker at all as already proven by MP and EE server

Sounds good, how does that work? The user guide only seems to refer to putting a .jar on your classpath and running against that. I didn't see it mention a server, but maybe I missed it. Do you have an example of running it against an MP or EE server?


Kind regards,

jakartaee-platform-dev mailing list
To unsubscribe from this list, visit

Brian Stansberry
Principal Architect, Red Hat JBoss EAP

Back to the top