Skip to content

Commit

Permalink
fix: Packaging syntax for .jar executable
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelsa committed May 23, 2026
1 parent b3f5e30 commit fa0ae48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public SearchBarComponent(String placeholder) {
searchBar.textProperty().bindBidirectional(query);
searchBar.setFocusTraversable(false);

Image image = new Image(this.getClass().getResource("/icons/search.png/").toExternalForm());
Image image = new Image(this.getClass().getResource("/icons/search.png").toExternalForm());
searchIcon = new IconComponent(image, null, 32);

wrapper.getChildren().addAll(searchBar, searchIcon);
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/edu/ntnu/idi/idatt/storage/StockParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void PT_setup() throws IOException {
void PT_load() {
List<Stock> stocks = null;
try {
stocks = StockParser.load(file);
stocks = StockParser.loadFromFile(file);
} catch (IOException e) {
e.printStackTrace();
}
Expand All @@ -62,7 +62,7 @@ void PT_load() {
@Test
void NT_IllegalArgumentException_Constructor() {
assertThrows(IOException.class,
() -> StockParser.load("resources/notexistantfile.csv"));
() -> StockParser.loadFromFile("resources/notexistantfile.csv"));
}

}

0 comments on commit fa0ae48

Please sign in to comment.