Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
vananiev committed Jan 3, 2024
1 parent 3bc1718 commit 924e59b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
<properties>
<!-- Valid version is (0-255).(0-255).(0-65535) -->
<win.msi.version>23.4</win.msi.version>
<java.version>21</java.version>
<maven.compiler.release>21</maven.compiler.release>
<lombok.version>1.18.30</lombok.version>
<checkerframework.version>3.34.0</checkerframework.version>
<checkerframework.version>3.42.0</checkerframework.version>
</properties>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class DividendTableTest {
@Mock
SecurityRegistrar securityRegistrar;

static Object[][] getData() {
static Object[][] cashFisinlow() {
return new Object[][] {{"E:\\1.xlsx", "RU000A0JRKT8", "RU000A0JRKT8" }};
}

Expand All @@ -45,7 +45,9 @@ static Object[][] getData() {
void testIsin(String report, String firstIsin, String lastIsin) throws IOException {
PsbBrokerReport psbBrokerReport = new PsbBrokerReport(report, securityRegistrar);
List<SecurityEventCashFlow> data = new DividendTable(psbBrokerReport).getData();
//noinspection AssertBetweenInconvertibleTypes
assertEquals(data.get(0).getSecurity(), firstIsin);
//noinspection AssertBetweenInconvertibleTypes
assertEquals(data.get(data.size() - 1).getSecurity(), lastIsin);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public class PortfolioCashTableTest {
@Mock
SecurityRegistrar securityRegistrar;

@DataProvider(name = "cash_in")
Object[][] getData() {
static Object[][] cashIn() {
return new Object[][] {{"E:\\1.xlsx", BigDecimal.valueOf(350.37)}};
}

Expand Down

0 comments on commit 924e59b

Please sign in to comment.