Skip to content

Commit

Permalink
Convert ContingenciesAndActionsDatabaseClientMock to ContingenciesPro…
Browse files Browse the repository at this point in the history
…viderMock.java
  • Loading branch information
mathbagu authored and mathbagu committed Oct 12, 2016
1 parent cb090c4 commit 7897f49
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 111 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package eu.itesla_project.contingency.mock;

import eu.itesla_project.contingency.ContingenciesProvider;
import eu.itesla_project.contingency.ContingenciesProviderFactory;

/**
* @author Mathieu Bague <mathieu.bague at rte-france.com>
*/
public class ContingenciesProviderFactoryMock implements ContingenciesProviderFactory {

@Override
public ContingenciesProvider create() {
return new ContingenciesProviderMock();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package eu.itesla_project.contingency.mock;

import eu.itesla_project.contingency.ContingenciesProvider;
import eu.itesla_project.contingency.Contingency;
import eu.itesla_project.iidm.network.Network;

import java.util.Collections;
import java.util.List;

/**
* @author Mathieu Bague <mathieu.bague at rte-france.com>
*/
class ContingenciesProviderMock implements ContingenciesProvider {

@Override
public List<Contingency> getContingencies(Network network) {
return Collections.emptyList();
}
}

This file was deleted.

This file was deleted.

0 comments on commit 7897f49

Please sign in to comment.