18 bool executeSQL( std::string
const & ,
int const , std::string
const & arg ) {
19 if ( arg.length() == 0 ) {
20 throw std::logic_error(
"empty SQL query argument");
44int UniqueTestsFixture::uniqueID = 0;
47 REQUIRE_THROWS( conn.executeSQL(
"INSERT INTO employee (id, name) VALUES (?, ?)", getID(),
"") );
51 REQUIRE( conn.executeSQL(
"INSERT INTO employee (id, name) VALUES (?, ?)", getID(),
"Joe Bloggs" ) );
static DBConnection createConnection(std::string const &)
bool executeSQL(std::string const &, int const, std::string const &arg)
#define TEST_CASE_METHOD(className,...)
#define REQUIRE_THROWS(...)