test: 통합 테스트 오류 및 경고 수정
- 모든 서비스 메서드 시그니처를 실제 구현에 맞게 수정 - TestDataGenerator 제거하고 직접 객체 생성으로 변경 - 모델 필드명 및 타입 불일치 수정 - 불필요한 Either 패턴 사용 제거 - null safety 관련 이슈 해결 수정된 파일: - test/integration/screens/company_integration_test.dart - test/integration/screens/equipment_integration_test.dart - test/integration/screens/user_integration_test.dart - test/integration/screens/login_integration_test.dart
This commit is contained in:
@@ -240,7 +240,7 @@ void main() {
|
||||
if (data.containsKey('success') && data.containsKey('data')) {
|
||||
print('이미 정규화된 형식');
|
||||
try {
|
||||
final loginResponse = LoginResponse.fromJson(data['data']);
|
||||
LoginResponse.fromJson(data['data']);
|
||||
print('✅ 정규화된 형식 파싱 성공');
|
||||
} catch (e) {
|
||||
print('❌ 정규화된 형식 파싱 실패: $e');
|
||||
@@ -253,7 +253,7 @@ void main() {
|
||||
'data': data,
|
||||
};
|
||||
try {
|
||||
final loginResponse = LoginResponse.fromJson(normalizedData['data'] as Map<String, dynamic>);
|
||||
LoginResponse.fromJson(normalizedData['data'] as Map<String, dynamic>);
|
||||
print('✅ 직접 데이터 형식 파싱 성공');
|
||||
} catch (e) {
|
||||
print('❌ 직접 데이터 형식 파싱 실패: $e');
|
||||
|
||||
Reference in New Issue
Block a user