-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert ContingenciesAndActionsDatabaseClientMock to ContingenciesPro…
…viderMock.java
- Loading branch information
mathbagu
authored and
mathbagu
committed
Oct 12, 2016
1 parent
cb090c4
commit 7897f49
Showing
4 changed files
with
46 additions
and
111 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...pi/src/main/java/eu/itesla_project/contingency/mock/ContingenciesProviderFactoryMock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...gency-api/src/main/java/eu/itesla_project/contingency/mock/ContingenciesProviderMock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
..._project/modules/contingencies/mock/ContingenciesAndActionsDatabaseClientFactoryMock.java
This file was deleted.
Oops, something went wrong.
91 changes: 0 additions & 91 deletions
91
.../itesla_project/modules/contingencies/mock/ContingenciesAndActionsDatabaseClientMock.java
This file was deleted.
Oops, something went wrong.