mirror of
https://github.com/Uuttssaavv/flutter-clean-architecture-riverpod.git
synced 2025-08-06 16:19:42 +08:00
19 lines
554 B
Dart
19 lines
554 B
Dart
import 'package:flutter_project/shared/exceptions/http_exception.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
final AppException exception =
|
|
AppException(message: 'message', statusCode: 1, identifier: 'identifier');
|
|
test(
|
|
'toString() function returns the objects',
|
|
() {
|
|
final expectedString =
|
|
'statusCode=${exception.statusCode}\nmessage=${exception.message}\nidentifier=${exception.identifier}';
|
|
|
|
final actual = exception.toString();
|
|
|
|
expect(actual, expectedString);
|
|
},
|
|
);
|
|
}
|