/com.plugin.log4j.viewer/uitests/com/log4jviewer/ui/views/StartStopServerButtonsTest.java
Java | 29 lines | 19 code | 5 blank | 5 comment | 0 complexity | 842bf0888332514590bc4798b20b1144 MD5 | raw file
- package com.log4jviewer.ui.views;
- import org.junit.Test;
- /**
- *
- * @author <a href="mailto:Daniil.Yaroslavtsev@gmail.com"> Daniil Yaroslavtsev </a>
- *
- */
- public class StartStopServerButtonsTest extends AbstractMainViewTest {
- @Test
- public void testStartStopServerButtonsInitialState() {
- assertTrue(getStartLog4jServerButton().isEnabled());
- assertFalse(getStopLog4jServerButton().isEnabled());
- }
- @Test
- public void testStartStopServerButtonsSelection() {
- selectStartLog4jServerButton();
- assertFalse(getStartLog4jServerButton().isEnabled());
- assertTrue(getStopLog4jServerButton().isEnabled());
- sleep(200);
- selectStopLog4jServerButton();
- assertTrue(getStartLog4jServerButton().isEnabled());
- assertFalse(getStopLog4jServerButton().isEnabled());
- }
- }