eng.getGlobalCollections().length );
}
@Test
public void testGlobalCollections() throws Exception {
SuggestionCompletionLoader loader = new SuggestionCompletionLoader();
SuggestionCompletionEngine eng = loader.getSuggestionEngine( "package foo \n global java.util.List ls",
new ArrayList(),
new ArrayList() );
assertNotNull( eng );
assertFalse( loader.hasErrors() );
assertEquals( 1,
eng.getGlobalVariables().length );
assertEquals( "ls",
eng.getGlobalVariables()[0] );