java


“Class Not Found” Error with JUnit Test in IntelliJJ


I have been getting the error Class not found: "org.jpl7.test.TestJUnit"Empty test suite. when trying to run a JUnit test on my project in IntelliJ. I see that a lot of other people have also experienced this problem, but I have found not solution to mine in their answers.
This project is one I have forked from GitHub, the Java-to-Prolog project from SWI-PL. Their file-structure may be playing into this, as I suspect my problem may have to do with source paths.
This is their file structure
packages-jpl
----src
--------c
--------java
------------org.jpl7
----------------All non-test source files
----------------test
--------------------All test files
Currently, the Source Path for src is set to the "java" directory, and the Source Path for Test is set to the "test" directory. The content root is set to "packages-jpl", since that is the directory that contains the idea folder and such.
The problem may also lie in my output paths. My main output path is set to "\production\packages-jpl". My Test Output Path is set to "\test\packages-jpl".
Try marking:
The java folder in the main directory as the Sources root
The java folder in the test directory as the Test Sources root:
And try to keep the same package structure in both main and test directory.

Related Links

Requiring password even when logged in for certain resources in Spring Boot webapp
How to set different Limit in JTextField for showing Input Hint and Input
SkImageDecoder: Factory returned null
How to disable the access to public classes of a jar?
Java Swing disable and enable
Java - Error Collections.sort on Netbeans
Android Studio Bluetooth emulators
Opendaylight BORON packet handling ( Hydrogen's IListenDataPacket class)
Save and read hashmap to file?
Unidirectional one to many, parent has composite key
JSCH addIdentity public key argument doesn't make a difference
How can I add Levels to my game with less duplication of code?
FUSE hibernate with CXF
Spring: How to get spring applicationContext in a Testng test class, if I can NOT extend AbstractTestNGSpringContextTests
Custom UDP protocol encryption without DTLS
How to construct a pattern in java regex that checks whether there is a decimal in the given number

Categories

HOME
ibm-bluemix
testng
blogger
deezer
reserved
fme
vmware
bookshelf.js
spring-jdbc
amazon-ecs
jpeg
survey
blueprintjs
django-imagekit
swagger-ui
numeral.js
designer
ef-migrations
pugjs
aurigma
contextmenu
grails3
object-detection
wkwebview
google-search-api
realex-payments-api
firebase-crash-reporting
su
chromebook
linkerd
delicious-api
lightswitch-2013
junit5
google-qpx-express-api
fog
column-family
code-contracts
usbserial
xmlreader
mmenu
bytecode-manipulation
android-ble
plsql-psp
.net-4.6.2
avconv
titanium-android
webdriverjs
xcb
elements
py2app
cartesian-product
eclipse-clp
wordml
wyam
angular-leaflet-directive
event-bubbling
directoryservices
fscommand
operator-precedence
clicktag
tt-news
device-manager
datagridviewcolumn
srs
mbr
prettify
pyhdf
aqtime
runtime.exec
jmapviewer
ruby-datamapper
buster.js
mylyn
sharp-repository
itmstransporter
mt
gdata-api
pysimplesoap
cascalog
dbproviderfactories
buildr
recent-documents
disclosure
floating
cxxtest
sortable-tables
jquery-ui-droppable
spec#
defensive-programming
dbisam
rtml
ajax-forms

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App