view testing/utp_1.1/utp_fcns/utpGetUsername.m @ 50:7d2e2e065cf1 database-connection-manager

Update unit tests
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 07 Dec 2011 17:24:37 +0100
parents 409a22968d5e
children 9d5c88356247
line wrap: on
line source

% UTPGETUSERNAME returns the username for the repository tests.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DESCRIPTION: UTPGETUSERNAME returns the username for the repository
%              tests.
%
% CALL:        username = utpGetUsername()
%
% VERSION:     $Id: utpGetUsername.m,v 1.3 2010/07/14 12:38:49 hewitson Exp $
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function username = utpGetUsername()
  
  username = getappdata(0, 'LTPDARepoUsername');
  if isempty(username)
    username = 'tester';
  end
  
end