Skip to content

Commit 5abb46b

Browse files
committed
[ci] formatting
1 parent 8d0ad84 commit 5abb46b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/test/java/org/apache/ibatis/type/TypeAliasRegistryTest.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2022 the original author or authors.
2+
* Copyright 2009-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -80,17 +80,16 @@ void shouldFetchCharType() {
8080
void shouldNotBeAbleToRegisterAliasWithEmptyString() {
8181
TypeAliasRegistry typeAliasRegistry = new TypeAliasRegistry();
8282

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");
8685
}
8786

8887
@Test
8988
void shouldNotBeAbleToResolveNotExistsAlias() {
9089
TypeAliasRegistry typeAliasRegistry = new TypeAliasRegistry();
9190

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");
9594
}
9695
}

0 commit comments

Comments
 (0)