Skip to content

Commit ae2d6bc

Browse files
committed
chore: add tests for epoch 360 and 475
1 parent 91a1623 commit ae2d6bc

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

calculation/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.cardanofoundation</groupId>
88
<artifactId>cf-rewards</artifactId>
9-
<version>0.9.0</version>
9+
<version>0.10.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>org.cardanofoundation</groupId>
66
<artifactId>cf-rewards</artifactId>
7-
<version>0.9.0</version>
7+
<version>0.10.0</version>
88
<name>cardano-reward-calculation</name>
99
<url>https://github.com/cardano-foundation/cf-java-rewards-calculation.git</url>
1010

validation/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.cardanofoundation</groupId>
88
<artifactId>cf-rewards</artifactId>
9-
<version>0.9.0</version>
9+
<version>0.10.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

validation/src/test/java/org/cardanofoundation/rewards/validation/EpochValidationTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ public void testCalculateEpochRewardsWithJsonDataProvider(int epoch) {
5656
testCalculateEpochPots(epoch, jsonDataProvider, false);
5757
}
5858

59+
static Stream<Integer> testEpochs() {
60+
return Stream.of(
61+
360, 475
62+
);
63+
}
64+
65+
@ParameterizedTest
66+
@MethodSource("testEpochs")
67+
public void testYoungerEpochRewardsWithJsonDataProvider(int epoch) {
68+
testCalculateEpochPots(epoch, jsonDataProvider, false);
69+
}
70+
5971
@Test
6072
@EnabledIf(expression = "#{environment.acceptsProfiles('db-sync')}", loadContext = true, reason = "DB Sync data provider must be available for this test")
6173
public void testCalculateEpochRewardsForEpoch417() {

0 commit comments

Comments
 (0)