01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /**
18: * @author Evgeniya G. Maenkova
19: * @version $Revision$
20: */package javax.swing.text.html.parser;
21:
22: import junit.framework.TestCase;
23:
24: public class DTDConstantsTest extends TestCase {
25: public void testConstants() {
26: assertEquals(19, DTDConstants.ANY);
27: assertEquals(1, DTDConstants.CDATA);
28: assertEquals(4, DTDConstants.CONREF);
29: assertEquals(3, DTDConstants.CURRENT);
30: assertEquals(131072, DTDConstants.DEFAULT);
31: assertEquals(17, DTDConstants.EMPTY);
32: assertEquals(14, DTDConstants.ENDTAG);
33: assertEquals(3, DTDConstants.ENTITIES);
34: assertEquals(2, DTDConstants.ENTITY);
35: assertEquals(1, DTDConstants.FIXED);
36: assertEquals(65536, DTDConstants.GENERAL);
37: assertEquals(4, DTDConstants.ID);
38: assertEquals(5, DTDConstants.IDREF);
39: assertEquals(6, DTDConstants.IDREFS);
40: assertEquals(5, DTDConstants.IMPLIED);
41: assertEquals(16, DTDConstants.MD);
42: assertEquals(18, DTDConstants.MODEL);
43: assertEquals(15, DTDConstants.MS);
44: assertEquals(7, DTDConstants.NAME);
45: assertEquals(8, DTDConstants.NAMES);
46: assertEquals(9, DTDConstants.NMTOKEN);
47: assertEquals(10, DTDConstants.NMTOKENS);
48: assertEquals(11, DTDConstants.NOTATION);
49: assertEquals(12, DTDConstants.NUMBER);
50: assertEquals(13, DTDConstants.NUMBERS);
51: assertEquals(14, DTDConstants.NUTOKEN);
52: assertEquals(15, DTDConstants.NUTOKENS);
53: assertEquals(262144, DTDConstants.PARAMETER);
54: assertEquals(12, DTDConstants.PI);
55: assertEquals(10, DTDConstants.PUBLIC);
56: assertEquals(16, DTDConstants.RCDATA);
57: assertEquals(2, DTDConstants.REQUIRED);
58: assertEquals(11, DTDConstants.SDATA);
59: assertEquals(13, DTDConstants.STARTTAG);
60: assertEquals(17, DTDConstants.SYSTEM);
61: }
62: }
|