## 주요 변경사항 ### 아키텍처 개선 - Clean Architecture 패턴 적용 (Domain, Data, Presentation 레이어 분리) - Use Case 패턴 도입으로 비즈니스 로직 캡슐화 - Repository 패턴으로 데이터 접근 추상화 - 의존성 주입 구조 개선 ### 상태 관리 최적화 - 모든 Controller에서 불필요한 상태 관리 로직 제거 - 페이지네이션 로직 통일 및 간소화 - 에러 처리 로직 개선 (에러 메시지 한글화) - 로딩 상태 관리 최적화 ### Mock 서비스 제거 - MockDataService 완전 제거 - 모든 화면을 실제 API 전용으로 전환 - 불필요한 Mock 관련 코드 정리 ### UI/UX 개선 - Overview 화면 대시보드 기능 강화 - 라이선스 만료 알림 위젯 추가 - 사이드바 네비게이션 개선 - 일관된 UI 컴포넌트 사용 ### 코드 품질 - 중복 코드 제거 및 함수 추출 - 파일별 책임 분리 명확화 - 테스트 코드 업데이트 ## 영향 범위 - 모든 화면의 Controller 리팩토링 - API 통신 레이어 구조 개선 - 에러 처리 및 로깅 시스템 개선 ## 향후 계획 - 단위 테스트 커버리지 확대 - 통합 테스트 시나리오 추가 - 성능 모니터링 도구 통합
155 lines
4.2 KiB
Dart
155 lines
4.2 KiB
Dart
// Mocks generated by Mockito 5.4.5 from annotations
|
|
// in superport/test/domain/usecases/license/create_license_usecase_test.dart.
|
|
// Do not manually edit this file.
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
import 'dart:async' as _i4;
|
|
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
import 'package:superport/data/models/license/license_dto.dart' as _i2;
|
|
import 'package:superport/data/repositories/license_repository.dart' as _i3;
|
|
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: avoid_redundant_argument_values
|
|
// ignore_for_file: avoid_setters_without_getters
|
|
// ignore_for_file: comment_references
|
|
// ignore_for_file: deprecated_member_use
|
|
// ignore_for_file: deprecated_member_use_from_same_package
|
|
// ignore_for_file: implementation_imports
|
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
|
// ignore_for_file: must_be_immutable
|
|
// ignore_for_file: prefer_const_constructors
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
// ignore_for_file: camel_case_types
|
|
// ignore_for_file: subtype_of_sealed_class
|
|
|
|
class _FakeLicenseListResponseDto_0 extends _i1.SmartFake
|
|
implements _i2.LicenseListResponseDto {
|
|
_FakeLicenseListResponseDto_0(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeLicenseDto_1 extends _i1.SmartFake implements _i2.LicenseDto {
|
|
_FakeLicenseDto_1(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
/// A class which mocks [LicenseRepository].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockLicenseRepository extends _i1.Mock implements _i3.LicenseRepository {
|
|
MockLicenseRepository() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i4.Future<_i2.LicenseListResponseDto> getLicenses({
|
|
int? page = 1,
|
|
int? perPage = 20,
|
|
String? search,
|
|
Map<String, dynamic>? filters,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getLicenses,
|
|
[],
|
|
{
|
|
#page: page,
|
|
#perPage: perPage,
|
|
#search: search,
|
|
#filters: filters,
|
|
},
|
|
),
|
|
returnValue: _i4.Future<_i2.LicenseListResponseDto>.value(
|
|
_FakeLicenseListResponseDto_0(
|
|
this,
|
|
Invocation.method(
|
|
#getLicenses,
|
|
[],
|
|
{
|
|
#page: page,
|
|
#perPage: perPage,
|
|
#search: search,
|
|
#filters: filters,
|
|
},
|
|
),
|
|
)),
|
|
) as _i4.Future<_i2.LicenseListResponseDto>);
|
|
|
|
@override
|
|
_i4.Future<_i2.LicenseDto> getLicenseDetail(int? id) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getLicenseDetail,
|
|
[id],
|
|
),
|
|
returnValue: _i4.Future<_i2.LicenseDto>.value(_FakeLicenseDto_1(
|
|
this,
|
|
Invocation.method(
|
|
#getLicenseDetail,
|
|
[id],
|
|
),
|
|
)),
|
|
) as _i4.Future<_i2.LicenseDto>);
|
|
|
|
@override
|
|
_i4.Future<_i2.LicenseDto> createLicense(Map<String, dynamic>? data) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#createLicense,
|
|
[data],
|
|
),
|
|
returnValue: _i4.Future<_i2.LicenseDto>.value(_FakeLicenseDto_1(
|
|
this,
|
|
Invocation.method(
|
|
#createLicense,
|
|
[data],
|
|
),
|
|
)),
|
|
) as _i4.Future<_i2.LicenseDto>);
|
|
|
|
@override
|
|
_i4.Future<_i2.LicenseDto> updateLicense(
|
|
int? id,
|
|
Map<String, dynamic>? data,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#updateLicense,
|
|
[
|
|
id,
|
|
data,
|
|
],
|
|
),
|
|
returnValue: _i4.Future<_i2.LicenseDto>.value(_FakeLicenseDto_1(
|
|
this,
|
|
Invocation.method(
|
|
#updateLicense,
|
|
[
|
|
id,
|
|
data,
|
|
],
|
|
),
|
|
)),
|
|
) as _i4.Future<_i2.LicenseDto>);
|
|
|
|
@override
|
|
_i4.Future<void> deleteLicense(int? id) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#deleteLicense,
|
|
[id],
|
|
),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
) as _i4.Future<void>);
|
|
}
|