我使用JGraphT框架在Netbeans IDE上使用图模型。我编写了一些类并尝试编写JUnit测试。但我可以运行测试。现在有选项可以运行类文件。另外这个框架使用maven,然后我点击测试类测试文件,我得到这个错误:如何在JGraphT上为自己创建的Java类创建自己的JUnit测试?
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-cli) on project jgrapht-demo: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]
我想从pom.xml文件和相关设置出现此问题。
这是我的用于MainWindow类的TestClass,它是空的并从MainWindows类生成。 enter image description here
// ---------------------------------
显示当然 – VDanyliuk
而考验我的pom.xml文件http://pastebin.com/1STbwb2D – VDanyliuk
的目录结构和pom.xml的 – user3798502