Compiling errors when JUnit test starting
Always, when application code is done, developers should create some tests for they own application. JUnit framework is very usefull for that. But, first, befor running our tests you should get some dependencies on your pom.xml configuration file. Error, we get from compilator looks like: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
# JUnit dependency:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
# JAXB-API plug-in dependency:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
All dependencies with latest versions you can get from maven repository.