C
C
Chvalov2016-04-16 04:35:25
Java
Chvalov, 2016-04-16 04:35:25

How to make Junit work normally (log4j swears)?

An error occurs when running tests:

log4j:WARN No appenders could be found for logger (com.j256.ormlite.db.SqliteDatabaseType).
log4j:WARN Please initialize the log4j system properly.

4e5235ece6304ba0bb47a9956d367441.png
How to overcome it?
What I did wrong, in principle, did everything following the example of SQLite ORM , in his project everything displays normally, there are no warnings.
But there is not a word about log4j in his project either.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Chvalov, 2016-04-16
@Chvalov

You need to connect everything as it says in the book) - https://maven.apache.org/pom.html
I don’t know why, but as soon as I connect everything in Project Structure -> Libraries -> From maven, then the dependencies are not initialized correctly, I tried the last 3 versions and the old ormlite 4.35, it only worked on 4.35.
I created a pom.xml file and rewrote all the dependencies into it and everything works like clockwork.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question