Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryCoreTestApplication.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
18 
19 #include <berryPlatform.h>
20 #include <berryLog.h>
21 
23 
24 namespace berry {
25 
27 {
28 
29 }
30 
32  : QObject()
33 {
34  Q_UNUSED(other)
35 }
36 
38  std::string testPlugin;
39  try {
40  testPlugin = Platform::GetConfiguration().getString(Platform::ARG_TESTPLUGIN.toStdString());
41  }
42  catch (const Poco::NotFoundException& /*e*/)
43  {
44  BERRY_ERROR << "You must specify a test plug-in id via " << Platform::ARG_TESTPLUGIN << "=<id>";
45  return 1;
46  }
47 
48  return BlueBerryTestDriver::Run(QString::fromStdString(testPlugin));
49 }
50 
52 
53 }
54 
55 }
#define BERRY_ERROR
Definition: berryLog.h:26