Search in sources :

Example 11 with ConsoleOptions

use of org.ovirt.engine.core.common.console.ConsoleOptions in project ovirt-engine by oVirt.

the class GetConsoleDescriptorFileQueryTest method shouldFailWhenVmNull.

@Test
public void shouldFailWhenVmNull() throws Exception {
    ConsoleOptions options = new ConsoleOptions(GraphicsType.SPICE);
    when(getQueryParameters().getOptions()).thenReturn(options);
    assertFalse(getQuery().validateInputs());
}
Also used : ConsoleOptions(org.ovirt.engine.core.common.console.ConsoleOptions) Test(org.junit.Test)

Aggregations

ConsoleOptions (org.ovirt.engine.core.common.console.ConsoleOptions)11 Test (org.junit.Test)5 ConfigureConsoleOptionsParams (org.ovirt.engine.core.common.queries.ConfigureConsoleOptionsParams)3 GraphicsInfo (org.ovirt.engine.core.common.businessentities.GraphicsInfo)2 GraphicsType (org.ovirt.engine.core.common.businessentities.GraphicsType)2 VM (org.ovirt.engine.core.common.businessentities.VM)2 QueryReturnValue (org.ovirt.engine.core.common.queries.QueryReturnValue)2 QueryType (org.ovirt.engine.core.common.queries.QueryType)2 Frontend (org.ovirt.engine.ui.frontend.Frontend)2 FrontendUrlUtils (org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils)2 BaseCommandTarget (org.ovirt.engine.ui.uicommonweb.BaseCommandTarget)2 ConsoleUtils (org.ovirt.engine.ui.uicommonweb.ConsoleUtils)2 DynamicMessages (org.ovirt.engine.ui.uicommonweb.DynamicMessages)2 ShowErrorAsyncQuery (org.ovirt.engine.ui.uicommonweb.ShowErrorAsyncQuery)2 TypeResolver (org.ovirt.engine.ui.uicommonweb.TypeResolver)2 UICommand (org.ovirt.engine.ui.uicommonweb.UICommand)2 AsyncDataProvider (org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider)2 Model (org.ovirt.engine.ui.uicommonweb.models.Model)2 ConstantsManager (org.ovirt.engine.ui.uicompat.ConstantsManager)2 ActionReturnValue (org.ovirt.engine.core.common.action.ActionReturnValue)1