Skip to main content


Showing posts with the label eclipse

JUnit issue with Eclipse and Maven

In this post I am trying to resolve one issue of JUnit with Eclipse and Maven. Sometimes while using JUnit with Eclipse and Maven we have to face certain issues. And one of them is whenever we try to run the independent test case it will run fine and will not give any type of error. But when we run to try to compile the whole project, the same test will not compile at all. This is an annoying issue if someone does not know about the functionality of how Eclipse works with JUnit and Maven. JUnit in Action Since there is such no exception seen in file, but project compilation fails due to same file it is very frustrated for developer to figure out the issue. I am facing this issue and found a solution by googling around many forums. Problem : You have created a JUnit test case in the project and it is running fine, but fails to compile the whole project when try to build using Maven. Solution : Check that the test case you have created exist in the src/test/java folder and no

Reset username for SVN in eclipse

Sometimes we want to change the username and password for the SVN access in Eclipse or Spring Tools Suite. But it does not asks for it. There is a very easy way of doing this. You can easily find out the solution on google :). I am writing here again to save to my memory. The solution is for Windows platform and tried and tested on Windows 7.  Here is the path where you need to delete one folder to do the same.  1. First close Eclipse/STS if your had open it. Some times without closing first it will not work.  2. Go to C:\Users\<username>\AppData\Roaming\Subversion\auth  3. Delete svn.simple folder  4. That's it. Now when you restart your IDE and go to SVN it will again ask you for credentials.  Note : AppData folder is hidden and not viewed by default. To make it visible follow below steps:  1. C:\Users\<username>  2. Go to menu Tools --> Folder Options --> View Tab --> Click Show hidden files, folders and drives under Hidden Files and Folders.  Happy Codin