feat(studio): ship JavaFX 2 Play and delegate integration tooling
Launch the JavaFX 2 project shell on Java 25 with an interactive viewport, managed Play lifecycle and project mutation guards. Preserve headless/MCP and save compatibility, and qualify exact runtime executable bundles. Separate unit JaCoCo gates from opt-in integration suites and use the internal Pong fixture for the headless visual pilot. Move maintenance and native conformance tools into tooling; retain the VS Code extension and update current navigation links. Validation: tooling make verify passed, including 1064 Studio unit tests, JaCoCo thresholds and 22 headless integration tests.
This commit is contained in:
+3
-3
@@ -70,7 +70,7 @@ class StudioBoundaryArchTest {
|
||||
|
||||
@ArchTest
|
||||
static final ArchRule javaFxAdapterDoesNotDependOnCoreOrProviderImplementations = noClasses()
|
||||
.that().resideInAPackage("p.studio.ui.javafx..")
|
||||
.that().resideInAnyPackage("p.studio.ui.javafx..", "p.studio.ui.javafx2..")
|
||||
.should().dependOnClassesThat().resideInAnyPackage(
|
||||
"p.studio.core..",
|
||||
"p.packer..",
|
||||
@@ -81,13 +81,13 @@ class StudioBoundaryArchTest {
|
||||
|
||||
@ArchTest
|
||||
static final ArchRule javaFxAdapterDoesNotOrchestrateTheFileSystem = noClasses()
|
||||
.that().resideInAPackage("p.studio.ui.javafx..")
|
||||
.that().resideInAnyPackage("p.studio.ui.javafx..", "p.studio.ui.javafx2..")
|
||||
.should().dependOnClassesThat().haveFullyQualifiedName("java.nio.file.Files")
|
||||
.because("DEC-0059 keeps filesystem orchestration behind neutral Studio services");
|
||||
|
||||
@ArchTest
|
||||
static final ArchRule javaFxAdapterDoesNotOwnSerialization = noClasses()
|
||||
.that().resideInAPackage("p.studio.ui.javafx..")
|
||||
.that().resideInAnyPackage("p.studio.ui.javafx..", "p.studio.ui.javafx2..")
|
||||
.should().dependOnClassesThat().resideInAPackage("com.fasterxml.jackson..")
|
||||
.because("DEC-0059 keeps serialization in core or application adapters, not visual controls");
|
||||
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ import p.studio.compiler.source.diagnostics.DiagnosticSink;
|
||||
import p.studio.compiler.source.identifiers.FileId;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsClosuresTest {
|
||||
@Test void namedAndAnonymousFunctionsShareSignature() throws Exception {
|
||||
PbsStructuredValuesTest.compile("closure-functions", """
|
||||
|
||||
+1
@@ -13,6 +13,7 @@ import p.studio.utilities.structures.ReadOnlyList;
|
||||
import java.nio.file.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsGenericContractsTest {
|
||||
private static final String ECHO = "declare contract Echo<T> { fn echo(value: T) -> T; } declare service Strategy {}\n";
|
||||
|
||||
|
||||
+1
@@ -12,6 +12,7 @@ import p.studio.utilities.structures.ReadOnlyList;
|
||||
import java.nio.file.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsGenericStructsTest {
|
||||
private static final String BOX = """
|
||||
declare struct Box<T>(value: T) {
|
||||
|
||||
+1
@@ -18,6 +18,7 @@ import java.nio.file.*;
|
||||
import java.util.List;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsGuestLifecycleTest {
|
||||
private static Path directory() { return Path.of(System.getProperty("pbs.registryConformanceDirectory")); }
|
||||
private static final String BASE = """
|
||||
|
||||
+1
@@ -10,6 +10,7 @@ import java.nio.file.*;
|
||||
import java.util.HexFormat;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsIdentityHashingTest {
|
||||
static String sdk() throws Exception {
|
||||
try(var stream=PbsIdentityHashingTest.class.getResourceAsStream("/game/stdlib/1/sdk/hash/main.pbs")) {
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ import java.nio.file.*;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsLinkedTest {
|
||||
static void compile(String name, String source) throws Exception {
|
||||
PbsListCursorTest.compileCollection("linked", name, source);
|
||||
|
||||
+1
@@ -15,6 +15,7 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.util.ArrayList;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsListCursorTest {
|
||||
private static Path directory() { return Path.of(System.getProperty("pbs.registryConformanceDirectory")); }
|
||||
static BytecodeModule compile(String name,String source) throws Exception {
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsMapKeyvalTest {
|
||||
static void compile(String name,String source)throws Exception { PbsListCursorTest.compileCollection("map",name,source); }
|
||||
static void probe(String name,String body)throws Exception { compile(name,"declare service Probe {fn main()->int {"+body+"}}"); }
|
||||
|
||||
+1
@@ -11,6 +11,7 @@ import java.nio.file.*;
|
||||
import java.util.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsMemcardTest {
|
||||
@TempDir Path root;
|
||||
private CompileResult compile(Path project) {
|
||||
|
||||
+1
@@ -8,6 +8,7 @@ import java.nio.file.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
/** Production producers; results are independently checked by the native verifier. */
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsResultTest {
|
||||
@Test void resultFunctionsCannotBecomePlainFunctionValues() {
|
||||
for(String value:new String[]{"let f:Fn()->int=fallible;","let f=fallible;"}){
|
||||
|
||||
+1
@@ -10,6 +10,7 @@ import p.studio.compiler.models.SourceKind;
|
||||
import java.nio.file.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsRuntimeAlignmentTest {
|
||||
private static String sdk(String path) throws Exception {
|
||||
try(var stream = PbsFrontendCompiler.class.getResourceAsStream("/game/stdlib/1/"+path+"/main.pbs")) {
|
||||
|
||||
+1
@@ -7,6 +7,7 @@ import p.studio.compiler.source.identifiers.FileId;
|
||||
import p.studio.compiler.models.SourceKind;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsRuntimeMathTest {
|
||||
static String sdk() throws Exception {
|
||||
var result = new StringBuilder();
|
||||
|
||||
+1
@@ -4,6 +4,7 @@ import org.junit.jupiter.api.Test;
|
||||
import p.studio.compiler.pbs.PbsFrontendCompiler;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsRuntimeRandomTest {
|
||||
static String sdk() throws Exception {
|
||||
try (var stream = PbsFrontendCompiler.class.getResourceAsStream("/game/stdlib/1/sdk/random/main.pbs")) {
|
||||
|
||||
+1
@@ -12,6 +12,7 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsSetTest {
|
||||
static String sdk() throws Exception {
|
||||
try(var stream=PbsSetTest.class.getResourceAsStream("/game/stdlib/1/sdk/collections/main.pbs")) {
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ import p.studio.compiler.pbs.PbsFrontendCompiler;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsSpriteAnimationTest {
|
||||
static String core() throws Exception {
|
||||
var text = new StringBuilder();
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsStackQueueTest {
|
||||
private static void compile(String type,String name,String source) throws Exception {
|
||||
PbsListCursorTest.compileCollection(type,name,source);
|
||||
|
||||
+1
@@ -14,6 +14,7 @@ import p.studio.utilities.structures.ReadOnlyList;
|
||||
import p.studio.compiler.source.identifiers.ModuleId;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@org.junit.jupiter.api.Tag("integration")
|
||||
class PbsStructuredValuesTest {
|
||||
static BytecodeModule compile(String name,String source) throws Exception {
|
||||
var diagnostics=DiagnosticSink.empty();
|
||||
|
||||
Reference in New Issue
Block a user