Posts

Showing posts from September, 2015

JUnit : java.lang.NoSuchMethodError: javassist.CtMethod.hasAnnotation(Ljava/lang/Class;)Z

Usually you would get this error while running test cases using Mockito and PowerMock, it uses the javaassist library for executions. Possible cause:          1) Missing dependency of javaassist jar          2) Mismatch in version of javaassist Fix:           1) Add/Update maven dependency (if you are using maven).          2) Download the jar file of javaassist and add it to the project's build path libraries.

'findstr' is not recognized as an internal or external command

Image
Please follow the steps.. Add the following value to Right Click My Compuer -> Advanced -> Environment Variables -> System Variables -> Select Path variable -> append the below value. C:\WINDOWS\system32