이클립스 에러

    [eclipse] error running Gradle test : No matching tests found in any candidate test task.

    스프링부트 TDD를 공부하던 와중 에러가 발생했다. 단순한 test 코드였는데 run을 해도 아무런 변화가 생기지 않았다. 자세히 살펴보니 terminated가 떠있는걸 발견할 수 있었고, 사람들이 말하는 빨간줄과 초록줄도 보이지 않았다.. 그래서 gradle test를 해보니 No matching tests found in any candidate test task. 에러 해결 1. junit5 의존성 추가하기 스프링부트 2.2x 이상부터는 junit4가 아닌 junit5를 사용해야 한다고 한다. 마구잡이식으로 의존성을 추가했던터라 junit4가 추가되어 있었다! 다시 junit5로 추가해주었다. 그래도 run이 되지 않았다... 2. org.junit.jupiter 패키지 사용하기 이전에 junit4..

    [eclipse] The operation is not applicable to the current selection. Select a field which is not declared as type variable or a type that declares such fields. 에러 해결

    [eclipse] The operation is not applicable to the current selection. Select a field which is not declared as type variable or a type that declares such fields. 에러 해결

    eclipse 에서 getter / setter 를 자동 생성해주는 기능을 사용하려 할 때 해당 에러를 만날 때가 있다. The operation is not applicable to the current selection. Select a field which is not declared as type variable or a type that declares such fields. 이는 올바른 포커스에서 기능을 사용하지 않았기 때문이다. 필자처럼. .class 내부가 아닌 외부로 선택되어져 있는 경우 getter와 setter의 자리가 올바르지 않은 경우이다. 제대로 포커스를 맞추고 실행하도록 하자 ^^