@@ -155,7 +155,7 @@ public E getNullableResult(CallableStatement cs, int columnIndex) throws SQLExce
155155
156156 @ Test
157157 void registerJavaTypeInitializingTypeHandler () {
158- final String MAPPER_CONFIG = """
158+ final String mapperConfig = """
159159 <?xml version="1.0" encoding="UTF-8" ?>
160160 <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "https://mybatis.org/dtd/mybatis-3-config.dtd">
161161 <configuration>
@@ -166,7 +166,7 @@ void registerJavaTypeInitializingTypeHandler() {
166166 </configuration>
167167 """ ;
168168
169- XMLConfigBuilder builder = new XMLConfigBuilder (new StringReader (MAPPER_CONFIG ));
169+ XMLConfigBuilder builder = new XMLConfigBuilder (new StringReader (mapperConfig ));
170170 builder .parse ();
171171
172172 TypeHandlerRegistry typeHandlerRegistry = builder .getConfiguration ().getTypeHandlerRegistry ();
@@ -283,7 +283,7 @@ void parseIsTwice() throws Exception {
283283
284284 @ Test
285285 void unknownSettings () {
286- final String MAPPER_CONFIG = """
286+ final String mapperConfig = """
287287 <?xml version="1.0" encoding="UTF-8" ?>
288288 <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "https://mybatis.org/dtd/mybatis-3-config.dtd">
289289 <configuration>
@@ -293,15 +293,15 @@ void unknownSettings() {
293293 </configuration>
294294 """ ;
295295
296- XMLConfigBuilder builder = new XMLConfigBuilder (new StringReader (MAPPER_CONFIG ));
296+ XMLConfigBuilder builder = new XMLConfigBuilder (new StringReader (mapperConfig ));
297297 when (builder ::parse );
298298 then (caughtException ()).isInstanceOf (BuilderException .class )
299299 .hasMessageContaining ("The setting foo is not known. Make sure you spelled it correctly (case sensitive)." );
300300 }
301301
302302 @ Test
303303 void unknownJavaTypeOnTypeHandler () {
304- final String MAPPER_CONFIG = """
304+ final String mapperConfig = """
305305 <?xml version="1.0" encoding="UTF-8" ?>
306306 <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "https://mybatis.org/dtd/mybatis-3-config.dtd">
307307 <configuration>
@@ -311,23 +311,23 @@ void unknownJavaTypeOnTypeHandler() {
311311 </configuration>
312312 """ ;
313313
314- XMLConfigBuilder builder = new XMLConfigBuilder (new StringReader (MAPPER_CONFIG ));
314+ XMLConfigBuilder builder = new XMLConfigBuilder (new StringReader (mapperConfig ));
315315 when (builder ::parse );
316316 then (caughtException ()).isInstanceOf (BuilderException .class )
317317 .hasMessageContaining ("Error registering typeAlias for 'null'. Cause: " );
318318 }
319319
320320 @ Test
321321 void propertiesSpecifyResourceAndUrlAtSameTime () {
322- final String MAPPER_CONFIG = """
322+ final String mapperConfig = """
323323 <?xml version="1.0" encoding="UTF-8" ?>
324324 <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "https://mybatis.org/dtd/mybatis-3-config.dtd">
325325 <configuration>
326326 <properties resource="a/b/c/foo.properties" url="file:./a/b/c/jdbc.properties"/>
327327 </configuration>
328328 """ ;
329329
330- XMLConfigBuilder builder = new XMLConfigBuilder (new StringReader (MAPPER_CONFIG ));
330+ XMLConfigBuilder builder = new XMLConfigBuilder (new StringReader (mapperConfig ));
331331 when (builder ::parse );
332332 then (caughtException ()).isInstanceOf (BuilderException .class ).hasMessageContaining (
333333 "The properties element cannot specify both a URL and a resource based property file reference. Please specify one or the other." );
0 commit comments