Package net.raymanoz.ui

Examples of net.raymanoz.ui.UserInteractionStrategy


  final private Configuration config =  mock(Configuration.class);
  //TODO - this will not be simple :(
 
  @Test
  public void shouldBeAbleToCreate() {
    UserInteractionStrategy confirmation = new GUIInteractionStrategy(config, "message");
    assertNotNull("could not create " + GUIInteractionStrategy.class.getName(), confirmation);
  }
View Full Code Here


 
  @Test
  public void shouldBeAbleToGetConfirmationMessage() {
    final String expectedMessage = "really?";
    when(properties.getString(CONFIRMATION_MESSAGE.getKey())).thenReturn(expectedMessage);
    UserInteractionStrategy confirmation = config.getUserInteractionStrategy();
    assertThat(confirmation, is(notNullValue()));
    assertThat(confirmation, is(GUIInteractionStrategy.class));
  }
View Full Code Here

  }
 
  @Test
  public void shouldBeAbleToGetConfirmationMessageEvenIfNotDefined() {
    when(properties.getString(CONFIRMATION_MESSAGE.getKey())).thenReturn(null);
    UserInteractionStrategy confirmation = config.getUserInteractionStrategy();
    assertThat(confirmation, is(notNullValue()));
    assertThat(confirmation, is(NoUserInputStrategy.class));
  }
View Full Code Here

TOP

Related Classes of net.raymanoz.ui.UserInteractionStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.