assertEquals(null, PackageHeaderHelper.parseHeader(s));
}
public void testRenderTypes() {
Types t = new Types();
t.imports.add(new Import("foo.bar.Baz"));
String h = PackageHeaderHelper.renderTypes(t);
assertNotNull(h);
assertEquals("import foo.bar.Baz", h.trim());
t = PackageHeaderHelper.parseHeader(h);
assertEquals(1, t.imports.size());
Import i = (Import) t.imports.get(0);
assertEquals("foo.bar.Baz", i.type);
t.globals.add(new Global("foo.Bar", "xs"));
t.globals.add(new Global("whee.wah", "tt"));
h = PackageHeaderHelper.renderTypes(t);