Skip to content

Refactor | CAKK-82 | Domain Module에서 Read 부분 의존관계 리팩토링 #299

Refactor | CAKK-82 | Domain Module에서 Read 부분 의존관계 리팩토링

Refactor | CAKK-82 | Domain Module에서 Read 부분 의존관계 리팩토링 #299

GitHub Actions / Test Results failed Sep 16, 2024 in 0s

2 fail, 203 pass in 23s

205 tests  ±0   203 ✅ +4   23s ⏱️ -1s
 38 suites ±0     0 💤 ±0 
 38 files   ±0     2 ❌  - 4 

Results for commit fc05e05. ± Comparison against earlier commit 089fbb5.

Annotations

Check warning on line 0 in com.cakk.core.facade.UserManageFacadeTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

create() (com.cakk.core.facade.UserManageFacadeTest) failed

./cakk-core/build/test-results/test/TEST-com.cakk.core.facade.UserManageFacadeTest.xml [took 0s]
Raw output
org.mockito.exceptions.misusing.WrongTypeOfReturnValue: 
Optional cannot be returned by findByProviderId()
findByProviderId() should return User
***
If you're unsure why you're getting above error read on.
Due to the nature of the syntax above problem might occur because:
1. This exception *might* occur in wrongly written multi-threaded tests.
   Please refer to Mockito FAQ on limitations of concurrency testing.
2. A spy is stubbed using when(spy.foo()).then() syntax. It is safer to stub spies - 
   - with doReturn|Throw() family of methods. More in javadocs for Mockito.spy() method.

	at app//com.cakk.core.facade.UserManageFacadeTest.create(UserManageFacadeTest.kt:44)
	at java.base@21.0.4/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base@21.0.4/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base@21.0.4/java.util.ArrayList.forEach(ArrayList.java:1596)

Check warning on line 0 in com.cakk.core.facade.UserManageFacadeTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

create2() (com.cakk.core.facade.UserManageFacadeTest) failed

./cakk-core/build/test-results/test/TEST-com.cakk.core.facade.UserManageFacadeTest.xml [took 0s]
Raw output
org.mockito.exceptions.misusing.WrongTypeOfReturnValue: 
Optional cannot be returned by findByProviderId()
findByProviderId() should return User
***
If you're unsure why you're getting above error read on.
Due to the nature of the syntax above problem might occur because:
1. This exception *might* occur in wrongly written multi-threaded tests.
   Please refer to Mockito FAQ on limitations of concurrency testing.
2. A spy is stubbed using when(spy.foo()).then() syntax. It is safer to stub spies - 
   - with doReturn|Throw() family of methods. More in javadocs for Mockito.spy() method.

	at app//com.cakk.core.facade.UserManageFacadeTest.create2(UserManageFacadeTest.kt:60)
	at java.base@21.0.4/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base@21.0.4/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base@21.0.4/java.util.ArrayList.forEach(ArrayList.java:1596)