Search in sources :

Example 6 with Placement

use of io.github.vocabhunter.gui.common.Placement in project VocabHunter by VocabHunter.

the class PlacementManagerTest method testInvisibleSettings.

@Test
public void testInvisibleSettings() {
    when(environmentManager.isVisible(any(Placement.class))).thenReturn(false);
    when(settingsManager.getWindowSettings()).thenReturn(Optional.of(windowSettings));
    Placement result = target.getMainWindow();
    assertEquals(result, DEFAULT_WINDOW_SIZE, "Invisible settings");
}
Also used : Placement(io.github.vocabhunter.gui.common.Placement) Test(org.junit.jupiter.api.Test)

Aggregations

Placement (io.github.vocabhunter.gui.common.Placement)6 Test (org.junit.jupiter.api.Test)3 AbstractModule (com.google.inject.AbstractModule)1 Module (com.google.inject.Module)1 GuiTaskHandler (io.github.vocabhunter.analysis.core.GuiTaskHandler)1 FileListManager (io.github.vocabhunter.analysis.settings.FileListManager)1 FileListManagerImpl (io.github.vocabhunter.analysis.settings.FileListManagerImpl)1 FileDialogueFactory (io.github.vocabhunter.gui.dialogues.FileDialogueFactory)1 EnvironmentManager (io.github.vocabhunter.gui.services.EnvironmentManager)1 PlacementManager (io.github.vocabhunter.gui.services.PlacementManager)1 WebPageTool (io.github.vocabhunter.gui.services.WebPageTool)1 SettingsManager (io.github.vocabhunter.gui.settings.SettingsManager)1 SettingsManagerImpl (io.github.vocabhunter.gui.settings.SettingsManagerImpl)1 TestFileManager (io.github.vocabhunter.test.utils.TestFileManager)1 Path (java.nio.file.Path)1 Parent (javafx.scene.Parent)1 Scene (javafx.scene.Scene)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1