searchengine/cpix/tsrc/cpixunittest/src/domainselectiontests.cpp
changeset 3 ae3f1779f6da
parent 0 671dee74050a
child 24 65456528cac2
equal deleted inserted replaced
2:6c1a2771f4b7 3:ae3f1779f6da
    36 #include "suggestion.h"
    36 #include "suggestion.h"
    37 #include "testutils.h"
    37 #include "testutils.h"
    38 #include "testcorpus.h"
    38 #include "testcorpus.h"
    39 #include "setupsentry.h"
    39 #include "setupsentry.h"
    40 
    40 
       
    41 #include "std_log_result.h"
    41 
    42 
    42 struct MatchTest
    43 struct MatchTest
    43 {
    44 {
    44     const char * domainSelector_;
    45     const char * domainSelector_;
    45     const char * baseAppClass_;
    46     const char * baseAppClass_;
   225     }
   226     }
   226 
   227 
   227 
   228 
   228     void testCreateIdxs(Itk::TestMgr * testMgr)
   229     void testCreateIdxs(Itk::TestMgr * testMgr)
   229     {
   230     {
       
   231         char *xml_file = (char *)__FUNCTION__;
       
   232         assert_failed = 0;
   230         const MVFTest
   233         const MVFTest
   231             * mvfTest = filesAndVols_;
   234             * mvfTest = filesAndVols_;
   232 
   235 
   233         for (; mvfTest->qualifiedBaseAppClass_ != NULL; ++mvfTest)
   236         for (; mvfTest->qualifiedBaseAppClass_ != NULL; ++mvfTest)
   234             {
   237             {
   277         siUtil->flush();
   280         siUtil->flush();
   278 
   281 
   279         searchAll(testMgr);
   282         searchAll(testMgr);
   280         suggestAll(testMgr);
   283         suggestAll(testMgr);
   281         dumpAll(testMgr);
   284         dumpAll(testMgr);
       
   285         testResultXml(xml_file);
   282     }
   286     }
   283 
   287 
   284     
   288     
   285     void unmountC(Itk::TestMgr * testMgr)
   289     void unmountC(Itk::TestMgr * testMgr)
   286     {
   290     {
   586     domainTester->add(whiteBox);
   590     domainTester->add(whiteBox);
   587 
   591 
   588     // some blackbox tests doing idx manipulation & searches
   592     // some blackbox tests doing idx manipulation & searches
   589     
   593     
   590     DomainSelectionContext
   594     DomainSelectionContext
   591         * domainSelectionContext = new DomainSelectionContext();
   595         * domainSelectionContext = new DomainSelectionContext;
   592     ContextTester
   596     ContextTester
   593         * contextTester = new ContextTester("selection",
   597         * contextTester = new ContextTester("selection",
   594                                             domainSelectionContext);
   598                                             domainSelectionContext);
   595 
   599 
   596 #define TEST "createIdxs"
   600 #define TEST "createIdxs"