You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2013/03/14 19:28:10 UTC

svn commit: r1456598 - /syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java

Author: ilgrosso
Date: Thu Mar 14 18:28:10 2013
New Revision: 1456598

URL: http://svn.apache.org/r1456598
Log:
Removing usage of deprecated method

Modified:
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java?rev=1456598&r1=1456597&r2=1456598&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java Thu Mar 14 18:28:10 2013
@@ -641,7 +641,8 @@ public class UserTestITCase extends Abst
 
         Exception exception = null;
         try {
-            jdbcTemplate.queryForInt("SELECT id FROM test WHERE id=?", userTO.getUsername());
+            jdbcTemplate.queryForObject("SELECT id FROM test WHERE id=?",
+                    new String[]{userTO.getUsername()}, Integer.class);
         } catch (EmptyResultDataAccessException e) {
             exception = e;
         }