File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/test/java/org/apache/ibatis/type Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2022 the original author or authors.
2
+ * Copyright 2009-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -80,17 +80,16 @@ void shouldFetchCharType() {
80
80
void shouldNotBeAbleToRegisterAliasWithEmptyString () {
81
81
TypeAliasRegistry typeAliasRegistry = new TypeAliasRegistry ();
82
82
83
- assertThatThrownBy (() -> typeAliasRegistry .registerAlias ("foo" , "" ))
84
- .isInstanceOf (TypeException .class )
85
- .hasMessageContaining ("Error registering type alias foo for" );
83
+ assertThatThrownBy (() -> typeAliasRegistry .registerAlias ("foo" , "" )).isInstanceOf (TypeException .class )
84
+ .hasMessageContaining ("Error registering type alias foo for" );
86
85
}
87
86
88
87
@ Test
89
88
void shouldNotBeAbleToResolveNotExistsAlias () {
90
89
TypeAliasRegistry typeAliasRegistry = new TypeAliasRegistry ();
91
90
92
- assertThatThrownBy (() -> typeAliasRegistry .resolveAlias ("abc" ))
93
- . isInstanceOf ( TypeException . class )
94
- . hasMessageContaining ( "Could not resolve type alias 'abc'. Cause: java.lang.ClassNotFoundException: Cannot find class: abc" );
91
+ assertThatThrownBy (() -> typeAliasRegistry .resolveAlias ("abc" )). isInstanceOf ( TypeException . class )
92
+ . hasMessageContaining (
93
+ "Could not resolve type alias 'abc'. Cause: java.lang.ClassNotFoundException: Cannot find class: abc" );
95
94
}
96
95
}
You can’t perform that action at this time.
0 commit comments