01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: TestSubmissionParameterModel.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.gui.model;
09:
10: import com.uwyn.rife.gui.model.exceptions.GuiModelException;
11: import junit.framework.TestCase;
12:
13: public class TestSubmissionParameterModel extends TestCase {
14: public TestSubmissionParameterModel(String name) {
15: super (name);
16: }
17:
18: public void testInstantiation() {
19: ElementModel elementmodel_instance = null;
20: SubmissionModel submissionmodel_instance = null;
21: SubmissionParameterModel parametermodel_instance = null;
22:
23: try {
24: elementmodel_instance = new ElementModel("elementmodel1");
25: submissionmodel_instance = new SubmissionModel(
26: elementmodel_instance, "submissionmodel1");
27: parametermodel_instance = new SubmissionParameterModel(
28: submissionmodel_instance, "parametermodel1");
29: } catch (GuiModelException e) {
30: assertTrue(e.getMessage(), false);
31: }
32:
33: assertTrue(parametermodel_instance != null);
34: assertTrue(parametermodel_instance instanceof SubmissionParameterModel);
35: }
36: }
|