Skip to content

Commit 4e65c2e

Browse files
committed
created tests
1 parent da2bbca commit 4e65c2e

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

integration_tests/test/empty_mapper/empty_mapper_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'empty_mapper.dart';
66
void main() {
77
group('EmptyMapper', () {
88

9-
test('Should not be null', () {
9+
test('Should be instantiated', () {
1010
expect(EmptyMapper.INSTANCE, isNotNull);
1111
});
1212

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
import 'package:dartstruct/dartstruct.dart';
3+
4+
part 'empty_method_mapper.g.dart';
5+
6+
class Model {
7+
String field;
8+
}
9+
10+
class Dto {
11+
String field;
12+
}
13+
@Mapper()
14+
abstract class EmptyMethodMapper {
15+
16+
static EmptyMethodMapper get INSTANCE => EmptyMethodMapperImpl();
17+
18+
Dto modelToDto(Model model);
19+
20+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
import 'package:test/test.dart';
3+
import 'empty_method_mapper.dart';
4+
5+
void main() {
6+
group('EmptyMethodMapper', () {
7+
8+
test('Should be instantiated', () {
9+
expect(EmptyMethodMapper.INSTANCE, isNotNull);
10+
});
11+
12+
test('Should return null', () {
13+
expect(EmptyMethodMapper.INSTANCE, isNotNull);
14+
});
15+
16+
});
17+
}

0 commit comments

Comments
 (0)