Skip to content

Commit

Permalink
Feat: Removed MainTest, made Main extend Application, and added mainc…
Browse files Browse the repository at this point in the history
…lass to pom.xml javafx
  • Loading branch information
tommyah committed Apr 20, 2026
1 parent c5fb9c8 commit 349e597
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<configuration>
<mainClass>edu.ntnu.idi.idatt2003.g40.mappe.Main</mainClass>
</configuration>
</plugin>

<plugin>
Expand Down
13 changes: 12 additions & 1 deletion src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Main.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
package edu.ntnu.idi.idatt2003.g40.mappe;

import edu.ntnu.idi.idatt2003.g40.mappe.model.Stock;
import edu.ntnu.idi.idatt2003.g40.mappe.service.FileConverter;
import edu.ntnu.idi.idatt2003.g40.mappe.service.FileParser;
import javafx.application.Application;
import javafx.stage.Stage;

import java.io.IOException;
import java.util.List;

public class Main {
public class Main extends Application {
static void main() {
FileParser parser1 = new FileParser("src/main/resources/dummydata.txt");
FileConverter converter1 = new FileConverter();
Expand All @@ -15,4 +21,9 @@ static void main() {
System.err.println(e.getMessage());
}
}

@Override
public void start(final Stage stage) throws Exception {

}
}
3 changes: 0 additions & 3 deletions src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/MainTest.java

This file was deleted.

0 comments on commit 349e597

Please sign in to comment.