assertTrue("At least " + expectedTests + " have been run", counter >= expectedTests);
}
public void testTitleBuilding() throws RepositoryException {
final String path = "/foo/title";
final MockNode n = new MockNode(path);
final MockResource r = new MockResource(null, path, null);
assertEquals("foo/title", generator.getTitle(r, n));
n.setProperty("description", "the description");
assertEquals("the description", generator.getTitle(r, n));
n.setProperty("name", "the name");
assertEquals("the name", generator.getTitle(r, n));
n.setProperty("title", "the title");
assertEquals("the title", generator.getTitle(r, n));
}