/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file CommandMock.h14/// @author Matthias Heppner15/// @author Michael Behrisch16/// @date 2009-11-3017///18//19/****************************************************************************/2021#ifndef Command_Mock_h22#define Command_Mock_h2324#include <utils/common/Command.h>2526// ===========================================================================27// class definitions28// ===========================================================================29/**30* @class CommandMock31* Mock Implementation for Unit Tests32*/33class CommandMock : public Command {34public:35/** @brief Constructor36*/37CommandMock() {38hasRun = false;39}4041/// @brief Destructor42~CommandMock() {}4344/** @brief Executes the command.*/45SUMOTime execute(SUMOTime currentTime) {46hasRun = true;47return currentTime;48}4950/** return true, when execute was called, otherwise false */51bool isExecuteCalled() {52return hasRun;53}5455private:56bool hasRun;5758};596061#endif6263/****************************************************************************/646566