@Test public void testNames_GetNotFound() { Schema.Names names = new Schema.Names("space"); names.put(new Schema.Name("Name", "otherspace"), Schema.create(Type.STRING)); assertNull(names.get("Name")); }
@Test public void testNames_GetWithNullNamespace() { Schema schema = Schema.create(Type.STRING); Schema.Names names = new Schema.Names("space"); names.put(new Schema.Name("Name", ""), schema); assertEquals(schema, names.get(new Schema.Name("Name", ""))); assertEquals(schema, names.get("Name")); }