From 741b9173e9741313253dea7414f97173de7ce449 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 11 Mar 2026 15:37:02 +0100 Subject: [PATCH] Fix: Commented out invalid test in StockTest --- src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/StockTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/StockTest.java b/src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/StockTest.java index 097cd27..c7f0a46 100644 --- a/src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/StockTest.java +++ b/src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/StockTest.java @@ -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() {