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" ) );
}
}
|