File: XTagTest.java

package info (click to toggle)
libxjavadoc-java 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 652 kB
  • ctags: 1,061
  • sloc: java: 6,259; xml: 505; makefile: 11
file content (30 lines) | stat: -rw-r--r-- 704 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (c) 2001-2003 The XDoclet team
 * All rights reserved.
 */
package xjavadoc;

import junit.framework.*;

/**
 * Describe what this class does
 *
 * @author    <a href="mailto:aslak.hellesoy@bekk.no">Aslak Hellesy</a>
 * @created   8. januar 2002
 */
public class XTagTest extends TestCase
{
	/**
	 * Tests XTag.
	 */
	public void testSimpleOne() throws Exception
	{
		String text = "one=\"en\" two=\"to\" fiftysix=\"femti seks\"";
		XTag tag = new XTagFactory().createTag( "test", text, null, -1 );

		assertEquals( "en", tag.getAttributeValue( "one" ) );
		assertEquals( "to", tag.getAttributeValue( "two" ) );
		assertEquals( "femti seks", tag.getAttributeValue( "fiftysix" ) );
	}

}