blob: fe7d7be03ec1e3b578f9a335c7c53a3ff02a67ce [file] [log] [blame]
package org.yaml.snakeyaml;
import junit.framework.TestCase;
import org.yaml.snakeyaml.constructor.ArrayTagsTest.CarWithArray;
public class TypeDescriptionTest extends TestCase {
public void testSetTag() {
TypeDescription descr = new TypeDescription(TypeDescriptionTest.class);
descr.setTag("!bla");
assertEquals("!bla", descr.getTag());
}
public void testToString() {
TypeDescription carDescription = new TypeDescription(CarWithArray.class, "!car");
assertEquals(
"TypeDescription for class org.yaml.snakeyaml.constructor.ArrayTagsTest$CarWithArray (tag='!car')",
carDescription.toString());
}
}