forked from yagom-academy/ios-open-market
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STEP1_네트워크 테스트 #5
Projects
Comments
leeari95
added a commit
that referenced
this issue
Jan 5, 2022
- 의존성 주입을 위해서 Sessionable 프로토콜 추가 - Network의 session 타입을 Sessionable로 변경하고 이니셜라이저 추가 - URLSession 테스트를 위해 Sessionable 프로토콜 채택 - 테스트를 위한 MockSession, MockURLSessionDataTask 타입 추가 - Network의 excute 메소드 성공과 실패 케이스 작성
llghdud921
added a commit
that referenced
this issue
Jan 5, 2022
- 의존성 주입을 위해 Networkable, Parsable 프로토콜 추가 - NetworkManager의 Network, parser 타입을 Networkable, Parsable로 변경 - 테스트를 위한 MockParser 추가 및 Parserable 프로토콜 채택 - NetworkManager의 fetch() 성공과 실패 케이스 코드 작성
leeari95
added a commit
that referenced
this issue
Jan 5, 2022
- URLSessionDataTask는 init()을 정의하니 deprecated 경고가 떠서 삭제 후 로직 변경 - Sessionable 프로토콜을 활용하여 의존성 주입을 주었던 부분 제거, 관련된 Mock 객체 삭제 - 테스트 코드에서 DummyData, MockSession 대신에 새로 만든 Session을 활용하도록 수정 - Mock JSON 파일 활용을 위해 stubProduct 프로퍼티와 StubProduct 타입 추가
leeari95
added a commit
that referenced
this issue
Jan 5, 2022
- setUpWithError, tearDownWithError 메소드를 재정의하여 테스트 기본 세팅 리팩토링
llghdud921
added a commit
that referenced
this issue
Jan 5, 2022
leeari95
added a commit
that referenced
this issue
Jan 5, 2022
llghdud921
added a commit
that referenced
this issue
Jan 5, 2022
leeari95
added a commit
that referenced
this issue
Jan 5, 2022
llghdud921
added a commit
that referenced
this issue
Jan 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: