Mercurial > hg > ltpda
view m-toolbox/classes/tests/database/@ltpda_database/init.m @ 1:2014ba5b353a database-connection-manager
Remove old code
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Sat, 03 Dec 2011 18:13:55 +0100 |
parents | f0afece42f48 |
children | 79dc7091dbbc |
line wrap: on
line source
% INIT initialize the unit test class. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % DESCRIPTION: INIT initialize the unit test class. % This method is called before the test methods. % % CALL: init(); % % VERSION: $Id: init.m,v 1.3 2011/05/24 19:22:43 ingo Exp $ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function varargout = init(varargin) utp = varargin{1}; % Call super class init@ltpda_utp(varargin{:}); if ~utp.testRunner.skipRepoTests() % Get the connection from the repository manager rm = LTPDARepositoryManager(); conn = rm.findConnections(utp.testRunner.repositoryPlist); if isempty(conn) conn = rm.newConnection(utp.testRunner.repositoryPlist); end % Check that we get only one connection assert(numel(conn) == 1, sprintf('Found more than one connection in the repository manager for the PLIST: %s', char(utp.testRunner.repositoryPlist))); % Store the connection utp.conn = conn; % Submit test data utp.submitTestData(varargin{2:end}); end end