File tree 1 file changed +3
-3
lines changed
spring-jdbc/src/test/java/org/springframework/jdbc/core 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2016 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.
@@ -197,8 +197,8 @@ public void testQueryForObjectWithBigInteger() throws Exception {
197
197
public void testQueryForObjectWithBigDecimal () throws Exception {
198
198
String sql = "SELECT AGE FROM CUSTMR WHERE ID = 3" ;
199
199
given (this .resultSet .next ()).willReturn (true , false );
200
- given (this .resultSet .getBigDecimal (1 )).willReturn (new BigDecimal (22.5 ));
201
- assertEquals (new BigDecimal (22.5 ), this .template .queryForObject (sql , BigDecimal .class ));
200
+ given (this .resultSet .getBigDecimal (1 )).willReturn (new BigDecimal (" 22.5" ));
201
+ assertEquals (new BigDecimal (" 22.5" ), this .template .queryForObject (sql , BigDecimal .class ));
202
202
verify (this .resultSet ).close ();
203
203
verify (this .statement ).close ();
204
204
}
You can’t perform that action at this time.
0 commit comments