/* ****************************************************************************
*
* c_str - 
*/
TEST(ProvidingApplication, c_str)
{
  ProvidingApplication  pa;

  utInit();

  pa.set("PA");
  EXPECT_STREQ("PA", pa.c_str());

  utExit();
}
/* ****************************************************************************
*
* present - just to exercise the code ...
*/
TEST(ProvidingApplication, present)
{
  ProvidingApplication  pa;

  utInit();

  pa.present("");
  pa.set("PA");
  pa.present("");

  utExit();
}
/* ****************************************************************************
*
* render - 
*/
TEST(ProvidingApplication, render)
{
  ProvidingApplication  pa;
  std::string           out;
  const char*           outfile1 = "ngsi.providingApplication.render.middle.json";

  utInit();

  out = pa.render("", false);
  EXPECT_STREQ("", out.c_str());

  pa.set("PA");

  out = pa.render("", false);
  EXPECT_EQ("OK", testDataFromFile(expectedBuf, sizeof(expectedBuf), outfile1)) << "Error getting test data from '" << outfile1 << "'";
  EXPECT_STREQ(expectedBuf, out.c_str());

  utExit();
}