Skip to content

Commit

Permalink
Replace tabs with spaces in new test class
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenWickner committed Sep 12, 2017
1 parent f065cfb commit 55feaf6
Showing 1 changed file with 49 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,65 +34,65 @@
/** UI test for a simple HermeneutiX project workflow. */
public class HmxViewProjectTest extends AbstractScitosUiTest {

/**
* Test of the input view of a newly created HermeneutiX project with the following steps:
* <ol>
* <li>create a new/empty HermeneutiX project,</li>
* <li>enter a single character as origin text,</li>
* <li>trigger "Undo",</li>
* <li>trigger "Redo".</li>
* </ol>
*/
@Test
public void testUndoRedoOnInputView() {
// #1 create a new/empty HermeneutiX project
this.createNewFile(FileType.HMX);
this.projectTree.requireSelection(HmxMessage.PROJECT_UNSAVED.get());
// #2 enter a single character as origin text
final JTextComponentFixture originTextPane = this.frame.textBox("Origin Text Input");
originTextPane.enterText("X");
// #3 trigger "Undo"
final JButtonFixture undoButton = this.getUndoToolBarButton();
final JButtonFixture redoButton = this.getRedoToolBarButton();
redoButton.requireDisabled();
undoButton.requireEnabled().click().requireDisabled();
originTextPane.requireText("");
// #4 trigger "Redo"
redoButton.requireEnabled().click().requireDisabled();
originTextPane.requireText("X");
undoButton.requireEnabled();
}
/**
* Test of the input view of a newly created HermeneutiX project with the following steps:
* <ol>
* <li>create a new/empty HermeneutiX project,</li>
* <li>enter a single character as origin text,</li>
* <li>trigger "Undo",</li>
* <li>trigger "Redo".</li>
* </ol>
*/
@Test
public void testUndoRedoOnInputView() {
// #1 create a new/empty HermeneutiX project
this.createNewFile(FileType.HMX);
this.projectTree.requireSelection(HmxMessage.PROJECT_UNSAVED.get());
// #2 enter a single character as origin text
final JTextComponentFixture originTextPane = this.frame.textBox("Origin Text Input");
originTextPane.enterText("X");
// #3 trigger "Undo"
final JButtonFixture undoButton = this.getUndoToolBarButton();
final JButtonFixture redoButton = this.getRedoToolBarButton();
redoButton.requireDisabled();
undoButton.requireEnabled().click().requireDisabled();
originTextPane.requireText("");
// #4 trigger "Redo"
redoButton.requireEnabled().click().requireDisabled();
originTextPane.requireText("X");
undoButton.requireEnabled();
}

/**
* Test of the analysis view of a newly created HermeneutiX project with the following steps:
* <ol>
* <li>create a new/empty HermeneutiX project,</li>
* <li>enter a single character as origin text,</li>
/**
* Test of the analysis view of a newly created HermeneutiX project with the following steps:
* <ol>
* <li>create a new/empty HermeneutiX project,</li>
* <li>enter a single character as origin text,</li>
* <li>start analysis,</li>
* <li>ignore project info input dialog,</li>
* <li>enter single character as translation for first Proposition,</li>
* <li>enter single character as label for first Proposition,</li>
* <li>trigger "Undo" once,</li>
* <li>trigger "Undo" a second time,</li>
* <li>trigger "Redo" once,</li>
* <li>trigger "Redo" a second time.</li>
* </ol>
*/
@Test
public void testUndoRedoOnAnalysisView() {
// #1 create a new/empty HermeneutiX project
this.createNewFile(FileType.HMX);
this.projectTree.requireSelection(HmxMessage.PROJECT_UNSAVED.get());
// #2 enter a single character as origin text
final JTextComponentFixture originTextPane = this.frame.textBox("Origin Text Input").enterText("X");
* <li>trigger "Undo" once,</li>
* <li>trigger "Undo" a second time,</li>
* <li>trigger "Redo" once,</li>
* <li>trigger "Redo" a second time.</li>
* </ol>
*/
@Test
public void testUndoRedoOnAnalysisView() {
// #1 create a new/empty HermeneutiX project
this.createNewFile(FileType.HMX);
this.projectTree.requireSelection(HmxMessage.PROJECT_UNSAVED.get());
// #2 enter a single character as origin text
final JTextComponentFixture originTextPane = this.frame.textBox("Origin Text Input").enterText("X");
// #3 start analysis
this.getButtonByText(HmxMessage.TEXTINPUT_START_BUTTON).click();
this.getButtonByText(HmxMessage.TEXTINPUT_START_BUTTON).click();
// #4 ignore project info input dialog
this.getButtonByText(Message.CANCEL).click();
// #5 enter single character as translation for first Proposition
this.getSynPropositionTranslationInput(0).enterText("T");
final JButtonFixture undoButton = this.getUndoToolBarButton().requireDisabled();
final JButtonFixture redoButton = this.getRedoToolBarButton().requireDisabled();
final JButtonFixture undoButton = this.getUndoToolBarButton().requireDisabled();
final JButtonFixture redoButton = this.getRedoToolBarButton().requireDisabled();
// #6 enter single character as label for first Proposition
this.getSynPropositionLabelInput(0).enterText("L");
// #7 trigger "Undo" once
Expand Down

0 comments on commit 55feaf6

Please sign in to comment.