Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

How can I test if the JPA mapping is correct at all and how do I make Eclipse run the test ?

 
Ranch Hand
Posts: 944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi experts,

I have tried to get my SpringJPA to work but to no avail.
So, I am thinking of using @DataJpaTest to check if there is any part that is not working but I am not sure if @DataJpaTest is the way to do it.

Furthermore, when I right-click JUnit test, there isn't anything appear in the console, I am wondering if it is running via JUnit test or what.

Here's the code :



So, I'm trying to make sure that the order cannot be saved but I am not sure what is the assert to use

And how do I perform a test like this ?

Serious I wonder how other people can meet the deadline whereas I am like constantly facing all sorts of problems to resolve...I wonder if this is a indication I am not suitable
 
Saloon Keeper
Posts: 26540
187
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This post is a duplicate of https://coderanch.com/t/737986/frameworks/test-JPA-mapping-correct-Eclipse

To avoid confusion, it has been locked. Please response to the other copy of this post.
    Bookmark Topic Watch Topic
  • New Topic