//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#include <Ice/Ice.h>
#include <TestI.h>

using namespace Test;

TestI::TestI() :
    _failed(false)
{
}

void
TestI::fail(const Ice::Current& current)
{
    _failed = true;
    current.adapter->getCommunicator()->shutdown();
}

void
TestI::shutdown(const Ice::Current& current)
{
    current.adapter->getCommunicator()->shutdown();
}

bool
TestI::isFailed() const
{
    return _failed;
}
