개발 관련(35)
-
[Javascript] var, let, const 변수 특징
Javascript의 변수 차이 var var로 변수 선언 시 var 키워드 생략 가능( num=1 가능) var로 선언 후 중복 선언 가능( var num var num 가능) 변수가 선언 안되었는데 참조 가능(undefined로 나옴) - 변수 호이스팅 function-level-scope, 함수 블록 내에서 var 선언 시, scope는 해당 function이다.(함수 외부 선언 시 모두 전역변수로 취급) let - ES6에서 const와 함께 등장 block-level-scope ( { } 로 scope 조절) 변수 중복 선언 불가 - 재선언 시error 뜸( let num=1 let num=2 -> error) 호이스팅 불가 - undefined가 아닌 error로 뜸 선언 후 재할당 가능(le..
2020.11.30 -
[ERROR][TaskAgile] IllegalStateException: Failed to load ApplicationContext;
java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:125) ... Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autocon..
2020.11.29 -
[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