Skip to content

Commit

Permalink
Merge pull request #773 from ie3-institute/pp/#646-convert-groovy-tes…
Browse files Browse the repository at this point in the history
…ts-to-scalatest

pp/#646-convert-groovy-tests-to-scalatest
  • Loading branch information
danielfeismann authored Jul 26, 2024
2 parents 516fa2f + da88d5c commit 8deff74
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 221 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Remove unnecessary dependency `pekko-connectors-csv` [#857](https://github.com/ie3-institute/simona/issues/857)
- Rewrote RefSystemTest from groovy to scala [#646](https://github.com/ie3-institute/simona/issues/646)
- Rewrote FixedFeedModelTest from groovy to scala [#646](https://github.com/ie3-institute/simona/issues/646)
- Rewrote WecModelTest from groovy to scala [#646](https://github.com/ie3-institute/simona/issues/646)

### Fixed
- Removed a repeated line in the documentation of vn_simona config [#658](https://github.com/ie3-institute/simona/issues/658)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ final case class WecModel(
* @return
* active power output
*/
override protected def calculateActivePower(
override def calculateActivePower(
modelState: ConstantState.type,
wecData: WecRelevantData,
): Power = {
Expand Down Expand Up @@ -154,7 +154,7 @@ final case class WecModel(
* @return
* betz coefficient cₚ
*/
private def determineBetzCoefficient(
def determineBetzCoefficient(
windVelocity: Velocity
): Dimensionless = {
betzCurve.interpolateXy(windVelocity) match {
Expand All @@ -174,7 +174,7 @@ final case class WecModel(
* current air pressure
* @return
*/
private def calculateAirDensity(
def calculateAirDensity(
temperature: Temperature,
airPressure: Option[Pressure],
): Density = {
Expand Down Expand Up @@ -214,7 +214,7 @@ object WecModel {
/** This class is initialized with a [[WecCharacteristicInput]], which
* contains the needed betz curve.
*/
final case class WecCharacteristic private (
final case class WecCharacteristic(
override val xyCoordinates: SortedSet[
XYPair[Velocity, Dimensionless]
]
Expand Down
217 changes: 0 additions & 217 deletions src/test/groovy/edu/ie3/simona/model/participant/WecModelTest.groovy

This file was deleted.

Loading

0 comments on commit 8deff74

Please sign in to comment.