@Test public void normalizeUserInfo_WithSpaces() { IUser normalized = RepositoryCommonValidations.normalizeUserInfo( user( " login \t\n ", "name" ) ); assertEquals( "login", normalized.getLogin() ); assertEquals( "login", normalized.getName() ); }
public static IUser normalizeUserInfo( IUser user ) { user.setLogin( user.getLogin().trim() ); user.setName( user.getName().trim() ); return user; }
RepositoryCommonValidations { public static IUser normalizeUserInfo( IUser user ) { user.setLogin( user.getLogin().trim() ); user.setName( user.getName().trim() ); return user; } }
RepositoryCommonValidations { public static IUser normalizeUserInfo( IUser user ) { user.setLogin( user.getLogin().trim() ); user.setName( user.getName().trim() ); return user; }  }
RepositoryCommonValidations { public static IUser normalizeUserInfo( IUser user ) { user.setLogin( user.getLogin().trim() ); user.setName( user.getName().trim() ); return user; }  static boolean checkUserInfo( IUser user ); static IUser normalizeUserInfo( IUser user ); }
RepositoryCommonValidations { public static IUser normalizeUserInfo( IUser user ) { user.setLogin( user.getLogin().trim() ); user.setName( user.getName().trim() ); return user; }  static boolean checkUserInfo( IUser user ); static IUser normalizeUserInfo( IUser user );  }