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: TestElementOutputModel.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 TestElementOutputModel extends TestCase {
14: public TestElementOutputModel(String name) {
15: super (name);
16: }
17:
18: public void testInstantiation() {
19: ElementModel elementmodel_instance = null;
20: ElementOutputModel outputmodel_instance = null;
21:
22: try {
23: elementmodel_instance = new ElementModel("elementmodel1");
24: outputmodel_instance = new ElementOutputModel(
25: elementmodel_instance, "outputmodel1");
26: } catch (GuiModelException e) {
27: assertTrue(e.getMessage(), false);
28: }
29:
30: assertTrue(outputmodel_instance != null);
31: assertTrue(outputmodel_instance instanceof ElementOutputModel);
32: }
33: }
|