1   /* ===================================================================
2    * Copyright 2002-05 SRI International.
3    * Released under the MOZILLA PUBLIC LICENSE Version 1.1
4    * which can be obtained at http://www.mozilla.org/MPL/MPL-1.1.html
5    * This software is distributed on an "AS IS"
6    * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
7    * See the License for the specific language governing rights and
8    * limitations under the License.
9    * =================================================================== */
10  package com.sri.emo.wizard.completion.management;
11  
12  import junit.framework.TestCase;
13  
14  import com.jcorporate.expresso.core.controller.ExpressoResponse;
15  
16  /***
17   * Tests the choose criteria
18   * @author Michael Rimov
19   * @version 1.0
20   * @todo Incomplete test.
21   */
22  public class TestPromptChooseCriteria extends TestCase {
23      final int starwarsId = 4;
24  
25      private NewCompletionFixtureTemplate completionTemplate;
26  
27      protected void setUp() throws Exception {
28          super.setUp();
29          completionTemplate = new NewCompletionFixtureTemplate(PromptChooseCriteria.STATE_NAME, starwarsId);
30      }
31  
32      protected void tearDown() throws Exception {
33          super.tearDown();
34      }
35  
36      public void testHandleRequest() throws Exception {
37          ExpressoResponse response = completionTemplate.invokeController();
38          assertNotNull(response);
39      }
40  
41  }