• Post Reply 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

 
Ranch Hand
Posts: 717
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • 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
 
Bartender
Posts: 2008
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about changing it into @SpringBootTest?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic