Skip to content

Commit

Permalink
#208: fixes some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rladstaetter committed Apr 7, 2024
1 parent 98bb638 commit b4297dc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MultipleFileApplicationTest(val files: Seq[Path])
with CanStartApplication
with CanOpenFile {

val services = LogoRRRServices(Settings.Default
val services: LogoRRRServices = LogoRRRServices(Settings.Default
,new MockHostServices
, new OpenMultipleFilesService(files)
, isUnderTest = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SingleFileApplicationTest(val path: Path)
with CanStartApplication
with CanOpenFile {

val services = LogoRRRServices(Settings.Default
val services: LogoRRRServices = LogoRRRServices(Settings.Default
, new MockHostServices
, new OpenSingleFileService(Option(path))
, isUnderTest = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ import app.logorrr.views.UiNodes
import javafx.scene.control.TabPane
import org.junit.jupiter.api.Test

import java.nio.file.Path

/**
* Checks if a file can be opened and closed
*/
class OpenAndCloseFileTestViaFileMenuCloseAllTest extends SingleFileApplicationTest(TestFiles.simpleLog0)
with CanCloseAllFiles {

override val path = TestFiles.simpleLog0
override val path: Path = TestFiles.simpleLog0

/**
* checks if an open file creates a new logfiletab with an id matching the file opened.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import javafx.scene.control.TabPane
import javafx.scene.layout.StackPane
import org.junit.jupiter.api.Test

import java.nio.file.Path

/**
* Checks if a file can be opened and closed via it's closing button
*/
class OpenAndCloseFileTestViaTabCloseButtonTest extends SingleFileApplicationTest(TestFiles.simpleLog0) {

override val path = TestFiles.simpleLog0
override val path: Path = TestFiles.simpleLog0

/**
* checks if an open file creates a new logfiletab with an id matching the file opened.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.junit.jupiter.api.Test

class SimpleTextSizeTest extends SingleFileApplicationTest(TestFiles.simpleLog0) {

override val services = LogoRRRServices(Settings.Default.copy(stageSettings = StageSettings(100, 100, 1200, 600))
override val services: LogoRRRServices = LogoRRRServices(Settings.Default.copy(stageSettings = StageSettings(100, 100, 1200, 600))
, new MockHostServices
, new OpenSingleFileService(Option(path))
, isUnderTest = true)
Expand Down

0 comments on commit b4297dc

Please sign in to comment.