Skip to content

Commit

Permalink
Fixed code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
w3stling committed Aug 17, 2024
1 parent 316a1b3 commit 2be1e1d
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void validateTransaction() throws IOException {
assertTrue(transaction.isInitialNotification());
assertFalse(transaction.isLinkedToShareOptionProgramme());
assertEquals("Förvärv", transaction.getNatureOfTransaction());
//assertEquals("Empir Group AB", transaction.getInstrumentName());
assertEquals("Empir Group AB", transaction.getInstrumentName());
assertEquals("SE0010769182", transaction.getIsin());
assertEquals(28227, transaction.getQuantity(), 0.0);
assertEquals("Antal", transaction.getUnit());
Expand Down Expand Up @@ -184,7 +184,7 @@ void badPricePointInsteadOfComma() throws IOException {
assertTrue(transaction.isInitialNotification());
assertFalse(transaction.isLinkedToShareOptionProgramme());
assertEquals("Förvärv", transaction.getNatureOfTransaction());
//assertEquals("Empir Group AB", transaction.getInstrumentName());
assertEquals("Empir Group AB", transaction.getInstrumentName());
assertEquals("SE0010769182", transaction.getIsin());
assertEquals(28227, transaction.getQuantity(), 0.0);
assertEquals("Antal", transaction.getUnit());
Expand Down Expand Up @@ -435,8 +435,8 @@ void bigSampleTransaction() throws IOException {
System.setProperty("insynsregistret.parallel", "false");

ClassLoader classLoader = getClass().getClassLoader();
BufferedReader reader = TestUtil.getExportedTransactionFile(classLoader, "insynBigSample.csv");
long transactionCount = ir.parseTransactionResponse(reader).count();
BufferedReader exportedFileReader = TestUtil.getExportedTransactionFile(classLoader, "insynBigSample.csv");
long transactionCount = ir.parseTransactionResponse(exportedFileReader).count();

assertEquals(20436, transactionCount);
}
Expand Down Expand Up @@ -469,7 +469,6 @@ void urlEncodingWithAmpersand() throws IOException {
.build();

long count = ir.search(query)
.map(Transaction::getIssuer)
.count();

assertTrue(count > 0);
Expand Down

0 comments on commit 2be1e1d

Please sign in to comment.