harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r480311 [2/3] - in /harmony/enhanced/classlib/trunk: modules/swing/make/ modules/swing/src/main/java/common/javax/swing/text/html/parser/ modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/parser/ support...
Date Wed, 29 Nov 2006 01:05:32 GMT
Added: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java?view=auto&rev=480311
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java Tue Nov 28 17:05:31 2006
@@ -0,0 +1,4580 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/**
+ * @author Hugo Beilis
+ * @author Leonardo Soler
+ * @author Gabriel Miretti
+ * @version 1.0
+ */
+package org.apache.harmony.swing.tests.javax.swing.text.parser;
+
+import java.util.BitSet;
+import java.util.Vector;
+
+import javax.swing.text.html.parser.AttributeList;
+import javax.swing.text.html.parser.ContentModel;
+import javax.swing.text.html.parser.DTD;
+import javax.swing.text.html.parser.Element;
+
+import junit.framework.AssertionFailedError;
+import junit.framework.TestCase;
+
+import javax.swing.text.parser.utils.DTDGetter;
+
+public class ContentModelCompatilityTest extends TestCase {
+    DTD dtd;
+
+    ContentModel cm;
+
+
+    protected void setUp() throws Exception {
+        super.setUp();
+    }
+
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel()' Verifies that
+     * an instance is created. Fields content and next are null and type is 0.
+     */
+    public void testContentModel001() {
+        try {
+            cm = new ContentModel();
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(Element)'
+     */
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(Element)' Null is
+     * passed as parameter Verifies that an instance is created. Fields content
+     * and next are null and type is 0.
+     */
+    public void testContentModelElement001() {
+        try {
+            cm = new ContentModel(null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(Element)'*
+     * ContentModel(Element( "elemento",',',false,false,('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1") .
+     * It checks if an instance is created, content is equal to el ,type is 0
+     * and next is null.
+     */
+    public void testContentModelElement003() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(0);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(168);
+            bs2.set(45);
+            AttributeList al = new AttributeList("1");
+            Element el = dtd.defineElement("elemento", ',', false, false, cm2,
+                    bs1, bs2, al);
+            cm = new ContentModel(el);
+            assertNotNull(cm);
+            assertEquals(el, cm.content);
+            assertEquals(cm2, el.content);
+            assertEquals(el, cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(Element)'*
+     * ContentModel(Element( "",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)) . It checks if an instance is created,
+     * content is equal to el ,type is 0 and next is null.
+     */
+    public void testContentModelElement004() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(128);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(7);
+            AttributeList al = new AttributeList("bigC", -2147483648, -1,
+                    "value", new Vector(), new AttributeList(null));
+            Element el = dtd.defineElement("", '*', true, false, cm2, bs1, bs2,
+                    al);
+            cm = new ContentModel(el);
+            assertNotNull(cm);
+            assertEquals(el, cm.content);
+            assertEquals(cm2, el.content);
+            assertEquals(el, cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(Element)'*
+     * ContentModel(Element( "1",0,true,true,null,null,null,null . It checks if
+     * an instance is created, content is equal to el ,type is 0 and next is
+     * null.
+     */
+    public void testContentModelElement005() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            Element el = dtd.defineElement("1", 0, true, true, null, null,
+                    null, null);
+            cm = new ContentModel(el);
+            assertNotNull(cm);
+            assertEquals(el, cm.content);
+            assertNull(el.content);
+            assertEquals(el, cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)'
+     */
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=0, ContentModel() Verifies that an
+     * instance is created. content is equal to new ContentModel(), type is 0
+     * and next is null
+     */
+    public void testContentModelIntContentModel001() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(0, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, ContentModel() Verifies
+     * that an instance is created. content is equal to ContentModel(), type is
+     * Integer.MIN_VALUE and next is null
+     */
+    public void testContentModelIntContentModel002() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(Integer.MIN_VALUE, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(Integer.MIN_VALUE, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE, ContentModel() Verifies
+     * that an instance is created. content is equal to ContentModel(), type is
+     * Integer.MAX_VALUE and next is null
+     */
+    public void testContentModelIntContentModel003() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(Integer.MAX_VALUE, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(Integer.MAX_VALUE, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=42, ContentModel() Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 42 and
+     * next is null
+     */
+    public void testContentModelIntContentModel004() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(42, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(42, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=43, ContentModel() Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 43 and
+     * next is null
+     */
+    public void testContentModelIntContentModel005() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(43, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(43, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=44, ContentModel() Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 44 and
+     * next is null
+     */
+    public void testContentModelIntContentModel006() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(44, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(44, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=63, ContentModel() Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 63 and
+     * next is null
+     */
+    public void testContentModelIntContentModel007() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(63, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(63, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=124, ContentModel() Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 124 and
+     * next is null
+     */
+    public void testContentModelIntContentModel008() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(124, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(124, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=38, ContentModel() Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 38 and
+     * next is null
+     */
+    public void testContentModelIntContentModel009() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(38, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(38, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=0, null Verifies that an instance is
+     * created. content is equal to null, type is 0 and next is null
+     */
+    public void testContentModelIntContentModel010() {
+        try {
+            cm = new ContentModel(0, null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, null Verifies that an
+     * instance is created. content is equal to null, type is Integer.MIN_VALUE
+     * and next is null
+     */
+    public void testContentModelIntContentModel011() {
+        try {
+            cm = new ContentModel(Integer.MIN_VALUE, null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(Integer.MIN_VALUE, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE, null Verifies that an
+     * instance is created. content is equal to null, type is Integer.MAX_VALUE
+     * and next is null
+     */
+    public void testContentModelIntContentModel012() {
+        try {
+            cm = new ContentModel(Integer.MAX_VALUE, null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(Integer.MAX_VALUE, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=42, null Verifies that an instance is
+     * created. content is equal to null, type is 42 and next is null
+     */
+    public void testContentModelIntContentModel013() {
+        try {
+            cm = new ContentModel(42, null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(42, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=43, null Verifies that an instance is
+     * created. content is equal to null, type is 43 and next is null
+     */
+    public void testContentModelIntContentModel014() {
+        try {
+            cm = new ContentModel(43, null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(43, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=44, null Verifies that an instance is
+     * created. content is equal to null, type is 44 and next is null
+     */
+    public void testContentModelIntContentModel015() {
+        try {
+            cm = new ContentModel(44, null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(44, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=63, null Verifies that an instance is
+     * created. content is equal to null, type is 63 and next is null
+     */
+    public void testContentModelIntContentModel016() {
+        try {
+            cm = new ContentModel(63, null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(63, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=124, null Verifies that an instance is
+     * created. content is equal to null, type is 124 and next is null
+     */
+    public void testContentModelIntContentModel017() {
+        try {
+            cm = new ContentModel(124, null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(124, cm.type);
+            assertNull(cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=38, null Verifies that an instance is
+     * created. content is equal to null, type is 38 and next is null
+     */
+    public void testContentModelIntContentModel018() {
+        try {
+            cm = new ContentModel(38, null);
+            assertNotNull(cm);
+            assertNull(cm.content);
+            assertEquals(38, cm.type);
+            assertNull(cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=0, ContentModel(0,ContentModel()) Verifies
+     * that an instance is created. content is equal to
+     * ContentModel(0,ContentModel()), type is 0 and next is null
+     */
+    public void testContentModelIntContentModel028() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            ContentModel cm3 = new ContentModel(0, cm2);
+            cm = new ContentModel(0, cm3);
+            assertNotNull(cm);
+            assertEquals(cm3, cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE,
+     * ContentModel(Integer.MAX_VALUE,ContentModel()) Verifies that an instance
+     * is created. content is equal to
+     * ContentModel(Integer.MAX_VALUE,ContentModel()), type is Integer.MIN_VALUE
+     * and next is null
+     */
+    public void testContentModelIntContentModel029() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            ContentModel cm3 = new ContentModel(Integer.MAX_VALUE, cm2);
+            cm = new ContentModel(Integer.MIN_VALUE, cm3);
+            assertNotNull(cm);
+            assertEquals(cm3, cm.content);
+            assertEquals(Integer.MIN_VALUE, cm.type);
+            assertNull(cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE,
+     * ContentModel(Integer.MIN_VALUE,ContentModel()) Verifies that an instance
+     * is created. content is equal to
+     * ContentModel(Integer.MIN_VALUE,ContentModel()), type is Integer.MAX_VALUE
+     * and next is null
+     */
+    public void testContentModelIntContentModel030() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            ContentModel cm3 = new ContentModel(Integer.MIN_VALUE, cm2);
+            cm = new ContentModel(Integer.MAX_VALUE, cm3);
+            assertNotNull(cm);
+            assertEquals(cm3, cm.content);
+            assertEquals(Integer.MAX_VALUE, cm.type);
+            assertNull(cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=42, ContentModel(42,null) Verifies that an
+     * instance is created. content is equal to ContentModel(42,null), type is
+     * 42 and next is null
+     */
+    public void testContentModelIntContentModel031() {
+        try {
+            ContentModel cm2 = new ContentModel(42, null);
+            cm = new ContentModel(42, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(42, cm.type);
+            assertNull(cm.next);
+        }
+
+        catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' Parameters type=43, ContentModel(42,null) Verifies that an
+     * instance is created. content is equal to ContentModel(42,null), type is
+     * 43 and next is null
+     */
+    public void testContentModelIntContentModel032() {
+        try {
+            ContentModel cm2 = new ContentModel(42, null);
+            cm = new ContentModel(43, cm2);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(43, cm.type);
+            assertNull(cm.next);
+        }
+
+        catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' ContentModel(Element( "elemento",',',false,false,('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1") .
+     * It checks if an instance is created, content is equal to el ,type is 0
+     * and next is null.
+     */
+    public void testContentModelIntContentModel034() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(0);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(168);
+            bs2.set(45);
+            AttributeList al = new AttributeList("1");
+            Element el = dtd.defineElement("elemento", ',', false, false, cm2,
+                    bs1, bs2, al);
+            cm2 = new ContentModel(el);
+            ContentModel cm = new ContentModel(0, cm2);
+            assertNotNull(cm);
+
+            assertEquals(cm2, cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' ContentModel(Element( "",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)) . It checks if an instance is created,
+     * content is equal to el ,type is 0 and next is null.
+     */
+    public void testContentModelIntContentModel035() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(128);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(7);
+            AttributeList al = new AttributeList("bigC", -2147483648, -1,
+                    "value", new Vector(), new AttributeList(null));
+            Element el = dtd.defineElement("", '*', true, false, cm2, bs1, bs2,
+                    al);
+            cm2 = new ContentModel(el);
+            ContentModel cm = new ContentModel(43, cm2);
+            assertNotNull(cm);
+
+            assertEquals(cm2, cm.content);
+            assertEquals(43, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
+     * ContentModel)' ContentModel(Element( "1",0,true,true,null,null,null,null ,
+     * and a contentmodel is created. Then ContentModel(0,contentmodel) is
+     * instanciated It checks if an instance is created, content is equal to el
+     * ,type is 0 and next is null.
+     */
+    public void testContentModelIntContentModel036() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            Element el = dtd.defineElement("1", 0, true, true, null, null,
+                    null, null);
+            cm = new ContentModel(el);
+            ContentModel cm2 = new ContentModel(0, cm);
+            assertNotNull(cm2);
+
+            assertEquals(cm, cm2.content);
+            assertEquals(0, cm2.type);
+            assertNull(cm2.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)'
+     */
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0, ContentModel(), null Verifies that an
+     * instance is created. content is equal to new ContentModel(), type is 0
+     * and next is null
+     */
+    public void testContentModelIntObjectContentModel001() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(0, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(0, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, ContentModel(), null
+     * Verifies that an instance is created. content is equal to ContentModel(),
+     * type is Integer.MIN_VALUE and next is null
+     */
+    public void testContentModelIntObjectContentModel002() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(Integer.MIN_VALUE, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(Integer.MIN_VALUE, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE, ContentModel(), null
+     * Verifies that an instance is created. content is equal to ContentModel(),
+     * type is Integer.MAX_VALUE and next is null
+     */
+    public void testContentModelIntObjectContentModel003() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(Integer.MAX_VALUE, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(Integer.MAX_VALUE, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=42, ContentModel(), null Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 42 and
+     * next is null
+     */
+    public void testContentModelIntObjectContentModel004() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(42, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(42, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=43, ContentModel(), null Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 43 and
+     * next is null
+     */
+
+    public void testContentModelIntObjectContentModel005() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(43, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(43, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=44, ContentModel(), null Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 44 and
+     * next is null
+     */
+    public void testContentModelIntObjectContentModel006() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(44, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(44, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=63, ContentModel(), null Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 63 and
+     * next is null
+     */
+    public void testContentModelIntObjectContentModel007() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(63, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(63, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=124, ContentModel(), null Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 124 and
+     * next is null
+     */
+    public void testContentModelIntObjectContentModel008() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(124, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(124, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=38, ContentModel(), null Verifies that an
+     * instance is created. content is equal to ContentModel(), type is 38 and
+     * next is null
+     */
+    public void testContentModelIntObjectContentModel009() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(38, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(38, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0, null, null Verifies that an instance is
+     * created. content is equal to null, type is 0 and next is null
+     */
+    public void testContentModelIntObjectContentModel010() {
+        cm = new ContentModel(0, null, null);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(0, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, null, null Verifies
+     * that an instance is created. content is equal to null, type is
+     * Integer.MIN_VALUE and next is null
+     */
+    public void testContentModelIntObjectContentModel011() {
+        cm = new ContentModel(Integer.MIN_VALUE, null, null);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(Integer.MIN_VALUE, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE, null, null Verifies
+     * that an instance is created. content is equal to null, type is
+     * Integer.MAX_VALUE and next is null
+     */
+    public void testContentModelIntObjectContentModel012() {
+        cm = new ContentModel(Integer.MAX_VALUE, null, null);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(Integer.MAX_VALUE, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=42, null, null Verifies that an instance
+     * is created. content is equal to null, type is 42 and next is null
+     */
+    public void testContentModelIntObjectContentModel013() {
+        cm = new ContentModel(42, null, null);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(42, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=43, null, null Verifies that an instance
+     * is created. content is equal to null, type is 43 and next is null
+     */
+    public void testContentModelIntObjectContentModel014() {
+        cm = new ContentModel(43, null, null);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(43, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=44, null, null Verifies that an instance
+     * is created. content is equal to null, type is 44 and next is null
+     */
+    public void testContentModelIntObjectContentModel015() {
+        cm = new ContentModel(44, null, null);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(44, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=63, null, null Verifies that an instance
+     * is created. content is equal to null, type is 63 and next is null
+     */
+    public void testContentModelIntObjectContentModel016() {
+        cm = new ContentModel(63, null, null);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(63, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=124, null, null Verifies that an instance
+     * is created. content is equal to null, type is 124 and next is null
+     */
+    public void testContentModelIntObjectContentModel017() {
+        cm = new ContentModel(124, null, null);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(124, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=38, null, null Verifies that an instance
+     * is created. content is equal to null, type is 38 and next is null
+     */
+    public void testContentModelIntObjectContentModel018() {
+        cm = new ContentModel(38, null, null);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(38, cm.type);
+        assertNull(cm.next);
+    }
+
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0, ContentModel(0,ContentModel()),null
+     * Verifies that an instance is created. content is equal to
+     * ContentModel(0,ContentModel()), type is 0 and next is null
+     */
+    public void testContentModelIntObjectContentModel028() {
+        ContentModel cm2 = new ContentModel();
+        ContentModel cm3 = new ContentModel(0, cm2);
+        cm = new ContentModel(0, cm3, null);
+        assertNotNull(cm);
+        assertEquals(cm3, cm.content);
+        assertEquals(0, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE,
+     * ContentModel(Integer.MAX_VALUE,ContentModel()),null Verifies that an
+     * instance is created. content is equal to
+     * ContentModel(Integer.MAX_VALUE,ContentModel()), type is Integer.MIN_VALUE
+     * and next is null
+     */
+    public void testContentModelIntObjectContentModel029() {
+        ContentModel cm2 = new ContentModel();
+        ContentModel cm3 = new ContentModel(Integer.MAX_VALUE, cm2);
+        cm = new ContentModel(Integer.MIN_VALUE, cm3, null);
+        assertNotNull(cm);
+        assertEquals(cm3, cm.content);
+        assertEquals(Integer.MIN_VALUE, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE,
+     * ContentModel(Integer.MIN_VALUE,ContentModel()),null Verifies that an
+     * instance is created. content is equal to
+     * ContentModel(Integer.MIN_VALUE,ContentModel()), type is Integer.MAX_VALUE
+     * and next is null
+     */
+    public void testContentModelIntObjectContentModel030() {
+        ContentModel cm2 = new ContentModel();
+        ContentModel cm3 = new ContentModel(Integer.MIN_VALUE, cm2);
+        cm = new ContentModel(Integer.MAX_VALUE, cm3, null);
+        assertNotNull(cm);
+        assertEquals(cm3, cm.content);
+        assertEquals(Integer.MAX_VALUE, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=42, ContentModel(42,null),null Verifies
+     * that an instance is created. content is equal to ContentModel(42,null),
+     * type is 42 and next is null
+     */
+    public void testContentModelIntObjectContentModel031() {
+        ContentModel cm2 = new ContentModel(42, null);
+        cm = new ContentModel(42, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(42, cm.type);
+        assertNull(cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=43, ContentModel(42,null),null Verifies
+     * that an instance is created. content is equal to ContentModel(42,null),
+     * type is 43 and next is null
+     */
+    public void testContentModelIntObjectContentModel032() {
+        ContentModel cm2 = new ContentModel(42, null);
+        cm = new ContentModel(43, cm2, null);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(43, cm.type);
+        assertNull(cm.next);
+    }
+
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0, ContentModel(), ContentModel() Verifies
+     * that an instance is created. content is equal to new ContentModel(), type
+     * is 0 and next is ContentModel()
+     */
+    public void testContentModelIntObjectContentModel034() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(0, cm2, cm2);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(0, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, ContentModel(),
+     * ContentModel() Verifies that an instance is created. content is equal to
+     * ContentModel(), type is Integer.MIN_VALUE and next is null
+     */
+    public void testContentModelIntObjectContentModel035() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(Integer.MIN_VALUE, cm2, cm2);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(Integer.MIN_VALUE, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE, ContentModel(),
+     * ContentModel() Verifies that an instance is created. content is equal to
+     * ContentModel(), type is Integer.MAX_VALUE and next is ContentModel()
+     */
+    public void testContentModelIntObjectContentModel036() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(Integer.MAX_VALUE, cm2, cm2);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(Integer.MAX_VALUE, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=42, ContentModel(), ContentModel()
+     * Verifies that an instance is created. content is equal to ContentModel(),
+     * type is 42 and next is ContentModel()
+     */
+    public void testContentModelIntObjectContentModel037() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(42, cm2, cm2);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(42, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=43, ContentModel(), ContentModel()
+     * Verifies that an instance is created. content is equal to ContentModel(),
+     * type is 43 and next is ContentModel()
+     */
+    public void testContentModelIntObjectContentModel038() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(43, cm2, cm2);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(43, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=44, ContentModel(), ContentModel()
+     * Verifies that an instance is created. content is equal to ContentModel(),
+     * type is 44 and next is ContentModel()
+     */
+    public void testContentModelIntObjectContentModel039() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(44, cm2, cm2);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(44, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=63, ContentModel(), ContentModel()
+     * Verifies that an instance is created. content is equal to ContentModel(),
+     * type is 63 and next is ContentModel()
+     */
+    public void testContentModelIntObjectContentModel040() {
+        ContentModel cm2 = new ContentModel();
+        cm = new ContentModel(63, cm2, cm2);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(63, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=124, ContentModel(), ContentModel()
+     * Verifies that an instance is created. content is equal to ContentModel(),
+     * type is 124 and next is ContentModel()
+     */
+    public void testContentModelIntObjectContentModel041() {
+        ContentModel cm2 = new ContentModel();
+        ContentModel cm4 = new ContentModel();
+        cm = new ContentModel(124, cm2, cm4);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(124, cm.type);
+        assertEquals(cm4, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=38, ContentModel(), ContentModel()
+     * Verifies that an instance is created. content is equal to ContentModel(),
+     * type is 38 and next is ContentModel()
+     */
+    public void testContentModelIntObjectContentModel042() {
+        ContentModel cm2 = new ContentModel();
+        ContentModel cm4 = new ContentModel();
+        cm = new ContentModel(38, cm2, cm4);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(38, cm.type);
+        assertEquals(cm4, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=38, new DTDGetter("hi"), null Verifies that
+     * an instance is created. content is equal to new DTDGetter("hi"), type is 38
+     * and next is null
+     */
+    public void testContentModelIntObjectContentModel043() {
+        try {
+            dtd = new DTDGetter("hi");
+            cm = new ContentModel(38, dtd, null);
+            assertNotNull(cm);
+            assertNull(cm.next);
+            assertEquals(38, cm.type);
+            assertEquals(dtd, cm.content);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=-38, (element is defined in a dtd as el=
+     * "elemento",',',false,false,('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1")),
+     * null Verifies that an instance is created. content is equal to element,
+     * type is -38 and next is null
+     */
+    public void testContentModelIntObjectContentModel045() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(0);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(168);
+            bs2.set(45);
+            AttributeList al = new AttributeList("1");
+            Element el = dtd.defineElement("elemento", ',', false, false, cm2,
+                    bs1, bs2, al);
+            cm = new ContentModel(-38, el, null);
+            assertNotNull(cm);
+            assertEquals(el, cm.content);
+            assertEquals(-38, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0,
+     * ContentModel(Element:"elemento",',',false,false,('*',new
+     * ContentModel('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1")),
+     * null Verifies that an instance is created. content is equal to null, type
+     * is 0 and next is null
+     */
+    public void testContentModelIntObjectContentModel046() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(3);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(168);
+            bs2.set(45);
+            AttributeList al = new AttributeList("1");
+            Element el = dtd.defineElement("elemento", '.', false, false, cm2,
+                    bs1, bs2, al);
+            cm2 = new ContentModel(el);
+            cm = new ContentModel(0, cm2, null);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, el=
+     * "",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)), null Verifies that an instance is
+     * created. content is equal to el= "",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)), type is Integer.MIN_VALUE and next is
+     * null
+     */
+    public void testContentModelIntObjectContentModel047() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(128);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(7);
+            AttributeList al = new AttributeList("bigC", -2147483648, -1,
+                    "value", new Vector(), new AttributeList(null));
+            Element el = dtd.defineElement("", '*', true, false, cm2, bs1, bs2,
+                    al);
+            cm = new ContentModel(Integer.MIN_VALUE, el, null);
+            assertNotNull(cm);
+            assertEquals(el, cm.content);
+            assertEquals(Integer.MIN_VALUE, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE,
+     * Element("1",0,true,true,null,null,null,null), null Verifies that an
+     * instance is created. content is equal to
+     * Element("1",0,true,true,null,null,null,null), type is Integer.MAX_VALUE
+     * and next is null
+     */
+    public void testContentModelIntObjectContentModel048() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            Element el = dtd.defineElement("1", 0, true, true, null, null,
+                    null, null);
+            cm = new ContentModel(Integer.MAX_VALUE, el, null);
+            assertNotNull(cm);
+            assertEquals(el, cm.content);
+            assertEquals(Integer.MAX_VALUE, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=42, ContentModel(
+     * "elemento",',',false,false,('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1")),
+     * null Verifies that an instance is created. content is equal to
+     * ContentModel(("elemento",',',false,false,cm2,bs1,bs2,al)), type is 42 and
+     * next is null
+     */
+    public void testContentModelIntObjectContentModel049() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(0);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(168);
+            bs2.set(45);
+            AttributeList al = new AttributeList("1");
+            Element el = dtd.defineElement("elemento", ',', false, false, cm2,
+                    bs1, bs2, al);
+            cm2 = new ContentModel(el);
+
+            cm = new ContentModel(42, cm2, null);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(42, cm.type);
+            assertNull(cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0,
+     * ContentModel("",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new
+     * AttributeList(null))),ContentModel("",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null))) Verifies that an instance is created.
+     * content is equal to ContentModel(("",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)))), type is 0 and next is
+     * ("",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)))
+     */
+    public void testContentModelIntObjectContentModel050() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(128);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(7);
+            AttributeList al = new AttributeList("bigC", -2147483648, -1,
+                    "value", new Vector(), new AttributeList(null));
+            Element el = dtd.defineElement("", '*', true, false, cm2, bs1, bs2,
+                    al);
+            cm2 = new ContentModel(el);
+            cm = new ContentModel(0, cm2, null);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(0, cm.type);
+            assertNull(cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, ContentModel(el=
+     * "elemento",',',false,false,('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1"),null
+     * Verifies that an instance is created. content is equal to
+     * ContentModel(DTD.elements), type is Integer.MIN_VALUE and next is null
+     */
+
+    public void testContentModelIntObjectContentModel051() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            Element el = dtd.defineElement("1", 0, true, true, null, null,
+                    null, null);
+            cm = new ContentModel(el);
+            ContentModel cm2 = new ContentModel(0, cm);
+            cm = new ContentModel(Integer.MIN_VALUE, cm2, null);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(Integer.MIN_VALUE, cm.type);
+            assertNull(cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0, null, ContentModel() Verifies that an
+     * instance is created. content is equal to null, type is 0 and next is
+     * ContentModel()
+     */
+    public void testContentModelIntObjectContentModel052() {
+        ContentModel cmnext = new ContentModel();
+        cm = new ContentModel(0, null, cmnext);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(0, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, null, ContentModel()
+     * Verifies that an instance is created. content is equal to null, type is
+     * Integer.MIN_VALUE and next is ContentModel()
+     */
+    public void testContentModelIntObjectContentModel053() {
+        ContentModel cmnext = new ContentModel();
+        cm = new ContentModel(Integer.MIN_VALUE, null, cmnext);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(Integer.MIN_VALUE, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE, null, new
+     * ContentModel() Verifies that an instance is created. content is equal to
+     * null, type is Integer.MAX_VALUE and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel054() {
+        ContentModel cmnext = new ContentModel();
+        cm = new ContentModel(Integer.MAX_VALUE, null, cmnext);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(Integer.MAX_VALUE, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=42, null, null Verifies that an instance
+     * is created. content is equal to null, type is 42 and next is new
+     * ContentModel()
+     */
+    public void testContentModelIntObjectContentModel055() {
+        ContentModel cmnext = new ContentModel();
+        cm = new ContentModel(42, null, cmnext);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(42, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=43, null, null Verifies that an instance
+     * is created. content is equal to null, type is 43 and next is new
+     * ContentModel()
+     */
+    public void testContentModelIntObjectContentModel056() {
+        ContentModel cmnext = new ContentModel();
+        cm = new ContentModel(43, null, cmnext);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(43, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=44, null, null Verifies that an instance
+     * is created. content is equal to null, type is 44 and next is new
+     * ContentModel()
+     */
+    public void testContentModelIntObjectContentModel057() {
+        ContentModel cmnext = new ContentModel();
+        cm = new ContentModel(44, null, cmnext);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(44, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=63, null, null Verifies that an instance
+     * is created. content is equal to null, type is 63 and next is new
+     * ContentModel()
+     */
+    public void testContentModelIntObjectContentModel058() {
+        ContentModel cmnext = new ContentModel();
+        cm = new ContentModel(63, null, cmnext);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(63, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=124, null, null Verifies that an instance
+     * is created. content is equal to null, type is 124 and next is new
+     * ContentModel()
+     */
+    public void testContentModelIntObjectContentModel059() {
+        ContentModel cmnext = new ContentModel();
+        cm = new ContentModel(124, null, cmnext);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(124, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=38, null, null Verifies that an instance
+     * is created. content is equal to null, type is 38 and next is new
+     * ContentModel()
+     */
+    public void testContentModelIntObjectContentModel060() {
+        ContentModel cmnext = new ContentModel();
+        cm = new ContentModel(38, null, cmnext);
+        assertNotNull(cm);
+        assertNull(cm.content);
+        assertEquals(38, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0, ContentModel(0,ContentModel()),new
+     * ContentModel() Verifies that an instance is created. content is equal to
+     * ContentModel(0,ContentModel()), type is 0 and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel070() {
+
+        ContentModel cm2 = new ContentModel();
+        ContentModel cm3 = new ContentModel(0, cm2);
+        cm = new ContentModel(0, cm3, cm2);
+        assertNotNull(cm);
+        assertEquals(cm3, cm.content);
+        assertEquals(0, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE,
+     * ContentModel(Integer.MAX_VALUE,ContentModel()),new ContentModel()
+     * Verifies that an instance is created. content is equal to
+     * ContentModel(Integer.MAX_VALUE,ContentModel()), type is Integer.MIN_VALUE
+     * and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel071() {
+        ContentModel cm2 = new ContentModel();
+        ContentModel cm3 = new ContentModel(Integer.MAX_VALUE, cm2);
+        cm = new ContentModel(Integer.MIN_VALUE, cm3, cm2);
+        assertNotNull(cm);
+        assertEquals(cm3, cm.content);
+        assertEquals(Integer.MIN_VALUE, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE,
+     * ContentModel(Integer.MIN_VALUE,ContentModel()),new ContentModel()
+     * Verifies that an instance is created. content is equal to
+     * ContentModel(Integer.MIN_VALUE,ContentModel()), type is Integer.MAX_VALUE
+     * and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel072() {
+        ContentModel cm2 = new ContentModel();
+        ContentModel cm3 = new ContentModel(Integer.MIN_VALUE, cm2);
+        cm = new ContentModel(Integer.MAX_VALUE, cm3, cm2);
+        assertNotNull(cm);
+        assertEquals(cm3, cm.content);
+        assertEquals(Integer.MAX_VALUE, cm.type);
+        assertEquals(cm2, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=42, ContentModel(42,null),new
+     * ContentModel() Verifies that an instance is created. content is equal to
+     * ContentModel(42,null), type is 42 and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel073() {
+        ContentModel cmnext = new ContentModel();
+        ContentModel cm2 = new ContentModel(42, cmnext);
+        cm = new ContentModel(42, cm2, cmnext);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(42, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=43, ContentModel(42,null),new
+     * ContentModel() Verifies that an instance is created. content is equal to
+     * ContentModel(42,null), type is 43 and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel074() {
+        ContentModel cmnext = new ContentModel();
+        ContentModel cm2 = new ContentModel(42, cmnext);
+        cm = new ContentModel(43, cm2, cmnext);
+        assertNotNull(cm);
+        assertEquals(cm2, cm.content);
+        assertEquals(43, cm.type);
+        assertEquals(cmnext, cm.next);
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=38, new DTDGetter("hi"), new ContentModel()
+     * Verifies that an instance is created. content is equal to
+     * new DTDGetter("hi"), type is 38 and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel076() {
+        try {
+            ContentModel cmnext = new ContentModel();
+            dtd = new DTDGetter("hi");
+            cm = new ContentModel(38, dtd, cmnext);
+            assertNotNull(cm);
+            assertEquals(cmnext, cm.next);
+            assertEquals(38, cm.type);
+            assertEquals(dtd, cm.content);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0,
+     * ContentModel(Element:"elemento",',',false,false,('*',new
+     * ContentModel('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1")),
+     * new ContentModel() Verifies that an instance is created. content is equal
+     * to null, type is 0 and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel079() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cmnext = new ContentModel();
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(0);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(168);
+            bs2.set(45);
+            AttributeList al = new AttributeList("1");
+            Element el = dtd.defineElement("elemento", ',', false, false, cm2,
+                    bs1, bs2, al);
+            cm2 = new ContentModel(el);
+            cm = new ContentModel(0, cm2, cmnext);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(0, cm.type);
+            assertEquals(cmnext, cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, el=
+     * "",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)), new ContentModel() Verifies that an
+     * instance is created. content is equal to el= "",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)), type is Integer.MIN_VALUE and next is
+     * new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel080() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cmnext = new ContentModel();
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(128);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(7);
+            AttributeList al = new AttributeList("bigC", -2147483648, -1,
+                    "value", new Vector(), new AttributeList(null));
+            Element el = dtd.defineElement("", '*', true, false, cm2, bs1, bs2,
+                    al);
+            cm = new ContentModel(Integer.MIN_VALUE, el, cmnext);
+            assertNotNull(cm);
+            assertEquals(el, cm.content);
+            assertEquals(Integer.MIN_VALUE, cm.type);
+            assertEquals(cmnext, cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE,
+     * Element("1",0,true,true,null,null,null,null), new ContentModel() Verifies
+     * that an instance is created. content is equal to
+     * Element("1",0,true,true,null,null,null,null), type is Integer.MAX_VALUE
+     * and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel081() {
+        try {
+            ContentModel cmnext = new ContentModel();
+            dtd = new DTDGetter("TestContentModelSemantic");
+            Element el = dtd.defineElement("1", 0, true, true, null, null,
+                    null, null);
+            cm = new ContentModel(Integer.MAX_VALUE, el, cmnext);
+            assertNotNull(cm);
+            assertEquals(el, cm.content);
+            assertEquals(Integer.MAX_VALUE, cm.type);
+            assertEquals(cmnext, cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=42, ContentModel(
+     * "elemento",',',false,false,('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1")),
+     * new ContentModel() Verifies that an instance is created. content is equal
+     * to ContentModel(("elemento",',',false,false,cm2,bs1,bs2,al)), type is 42
+     * and next is new ContentModel()
+     */
+    public void testContentModelIntObjectContentModel082() {
+        try {
+            ContentModel cmnext = new ContentModel();
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(0);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(168);
+            bs2.set(45);
+            AttributeList al = new AttributeList("1");
+            Element el = dtd.defineElement("elemento", ',', false, false, cm2,
+                    bs1, bs2, al);
+            cm2 = new ContentModel(el);
+
+            cm = new ContentModel(42, cm2, cmnext);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(42, cm.type);
+            assertEquals(cmnext, cm.next);
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=0,
+     * ContentModel("",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new
+     * AttributeList(null))),ContentModel("",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null))),new ContentModel() Verifies that an
+     * instance is created. content is equal to
+     * ContentModel(("",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)))), type is 0 and next is
+     * ("",',',false,false,('*',new
+     * ContentModel()),BitSet(128).set(1),BitSet(7),AttributeList("bigC",-2147483648,-1,"value",new
+     * Vector(),new AttributeList(null)))
+     */
+    public void testContentModelIntObjectContentModel083() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cmnext = new ContentModel();
+
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(128);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(7);
+            AttributeList al = new AttributeList("bigC", -2147483648, -1,
+                    "value", new Vector(), new AttributeList(null));
+            Element el = dtd.defineElement("", '*', true, false, cm2, bs1, bs2,
+                    al);
+            cm2 = new ContentModel(el);
+            cm = new ContentModel(0, cm2, cmnext);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(0, cm.type);
+            assertEquals(cmnext, cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
+     * ContentModel)' Parameters type=Integer.MIN_VALUE, ContentModel(el=
+     * "elemento",',',false,false,('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1"),new
+     * ContentModel() Verifies that an instance is created. content is equal to
+     * ContentModel(DTD.elements), type is Integer.MIN_VALUE and next is new
+     * ContentModel()
+     */
+
+    public void testContentModelIntObjectContentModel084() {
+        try {
+            ContentModel cmnext = new ContentModel();
+            dtd = new DTDGetter("TestContentModelSemantic");
+            Element el = dtd.defineElement("1", 0, true, true, null, null,
+                    null, null);
+            cm = new ContentModel(el);
+            ContentModel cm2 = new ContentModel(0, cm);
+            cm = new ContentModel(Integer.MIN_VALUE, cm2, cmnext);
+            assertNotNull(cm);
+            assertEquals(cm2, cm.content);
+            assertEquals(Integer.MIN_VALUE, cm.type);
+            assertEquals(cmnext, cm.next);
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * ContentModel() Expected result: NullPointerException
+     */
+    public void testToString001() {
+        try {
+            cm = new ContentModel();
+            cm.toString();
+            fail("Should raise NullPointerException");
+        } catch (NullPointerException e) {
+        } catch (Throwable e) {
+            fail("Should throw NullPointerException, but was raised a: " + e.getClass() + " " + e.getMessage());
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * ContentModel(null) Expected result: NullPointerException
+     */
+    public void testToString002() {
+        try {
+            cm = new ContentModel(null);
+            cm.toString();
+
+            fail("Should raise NullPointerException");
+        } catch (NullPointerException e) {
+        } catch (Throwable e) {
+            fail("Should throw NullPointerException, but was raised a: "  + e.getClass() + " " + e.getMessage());
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * ContentModel(Element("elemento",',',false,false,('*',new
+     * ContentModel()),BitSet(0).set(1),BitSet(168).set(45),AttributeList("1")
+     * Expected: "elemento"
+     */
+    public void testToString004() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(0);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(168);
+            bs2.set(45);
+            AttributeList al = new AttributeList("1");
+            Element el = dtd.defineElement("elemento", ',', false, false, cm2,
+                    bs1, bs2, al);
+            cm = new ContentModel(el);
+
+            assertEquals("elemento", cm.toString());
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * ContentModel(Element("",'*',true,false,cm2,bs1,bs2,al)) ""
+     */
+
+    public void testToString005() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            ContentModel cm2 = new ContentModel('*', new ContentModel());
+            BitSet bs1 = new BitSet(128);
+            bs1.set(1);
+            BitSet bs2 = new BitSet(7);
+            AttributeList al = new AttributeList("bigC", -2147483648, -1,
+                    "value", new Vector(), new AttributeList(null));
+            Element el = dtd.defineElement("", '*', true, false, cm2, bs1, bs2,
+                    al);
+            cm = new ContentModel(el);
+
+            assertEquals("", cm.toString());
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * ContentModel(Element("1",0,true,true,null,null,null,null)) Expected: "1"
+     */
+    public void testToString006() {
+        try {
+            dtd = new DTDGetter("TestContentModelSemantic");
+            Element el = dtd.defineElement("1", 0, true, true, null, null,
+                    null, null);
+            cm = new ContentModel(el);
+
+            assertEquals("1", cm.toString());
+
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * ContentModel(0,cm2) Should throw NullPointerException
+     */
+    public void testToString007() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(0, cm2);
+            cm.toString();
+            fail("Should raise NullPointerException");
+        } catch (NullPointerException e) {
+        } catch (Throwable e) {
+            fail("Should throw NullPointerException, but was raised a: "  + e.getClass() + " " + e.getMessage());
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * Parameters type=Integer.MIN_VALUE, ContentModel() Should throw
+     * NullPointerException
+     */
+    public void testToString008() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(Integer.MIN_VALUE, cm2);
+            cm.toString();
+            fail("Should raise NullPointerException");
+        } catch (NullPointerException e) {
+        } catch (Throwable e) {
+            fail("Should throw NullPointerException, but was raised a: "  + e.getClass() + " " + e.getMessage());
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * Parameters type=Integer.MAX_VALUE, ContentModel() Should throw
+     * NullPointerException
+     */
+    public void testToString009() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(Integer.MAX_VALUE, cm2);
+            cm.toString();
+            fail("Should raise NullPointerException");
+        } catch (NullPointerException e) {
+        } catch (Throwable e) {
+            fail("Should throw NullPointerException, but was raised a: "  + e.getClass() + " " + e.getMessage());
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * Parameters type=42, ContentModel() Should throw NullPointerException
+     */
+    public void testToString010() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            cm = new ContentModel(42, cm2);
+            cm.toString();
+            fail("Should raise NullPointerException");
+        } catch (NullPointerException e) {
+        } catch (Throwable e) {
+            fail("Should throw NullPointerException, but was raised a: "  + e.getClass() + " " + e.getMessage());
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * Parameters type=43, null Expected result is "null+"
+     */
+    public void testToString011() {
+        try {
+            cm = new ContentModel(43, null);
+            assertEquals("null+", cm.toString());
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * Parameters type=44, null Expected result is "()"
+     */
+    public void testToString012() {
+        try {
+            cm = new ContentModel(44, null);
+            assertEquals("()", cm.toString());
+        } catch (Exception e) {
+            fail("Should not throw any exception but was: " + e);
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * Parameters type=0, ContentModel(0,ContentModel()) Should throw
+     * NullPointerException
+     */
+    public void testToString016() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            ContentModel cm3 = new ContentModel(0, cm2);
+            cm = new ContentModel(0, cm3);
+            cm.toString();
+
+            fail("Should raise NullPointerException");
+        } catch (NullPointerException e) {
+        } catch (Throwable e) {
+            fail("Should throw NullPointerException, but was raised a: "  + e.getClass() + " " + e.getMessage());
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * Parameters type=Integer.MIN_VALUE,
+     * ContentModel(Integer.MAX_VALUE,ContentModel()) Should throw
+     * NullPointerException
+     */
+    public void testToString017() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            ContentModel cm3 = new ContentModel(Integer.MAX_VALUE, cm2);
+            cm = new ContentModel(Integer.MIN_VALUE, cm3);
+            cm.toString();
+            fail("Should raise NullPointerException");
+        } catch (NullPointerException e) {
+        } catch (Throwable e) {
+            fail("Should throw NullPointerException, but was raised a: "  + e.getClass() + " " + e.getMessage());
+        }
+    }
+
+    /**
+     * Test method for
+     * 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'l(int,
+     * ContentModel)' Parameters type=Integer.MAX_VALUE,
+     * ContentModel(Integer.MIN_VALUE,ContentModel()) Should throw
+     * NullPointerException
+     */
+    public void testToString018() {
+        try {
+            ContentModel cm2 = new ContentModel();
+            ContentModel cm3 = new ContentModel(Integer.MIN_VALUE, cm2);
+            cm = new ContentModel(Integer.MAX_VALUE, cm3);
+            cm.toString();
+            fail("Should raise NullPointerException");
+        } catch (NullPointerException e) {
+        } catch (Throwable e) {
+            fail("Should throw NullPointerException, but was raised a: "  + e.getClass() + " " + e.getMessage());
+        }
+    }
+
+    /**
+     * Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
+     * Parameters type=42, ContentModel(42,null) Expected result is "null**"
+     */
+    public void testToString019() {
+        try {
+            ContentModel cm2 = new ContentModel(42, null);
+            cm = new ContentModel(42, cm2);
+            assertEquals("null**", cm.toString());
+        }
+
+        catch (Exception e) {

[... 2379 lines stripped ...]


Mime
View raw message