- NetworkTickHandler: Vollständiger Tick-Zyklus mit Power-Check, Inventory-Propagation, Importer- (pull), Exporter- (push) und Disk-I/O-Logik - NetworkInventory: Aggregiertes Netzwerk-Inventar (ConcurrentHashMap-basiert) - DiskDriveManager: Verwaltet StorageDisk-Slots pro Drive-Position (max 8) - StorageDisk: 1k/4k/16k/64k Tiers, priority-basiertes Insert/Remove - StorageSlot: Einzel-Slot mit 64 Stack-Limit pro Item-Typ - AdjacentInventory: Simulierte World-Storage für Importer/Exporter - NetworkManager: logging refactor (lazy init + JUL fallback), resetForTesting(), inventory+powered Felder, BFS rebuild-Fix (clear lookups vor BFS) - DiskDriveUI: Echte Disk-Collection via DiskDriveManager statt stub, format/eject/priority mit logging - Tests: 18 NetworkManager-Tests (BFS, cable split, 3D propagation, full layout), 5 NetworkTickHandler-Tests (inventory ops, powered toggle) - build.gradle.kts: JUnit 5 Test-Config + Jacoco Report
20 lines
538 B
Kotlin
20 lines
538 B
Kotlin
// All main configuration is in settings.gradle.kts via ScaffoldIt
|
|
// Test dependencies are added here
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
tasks.named<Test>("test") {
|
|
useJUnitPlatform()
|
|
// HytaleLogManager is not on the test classpath (Server JAR not available for tests)
|
|
testLogging {
|
|
events("passed", "skipped", "failed")
|
|
showStandardStreams = true
|
|
}
|
|
}
|