Skip to content

Commit

Permalink
Changing some namings.
Browse files Browse the repository at this point in the history
  • Loading branch information
staudtMarius committed Jun 13, 2024
1 parent ad6f7e9 commit 7db17a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public Set<EmResult> getEmResults() throws SourceException {
/**
* Returns a unique set of {@link CongestionResult} instances.
*
* @return a set of object and subnet unique {@link CongestionResult} entities
* @return a set of object and subgrid unique {@link CongestionResult} entities
*/
public Set<CongestionResult> getCongestionResults() throws SourceException {
return getResultEntities(CongestionResult.class, congestionResultFactory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,16 @@ class UniquenessValidationUtilsTest extends Specification {
def "Duplicates in congestion result inputs lead to an exception"() {
given:
ZonedDateTime time = ZonedDateTime.parse("2024-02-15T13:49:44+01:00[Europe/Berlin]")
int subnet1 = 1
int subnet2 = 2
int subgrid1 = 1
int subgrid2 = 2
Quantity<Dimensionless> vMin = Quantities.getQuantity(0.9, PU)
Quantity<Dimensionless> vMax = Quantities.getQuantity(1.1, PU)

Set<CongestionResult> notUniqueResults = [
new CongestionResult(time, subnet1, vMin, vMax, false, false, false),
new CongestionResult(time, subnet1, vMin, vMax, false, true, false),
new CongestionResult(time.plusHours(1), subnet1, vMin, vMax, false, false, false),
new CongestionResult(time.plusHours(1), subnet2, vMin, vMax, false, true, false),
new CongestionResult(time, subgrid1, vMin, vMax, false, false, false),
new CongestionResult(time, subgrid1, vMin, vMax, false, true, false),
new CongestionResult(time.plusHours(1), subgrid1, vMin, vMax, false, false, false),
new CongestionResult(time.plusHours(1), subgrid2, vMin, vMax, false, true, false),
]

when:
Expand Down

0 comments on commit 7db17a4

Please sign in to comment.