Skip to content

Commit

Permalink
Merge pull request #312 from ie3-institute/ms/#141-rename-sub-package…
Browse files Browse the repository at this point in the history
…-directories-in-test-resources

Renaming sub-package directories.
  • Loading branch information
sebastian-peter authored Aug 16, 2022
2 parents e798977 + d14c25c commit e0a002b
Show file tree
Hide file tree
Showing 25 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Adapt test to new PowerSystemUtils snapshot [#294](https://github.com/ie3-institute/simona/issues/294)
- Simplified ParticipantConfigUtil [#273](https://github.com/ie3-institute/simona/issues/273)
- Consolidated and enhanced SimScheduler tests [#285](https://github.com/ie3-institute/simona/issues/285)
- Renaming sub-package directories [#141](https://github.com/ie3-institute/simona/issues/141)

### Fixed
- Location of `vn_simona` test grid (was partially in Berlin and Dortmund) [#72](https://github.com/ie3-institute/simona/issues/72)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ trait PVModelITHelper {
"load the grid input data from the corresponding resources folder"

def csvGridSource = CsvGridSource.readGrid("it_grid", ";",
this.getClass().getResource("pv/it/grid_data").file,
this.getClass().getResource("_pv/it/grid_data").file,
new FileNamingStrategy())

def simulationStartDate = TimeUtil.withDefaults.toZonedDateTime("2011-01-01 00:00:00")
Expand Down Expand Up @@ -165,7 +165,7 @@ trait PVModelITHelper {

HashMap<ZonedDateTime, HashMap<String, WeatherMessage.WeatherData>> getWeatherData() {
"read the weather data from the provided weather data file"
final String fileName = "pv/it/weather.tar.gz"
final String fileName = "_pv/it/weather.tar.gz"
final def csvRecords = getCsvRecords(fileName)

HashMap<ZonedDateTime, HashMap<String, WeatherMessage.WeatherData>> weatherMap = new HashMap<>()
Expand Down Expand Up @@ -203,7 +203,7 @@ trait PVModelITHelper {

HashMap<ZonedDateTime, HashMap<String, Quantity<Power>>> getResultsData() {
"read the results data from the provided file"
final String fileName = "pv/it/results2.tar.gz"
final String fileName = "_pv/it/results2.tar.gz"
def csvRecords = getCsvRecords(fileName)

// we skip the first line and use hardcoded headers, because the first line is garbled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class PrimaryServiceProxySpec
.get(
this.getClass
.getResource(
"it"
"_it"
)
.toURI
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PrimaryServiceProxySqlIT

override protected def beforeAll(): Unit = {
// Copy sql import scripts into docker
val sqlImportFile = getMountableFile("timeseries/")
val sqlImportFile = getMountableFile("_timeseries/")
container.copyFileToContainer(sqlImportFile, "/home/")

Iterable(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class PrimaryServiceWorkerSpec
.get(
this.getClass
.getResource(
"it"
"_it"
)
.toURI
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class PrimaryServiceWorkerSqlIT

override protected def beforeAll(): Unit = {
// Copy sql import scripts into docker
val sqlImportFile = getMountableFile("timeseries/")
val sqlImportFile = getMountableFile("_timeseries/")
container.copyFileToContainer(sqlImportFile, "/home/")

Iterable("time_series_p.sql", "time_series_pqh.sql")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class ExtSimLoaderSpec extends UnitSpec {

private val resourceDir = "ext-sim-loader"

private val noJarsDir = s"$resourceDir/no-jars"
private val jarsDir = s"$resourceDir/jars"
private val noJarsDir = s"$resourceDir/_no-jars"
private val jarsDir = s"$resourceDir/_jars"

private val workingJar = s"$jarsDir/mock_ext_sim.jar"
private val workingJar2 = s"$jarsDir/mock_ext_sim-2.jar"
Expand Down

0 comments on commit e0a002b

Please sign in to comment.