wizard finished

This commit is contained in:
Solovyev_S
2013-07-01 13:00:02 +04:00
parent 5518a38f16
commit cba364f036
12 changed files with 186 additions and 107 deletions

View File

@@ -156,11 +156,10 @@ public class CalculatorWizardActivityTest {
}
@Test
public void testNextButtonShouldNotBeShownAtTheEnd() throws Exception {
public void testNextButtonShouldBeShownAtTheEnd() throws Exception {
setLastStep();
assertEquals(VISIBLE, activity.getPrevButton().getVisibility());
assertEquals(GONE, activity.getNextButton().getVisibility());
assertEquals(VISIBLE, activity.getFinishButton().getVisibility());
assertEquals(VISIBLE, activity.getNextButton().getVisibility());
}
private void setLastStep() {
@@ -171,7 +170,6 @@ public class CalculatorWizardActivityTest {
public void testPrevButtonShouldNotBeShownAtTheStart() throws Exception {
setFirstStep();
assertEquals(VISIBLE, activity.getNextButton().getVisibility());
assertEquals(GONE, activity.getFinishButton().getVisibility());
assertEquals(GONE, activity.getPrevButton().getVisibility());
}
@@ -182,9 +180,9 @@ public class CalculatorWizardActivityTest {
@Test
public void testShouldSaveLastWizardStateOnPause() throws Exception {
assertNull(Wizards.getLastSavedWizardStepName(activity.getFlow().getName()));
activity.setStep(WizardStep.drag_button_step);
activity.setStep(WizardStep.drag_button);
activity.onPause();
assertEquals(WizardStep.drag_button_step.getName(), Wizards.getLastSavedWizardStepName(activity.getFlow().getName()));
assertEquals(WizardStep.drag_button.getName(), Wizards.getLastSavedWizardStepName(activity.getFlow().getName()));
}
@Test

View File

@@ -115,11 +115,11 @@ public class WizardStepTest {
WizardStep.choose_layout.onNext(layoutFragment);
}
@Config(qualifiers = "large")
/* @Config(qualifiers = "large")
@Test
public void testChooseLayoutShouldBeVisibleForTablet() throws Exception {
assertTrue(WizardStep.choose_layout.isVisible());
}
}*/
@Config(qualifiers = "normal")
@Test