Answer the question
In order to leave comments, you need to log in
Where can I see examples of junit tests using javaee?
Good afternoon.
I understand that the topic is chewed chewed, but when you start to google, you get a complete mess in your head in response ... :(
Actually, there is an application nothing complicated and extraordinary: the application itself is spinning on wildfly (for me, this is an important clarification in this matter) , uses mysql and accordingly - hibernate, frontend - primefaces (perhaps this affects something when testing, but I doubt something :). Spring is not used.
So the first thing I have at the input is the connection to the database, I describe thus -
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
<persistence-unit name="control-app">
<jta-data-source>java:/control-app</jta-data-source>
<class>pst.asu.beans.order.domain.OrderEntity</class>
<properties>
<property name="hibernate.hbm2ddl.auto" value="validate" />
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.format_sql" value="false" />
</properties>
</persistence-unit>
</persistence>
Answer the question
In order to leave comments, you need to log in
Each chapter of Gonsalves' "Learn Java EE 7" tutorial has a section on testing. Systematic mastering of the subject from the textbook is the key to the absence of porridge in the head.
PS PrimeFaces is not a frontend, it's a backend presentation layer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question