1 package com.sri.emo.wizard.completion.management; 2 3 import com.sri.emo.wizard.completion.model.CompletionBean; 4 import com.sri.emo.wizard.completion.persistence.CompletionDBObjConverterImpl; 5 import com.sri.emo.wizard.completion.persistence.ExpressoCompletionRepository; 6 7 8 /*** 9 * Template for a test fixture for existing completion wizards. 10 * @see com.sri.emo.wizard.completion.NewCompletionFixtureTemplate 11 * @author Michael Rimov 12 * @version 1.0 13 */ 14 public class ExistingWizardFixtureTemplate extends BaseCompletionFixtureTemplate { 15 16 private int completionWizard; 17 18 19 20 public ExistingWizardFixtureTemplate(String controllerState, int completionWizardID) { 21 super(controllerState); 22 completionWizard = completionWizardID; 23 } 24 25 protected void setUp() throws Exception { 26 super.setUp(); 27 28 ExpressoCompletionRepository completion = new ExpressoCompletionRepository(new CompletionDBObjConverterImpl()); 29 CompletionBean beanToCompareTo = completion.findById(completionWizard); 30 this.setCompletionBean(beanToCompareTo); 31 32 } 33 34 protected void tearDown() throws Exception { 35 super.tearDown(); 36 } 37 38 }