junit

How do I fix the Cannot find symbol error using the mvn test command?

Created a project whose source code is here. (If the master branch suddenly opens, then you need to go to features/tests). I ... e code of the test itself has the string "import phonebook.Phones;". Please tell me what could be the reason for this error?

Simple Junit test for a method in Java

I'm just beginning to understand the usefulness of testing. I reread a lot of answers here and in Google in general, but I di ... d the validity of the condition, then assertEquals compared the expected value with the current one, but this is incorrect: (

How to fix java.lang.NullPointerException?

When I run the test, it returns an error java.lang.NullPointerException in s1.setId(1). How do I fix this? All code: public ... void test2(){ user.loadUserSeriesLib(); } public void test4(){ user.addNewSeriesToLib(s1); } }

JUnit4 tests pass separately, and when you run the entire test file, some of them fail (Java)

I'm new to programming. I wrote several unit tests. They all pass separately. When you run the entire file, errors appear for ... , this is exactly what happens. What can cause this behavior and how to fix it? Or what am I doing wrong? Anyway, thank you!