リビジョン c40afdfd
| src/main/java/com/torutk/spectrum/App.java | ||
|---|---|---|
|
/*
|
||
|
* This Java source file was generated by the Gradle 'init' task.
|
||
|
*/
|
||
|
package com.torutk.spectrum;
|
||
|
|
||
|
public class App {
|
||
|
public String getGreeting() {
|
||
|
return "Hello world.";
|
||
|
}
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
System.out.println(new App().getGreeting());
|
||
|
}
|
||
|
}
|
||
| src/main/java/com/torutk/spectrum/view/SpectrumFileViewApp.java | ||
|---|---|---|
|
package com.torutk.spectrum.view;
|
||
|
|
||
|
import javafx.application.Application;
|
||
|
import javafx.stage.Stage;
|
||
|
|
||
|
public class SpectrumFileViewApp extends Application {
|
||
|
|
||
|
@Override
|
||
|
public void start(Stage primaryStage) {
|
||
|
primaryStage.show();
|
||
|
}
|
||
|
}
|
||
| src/main/java/module-info.java | ||
|---|---|---|
|
module com.torutk.spectrum {
|
||
|
requires javafx.graphics;
|
||
|
opens com.torutk.spectrum.view to javafx.graphics;
|
||
|
}
|
||
| src/test/java/com/torutk/spectrum/AppTest.java | ||
|---|---|---|
|
/*
|
||
|
* This Java source file was generated by the Gradle 'init' task.
|
||
|
*/
|
||
|
package com.torutk.spectrum;
|
||
|
|
||
|
import org.junit.jupiter.api.Test;
|
||
|
import static org.junit.jupiter.api.Assertions.*;
|
||
|
|
||
|
class AppTest {
|
||
|
@Test void appHasAGreeting() {
|
||
|
App classUnderTest = new App();
|
||
|
assertNotNull(classUnderTest.getGreeting(), "app should have a greeting");
|
||
|
}
|
||
|
}
|
||
Add simple main JavaFX class and JPMS module declaration
- deleted main class and main test class generated by gradle init.