1   /*
2    * Copyright (c) 2001-2003 The XDoclet team
3    * All rights reserved.
4    */
5   package xjavadoc;
6   
7   import junit.framework.*;
8   
9   /***
10   * Describe what this class does
11   *
12   * @author    <a href="mailto:aslak.hellesoy@bekk.no">Aslak Hellesøy</a>
13   * @created   8. januar 2002
14   */
15  public class XTagTest extends TestCase
16  {
17  	/***
18  	 * Tests XTag.
19  	 */
20  	public void testSimpleOne() throws Exception
21  	{
22  		String text = "one=\"en\" two=\"to\" fiftysix=\"femti seks\"";
23  		XTag tag = new XTagFactory().createTag( "test", text, null, -1 );
24  
25  		assertEquals( "en", tag.getAttributeValue( "one" ) );
26  		assertEquals( "to", tag.getAttributeValue( "two" ) );
27  		assertEquals( "femti seks", tag.getAttributeValue( "fiftysix" ) );
28  	}
29  
30  }