Skip to content

Commit

Permalink
Fix: Commented out invalid test in StockTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyah committed Mar 11, 2026
1 parent 04554e1 commit 741b917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/StockTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ void constructor_setsSymbolAndCompany() {
assertEquals("Apple Inc.", stock.getCompany());
}

@Test
/*@Test
void getSalesPrice_throwsWhenNoPricesExist_currentImplementation() {
Stock stock = new Stock("AAPL", "Apple Inc.", new BigDecimal("100.00"));
// Because constructor does not add the initial salesPrice to prices,
// prices is empty and getLast() throws NoSuchElementException.
assertThrows(NoSuchElementException.class, stock::getSalesPrice);
}
}*/

@Test
void addNewSalesPrice_thenGetSalesPrice_returnsLastAddedPrice() {
Expand Down

0 comments on commit 741b917

Please sign in to comment.