comparison UnitTestsSources/LuaTests.cpp @ 1583:9ea3d082b064

got rid of custom exceptions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 17:52:50 +0200
parents b5eb5210af91
children 87a606265de8
comparison
equal deleted inserted replaced
1582:bd1889029cbb 1583:9ea3d082b064
31 31
32 32
33 #include "PrecompiledHeadersUnitTests.h" 33 #include "PrecompiledHeadersUnitTests.h"
34 #include "gtest/gtest.h" 34 #include "gtest/gtest.h"
35 35
36 #include "../Core/OrthancException.h"
36 #include "../Core/Toolbox.h" 37 #include "../Core/Toolbox.h"
37 #include "../Core/Lua/LuaFunctionCall.h" 38 #include "../Core/Lua/LuaFunctionCall.h"
38 39
39 #include <boost/lexical_cast.hpp> 40 #include <boost/lexical_cast.hpp>
40 41
77 } 78 }
78 79
79 { 80 {
80 Orthanc::LuaFunctionCall f(lua, "f"); 81 Orthanc::LuaFunctionCall f(lua, "f");
81 f.PushJson(o); 82 f.PushJson(o);
82 ASSERT_THROW(f.ExecutePredicate(), Orthanc::LuaException); 83 ASSERT_THROW(f.ExecutePredicate(), Orthanc::OrthancException);
83 } 84 }
84 85
85 o["bool"] = false; 86 o["bool"] = false;
86 87
87 { 88 {