/**
   * TODO: Documentation
   * <p>
   */
  void testSuite()
  {
    try {

      setUp();
      testConstruction();
      tearDown();

      setUp();
      testConstructionFromAbstractType();
      tearDown();

      setUp();
      testGetType();
      tearDown();

      setUp();
      testName();
      tearDown();

      setUp();
      testXdr();
      tearDown();

    } catch (Exception ex) {
      std::cout << ex.getMessage() << std::endl;
    }
  }
  /**
   * TODO: Documentation
   * <p>
   */
  void testSuite()
  {
    try {

      setUp();
      testConstruction();
      tearDown();

      setUp();
      testGetters();
      tearDown();

      setUp();
      testQueries();
      tearDown();

      setUp();
      testComparators();
      tearDown();

      setUp();
      testXdr();
      tearDown();

    } catch (ontologydto::Exception ex) {
      std::cout << "Failure " << ex.getMessage() << std::endl;
    }
  }
Esempio n. 3
0
int 
ArgumentParserTest::regressionTest(){
  int retval = 0;

  utils::enableDebug();

  retval = testConstruction();
  if( retval != 0 ){
    goto end;
  }
  retval = testNoneMatch();
  if( retval != 0 ){
    goto end;
  }
  retval = testBoolMatch();
  if( retval != 0 ){
    goto end;
  }
  retval = testIntMatch();
  if( retval != 0 ){
    goto end;
  }
  retval = testStringMatch();
  if( retval != 0 ){
    goto end;
  }
  retval = testMultiple();
  if( retval != 0 ){
    goto end;
  }

 end:
  return retval;
}
Esempio n. 4
0
 void run() override
 {
     testConstruction();
     testPassphrase();
     testBase58();
     testRandom();
     testKeypairGenerationAndSigning();
     testSeedParsing ();
 }
Esempio n. 5
0
  /**
   * TODO: Documentation
   * <p>
   */
  void testSuite()
  {
    try {
      setUp();
      testConstruction();
      tearDown();

    } catch (relayservice::Exception ex) {
      std::cout << ex.getMessage() << std::endl;
    }
  }
  /**
   * TODO: Documentation
   * <p>
   */
  void testSuite()
  {
    try {
      setUp();
      testConstruction();
      tearDown();

      setUp();
      testAccessors();
      tearDown();

      setUp();
      testXdr();
      tearDown();

    } catch (ontologydto::Exception ex) {
      std::cout << ex.getMessage() << std::endl;

    } catch (...) {
      std::cout << "Unknown" << std::endl;
    }
  }
Esempio n. 7
0
 void run() override
 {
     testConstruction();
     testSwap();
 }