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

Weird output of for loop [duplicate]
How to convert Java8 Lambda expression into corresponding Java7 code
Is my HTTPClient connection leaking sockets?
openshift postgres: No suitable driver on tomcat
Mockito.verify method contain boolean and argument captor
Binding JSON to Java objects with Jersey
ExceptionInInitializerError while reading .xlsm with POI
How to declare a Typed Class in Java? [duplicate]
How to get/grab post data from a webview in Android
NullPointerException from PrintWriter class and File creation
Android TextWatcher
Why is BigDecimal's scale not a BigInteger? [closed]
java.util.Date Strange issue showing future date in spring + hibernate
Converting integer to double - in a tableview
CDI TransactionInterceptor
Is it possible to create a Method to iterate through a menu using a 2d array?

Categories

HOME
twitter
amazon-ec2
pycharm
hashmap
raspberry-pi
lodash
jira
jgroups
gps
retrofit
convolution
azure-storage-tables
ios-charts
medical
slick-slider
vifm
etl
ups
msp430
netflix
ghc
pugjs
propel
undefined
django-cms
autoconf
riot.js
devops
numerical-methods
internet-explorer-9
typo3-6.2.x
neo4j-spatial
primitive
tinymce-4
media-queries
android-kernel
http-referer
atl
amazon-kinesis-kpl
mmenu
occlusion
objectlistview
quadratic-programming
modelmapper
hibernate-tools
rails-routing
dandelion
dotnetzip
csound
libusb-win32
nsarray
windows-mobile-6.5
eventkit
setuptools
color-picker
rotativa
bonobo
home-directory
pcf
gstreamer-0.10
flash-cs5
react-native-listview
whois
hexdump
itextpdf
photobucket
hsv
tcpserver
reactive-banana
comobject
quicklisp
rgeo
appfabric-cache
web-controls
p2
inmobi
block-device
c3
dd
tt-news
xcode-6.2
eol
typeof
sgen
doskey
java.nio.file
industrial
access-rights
bulkloader
flash-builder4.5
file-locking
django-nonrel
spring-validator
smtp-auth
http-unit
cisco-jtapi
javaspaces
enter
horizontal-accordion
winbugs14
paster
infrastructure
sproutcore-2
dentrix
icanhaz.js
nsviewanimation
zend-tool
virtual-functions
project-hosting
nerddinner
windows-live-messenger

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App