• 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 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:
  • 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: 2265
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic