Show
Ignore:
Timestamp:
02/25/10 17:22:18 (7 months ago)
Author:
mgray
Message:

Implementation of ScriptLoginTest? for testing scriptable login services provided by the Session Services in Community.

Location:
tests/trunk/ScriptLoginTest
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • tests/trunk/ScriptLoginTest

    • Property svn:ignore
      •  

        old new  
        11CMakeLists.txt 
         2Community.sqlite 
        23config.xml 
        34loginTest.bat 
  • tests/trunk/ScriptLoginTest/main.cpp

    r3368 r3448  
     1#include <Zen/Core/Event/I_EventManager.hpp> 
     2#include <Zen/Core/Event/I_EventService.hpp> 
     3 
    14#include <Zen/Enterprise/AppServer/I_Container.hpp> 
    25#include <Zen/Enterprise/AppServer/I_ApplicationServer.hpp> 
     
    58 
    69#include "LoginTest.hpp" 
     10 
     11#include <iostream> 
    712 
    813int main(int _argc, const char* _argv[]) 
     
    2328    module.activate(); 
    2429 
     30    Zen::Event::I_EventManager::pEventService_type pEventService =  
     31        Zen::Event::I_EventManager::getSingleton().create("eventService"); 
     32 
     33    pEventService->registerScriptEngine(module.getScriptModule()->getScriptEngine()); 
     34 
    2535    // Run the container.  This should invoke the script and when the script 
    2636    // returns, we should shutdown the app server and exit. 
    27     int rc = container.run(); 
     37    try 
     38    { 
     39        int rc = container.run(); 
    2840 
    29     // TODO Shutdown the app server. 
     41        // TODO Shutdown the app server. 
    3042 
    31     return rc; 
     43        return rc; 
     44    } 
     45    catch(Zen::Utility::runtime_exception& _ex) 
     46    { 
     47        std::cout << "Caught unhandled exception: " << _ex.what() << std::endl; 
     48    } 
     49 
     50    return 1; 
    3251}