view m-toolbox/classes/tests/database/@ltpda_database/init.m @ 52:daf4eab1a51e
database-connection-manager tip
Fix. Default password should be [] not an empty string
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Wed, 07 Dec 2011 17:29:47 +0100 (2011-12-07)
parents
79dc7091dbbc
children
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 database connection
+ − conn = LTPDADatabaseConnectionManager().connect(utp.testRunner.repositoryPlist);
+ −
+ − % Store the connection
+ − utp.conn = conn;
+ −
+ − % Submit test data
+ − utp.submitTestData(varargin{2:end});
+ −
+ − end
+ −
+ − end
+ −