FileDocCategorySizeDatePackage
GOMNamespaceTest.javaAPI DocApache Lucene 2.1.01641Wed Feb 14 10:45:58 GMT 2007org.apache.lucene.gdata.gom

GOMNamespaceTest

public class GOMNamespaceTest extends TestCase
Testcase for GOMNamespace
author
Simon Willnauer

Fields Summary
Constructors Summary
Methods Summary
public voidtestGOMNamespace()

		try {
			GOMNamespace namespace = new GOMNamespace(null, "a");
			fail("uri is null");
		} catch (IllegalArgumentException e) {
			//
		}
		try {
			new GOMNamespace("a", null);
		} catch (Exception e) {
			fail("unexp. exc");
		}

		GOMNamespace namespace = new GOMNamespace(GOMNamespace.ATOM_NS_URI,
				GOMNamespace.ATOM_NS_PREFIX);
		assertEquals(GOMNamespace.ATOM_NS_PREFIX, namespace
				.getNamespacePrefix());
		assertEquals(GOMNamespace.ATOM_NS_URI, namespace.getNamespaceUri());
		//