コード例 #1
0
 public UserProfile mapRow(ResultSet rs, int numRow) throws SQLException {
   UserProfile userProfile = new UserProfile();
   userProfile.setUserProfileId(rs.getString("USER_PROFILE_ID"));
   userProfile.setUserName(rs.getString("NAME"));
   userProfile.setEmail(rs.getString("EMAIL"));
   return userProfile;
 }
コード例 #2
0
 @Test
 public void testGetUserProfile() {
   String name = "nut";
   UserProfile userProfile = userProfileService.getUserProfile(name);
   assertEquals(name, userProfile.getUserName());
 }