public class GrammarTest {
@Test
public void testLoadLocation() throws IOException, JDOMException {
Grammar g = new Grammar("railo3.xml");
assertEquals(0, g.getTagCount());
assertEquals(0, g.getFunctionCount());
assertEquals(0, g.getScopeCount());
assertEquals(0, g.getCFScopeCount());
g.loadLocation();
assertTrue("There should be more than 0 tags loaded now", g.getTagCount() > 0);
assertTrue("There should be more than 0 functions loaded now", g.getFunctionCount() > 0);
assertTrue("There should be more than 0 scopes loaded now", g.getScopeCount() > 0);
assertTrue("There should be more than 0 CFScopes loaded now", g.getCFScopeCount() > 0);
}