test: 통합 테스트 오류 및 경고 수정
Some checks failed
Flutter Test & Quality Check / Test on macos-latest (push) Has been cancelled
Flutter Test & Quality Check / Test on ubuntu-latest (push) Has been cancelled
Flutter Test & Quality Check / Build APK (push) Has been cancelled

- 모든 서비스 메서드 시그니처를 실제 구현에 맞게 수정
- 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:
JiWoong Sul
2025-08-05 20:24:05 +09:00
parent d6f34c0a52
commit 198aac6525
145 changed files with 41527 additions and 5220 deletions

View File

@@ -15,6 +15,7 @@ class CreateWarehouseLocationRequest with _$CreateWarehouseLocationRequest {
String? country,
int? capacity,
@JsonKey(name: 'manager_id') int? managerId,
@JsonKey(name: 'company_id') int? companyId,
}) = _CreateWarehouseLocationRequest;
factory CreateWarehouseLocationRequest.fromJson(Map<String, dynamic> json) =>

View File

@@ -31,6 +31,8 @@ mixin _$CreateWarehouseLocationRequest {
int? get capacity => throw _privateConstructorUsedError;
@JsonKey(name: 'manager_id')
int? get managerId => throw _privateConstructorUsedError;
@JsonKey(name: 'company_id')
int? get companyId => throw _privateConstructorUsedError;
/// Serializes this CreateWarehouseLocationRequest to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@@ -58,7 +60,8 @@ abstract class $CreateWarehouseLocationRequestCopyWith<$Res> {
@JsonKey(name: 'postal_code') String? postalCode,
String? country,
int? capacity,
@JsonKey(name: 'manager_id') int? managerId});
@JsonKey(name: 'manager_id') int? managerId,
@JsonKey(name: 'company_id') int? companyId});
}
/// @nodoc
@@ -85,6 +88,7 @@ class _$CreateWarehouseLocationRequestCopyWithImpl<$Res,
Object? country = freezed,
Object? capacity = freezed,
Object? managerId = freezed,
Object? companyId = freezed,
}) {
return _then(_value.copyWith(
name: null == name
@@ -119,6 +123,10 @@ class _$CreateWarehouseLocationRequestCopyWithImpl<$Res,
? _value.managerId
: managerId // ignore: cast_nullable_to_non_nullable
as int?,
companyId: freezed == companyId
? _value.companyId
: companyId // ignore: cast_nullable_to_non_nullable
as int?,
) as $Val);
}
}
@@ -140,7 +148,8 @@ abstract class _$$CreateWarehouseLocationRequestImplCopyWith<$Res>
@JsonKey(name: 'postal_code') String? postalCode,
String? country,
int? capacity,
@JsonKey(name: 'manager_id') int? managerId});
@JsonKey(name: 'manager_id') int? managerId,
@JsonKey(name: 'company_id') int? companyId});
}
/// @nodoc
@@ -166,6 +175,7 @@ class __$$CreateWarehouseLocationRequestImplCopyWithImpl<$Res>
Object? country = freezed,
Object? capacity = freezed,
Object? managerId = freezed,
Object? companyId = freezed,
}) {
return _then(_$CreateWarehouseLocationRequestImpl(
name: null == name
@@ -200,6 +210,10 @@ class __$$CreateWarehouseLocationRequestImplCopyWithImpl<$Res>
? _value.managerId
: managerId // ignore: cast_nullable_to_non_nullable
as int?,
companyId: freezed == companyId
? _value.companyId
: companyId // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
@@ -216,7 +230,8 @@ class _$CreateWarehouseLocationRequestImpl
@JsonKey(name: 'postal_code') this.postalCode,
this.country,
this.capacity,
@JsonKey(name: 'manager_id') this.managerId});
@JsonKey(name: 'manager_id') this.managerId,
@JsonKey(name: 'company_id') this.companyId});
factory _$CreateWarehouseLocationRequestImpl.fromJson(
Map<String, dynamic> json) =>
@@ -240,10 +255,13 @@ class _$CreateWarehouseLocationRequestImpl
@override
@JsonKey(name: 'manager_id')
final int? managerId;
@override
@JsonKey(name: 'company_id')
final int? companyId;
@override
String toString() {
return 'CreateWarehouseLocationRequest(name: $name, address: $address, city: $city, state: $state, postalCode: $postalCode, country: $country, capacity: $capacity, managerId: $managerId)';
return 'CreateWarehouseLocationRequest(name: $name, address: $address, city: $city, state: $state, postalCode: $postalCode, country: $country, capacity: $capacity, managerId: $managerId, companyId: $companyId)';
}
@override
@@ -261,13 +279,15 @@ class _$CreateWarehouseLocationRequestImpl
(identical(other.capacity, capacity) ||
other.capacity == capacity) &&
(identical(other.managerId, managerId) ||
other.managerId == managerId));
other.managerId == managerId) &&
(identical(other.companyId, companyId) ||
other.companyId == companyId));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, name, address, city, state,
postalCode, country, capacity, managerId);
postalCode, country, capacity, managerId, companyId);
/// Create a copy of CreateWarehouseLocationRequest
/// with the given fields replaced by the non-null parameter values.
@@ -297,7 +317,8 @@ abstract class _CreateWarehouseLocationRequest
@JsonKey(name: 'postal_code') final String? postalCode,
final String? country,
final int? capacity,
@JsonKey(name: 'manager_id') final int? managerId}) =
@JsonKey(name: 'manager_id') final int? managerId,
@JsonKey(name: 'company_id') final int? companyId}) =
_$CreateWarehouseLocationRequestImpl;
factory _CreateWarehouseLocationRequest.fromJson(Map<String, dynamic> json) =
@@ -321,6 +342,9 @@ abstract class _CreateWarehouseLocationRequest
@override
@JsonKey(name: 'manager_id')
int? get managerId;
@override
@JsonKey(name: 'company_id')
int? get companyId;
/// Create a copy of CreateWarehouseLocationRequest
/// with the given fields replaced by the non-null parameter values.

View File

@@ -17,6 +17,7 @@ _$CreateWarehouseLocationRequestImpl
country: json['country'] as String?,
capacity: (json['capacity'] as num?)?.toInt(),
managerId: (json['manager_id'] as num?)?.toInt(),
companyId: (json['company_id'] as num?)?.toInt(),
);
Map<String, dynamic> _$$CreateWarehouseLocationRequestImplToJson(
@@ -30,6 +31,7 @@ Map<String, dynamic> _$$CreateWarehouseLocationRequestImplToJson(
'country': instance.country,
'capacity': instance.capacity,
'manager_id': instance.managerId,
'company_id': instance.companyId,
};
_$UpdateWarehouseLocationRequestImpl