Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakartaee-tck-dev] How to map tests to specs

Hi Hussain, this helps ! Thanks a lot,

Best,
Suhrid

On Thu, Oct 1, 2020 at 1:29 AM <Hussain.NM@xxxxxxxxxxxxx> wrote:

 

You need to look at the SpecAssertions.xml to find the chapter and section a particular assertion id is referring to.

For Persistence, check the below location:

https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/internal/docs/jpa/Persistence22SpecAssertions.xml

 

So for PERSISTENCE:SPEC:1375 you will find

<assertion required="true" impl-spec="false" defined-by="technology"

  status="active" testable="true">

  <id>PERSISTENCE:SPEC:1375</id>

  <description>Entity instances are created by means of the new

    operation. An entity instance, when first

    created by new is not yet persistent.

  </description>

  <location chapter="3" section="2.1"/>

</assertion>

 

Now refer to section 3.2.1 of the specification

https://jakarta.ee/specifications/persistence/3.0/persistence_3.0-RC2.html#entity-instance-creation

 

You will find the assertion statement

Entity instances are created by means of the new operation. An entity instance, when first created by new is not yet persistent.

 

Hope this is helpful.

 

Thanks

Hussain

 

 

From: jakartaee-tck-dev-bounces@xxxxxxxxxxx <jakartaee-tck-dev-bounces@xxxxxxxxxxx> On Behalf Of Suhrid Karthik
Sent: Thursday, October 1, 2020 12:24 PM
To: jakartaee-tck developer discussions <jakartaee-tck-dev@xxxxxxxxxxx>
Subject: [jakartaee-tck-dev] How to map tests to specs

 

Hello all,

 

In an attempt to get started with contributing here, I've managed to get some JPA TCK tests running locally. I've looked at some of the tests and wanted to know how these map to the spec itself. E.g. see one of the tests below, should the assertion id be used to somehow navigate the spec ? Any pointers/tips appreciated. Thanks !

 

Best,

Suhrid

 

  /*
   * @testName: newEntityTest
   * @assertion_ids: PERSISTENCE:SPEC:1375;
   * @test_Strategy: Instantiate entity and verify it didn't get persisted
   */
  public void newEntityTest() throws Fault {

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
_______________________________________________
jakartaee-tck-dev mailing list
jakartaee-tck-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jakartaee-tck-dev

Back to the top