개발 관련/ERROR(17)
-
[ERROR][TaskAgile] java.lang.Exception: Test class should have exactly one public constructor
java.lang.Exception: Test class should have exactly one public constructor at org.junit.runners.BlockJUnit4ClassRunner.validateOnlyOneConstructor(BlockJUnit4ClassRunner.java:158) at org.junit.runners.BlockJUnit4ClassRunner.validateConstructor(BlockJUnit4ClassRunner.java:147) at org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:127) ... ERROR 내용 Test..
2020.11.29 -
[ERROR][TaskAgile] java.lang.IllegalStateException: Failed to load ApplicationContext; org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class; java.lang.IllegalArgumentException: Could not create type at net.bytebuddy.TypeCache.f..
register_existedEmailAddress_shouldFailAndReturn400 java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext ... Caused by: org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: interface com.taskagile.domain.application.UserService. ... Underlying exception : java.lang...
2020.11.29 -
[ERROR][TaskAgile] The project was not built since its build path is incomplete. Cannot fine the class file for org.mockito.A~
[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/Users/sr/practice/TaskAgile/vuejs.spring-boot.mysql/src/main/java/com/taskagile/web/apis/RegistrationApiControllerTests.java:[18,26] package org.mockito does not exist [ERROR] /C:/Users/sr/practice/TaskAgile/vuejs.spring-boot.mysql/src/main/java/com/taskagile/web/apis/RegistrationApiContr..
2020.11.29 -
[ERROR][TaskAgile] org.junit... , org.springframework.boot... , mockito... cannot be resolved
the type org.hamcrest.matcher cannot be resolved ... import org.junit.runner.RunWith; import org.junit.jupiter.api.Test; import org.springframework.boot; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.boot.test.mock.mockito.MockBean; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; @WebMvcTest ... -> th..
2020.11.29 -
[ERROR][TaskAgile] The import org.junit cannot be resolved in vscode
e ERROR 내용 junit import 불가 해결 방법 org.junit-juniter? 대신에 아래처럼 입력. 버전이 다르니 버전 삭제 junit junit test 참고 사이트 : stackoverflow.com/questions/62075442/why-does-vscode-not-recognize-the-import-org-junit -> 해결 x // in /~ 추가한내용 참고 사이트 : symbol~
2020.11.29 -
[WARNNING][TaskAgile] The compiler compliance specified is 1.8 but a JRE 14 is used
The compiler compliance specified is 1.8 but a JRE 14 is used ERROR 내용 컴파일러는 1.8을 지원하지만 JRE는 14를 사용하고있다. 해결 방법 windows - vscode 환경일 때 : pom.xml에서 내에 java.version을 14로 고친다. ... 14 ..
2020.11.29