PUB.SymbolRef [] imports = pub.getImportTable(); PUB.SymbolRef imp = imports[0]; assertTrue(imp.progressType == TokenTypes.VARIABLE); assertTrue(imp.symbolName.equals("sharedChar"));   PUB.SymbolRef [] exports = pub.getExportTable(); PUB.SymbolRef exp = exports[0]; assertTrue(exp.progressType == TokenTypes.FRAME); assertTrue(exp.symbolName.equals("myFrame"));
	public void test01() throws Exception {		String relPath = "data/pub/test01.p";		File parseFile = new File(relPath);		PUB pub = new PUB(relPath, parseFile.getCanonicalPath());		pub.build();		pub = new PUB(relPath, parseFile.getCanonicalPath());		assertTrue(pub.load());		String [] fileIndex = pub.getFileIndex();				// Test that file at index 1 matches the include file name that we expect		File iGet = new File(fileIndex[1]);		File iBase = new File("data/pub/test01.i");		assertTrue(iGet.getCanonicalPath().equals(iBase.getCanonicalPath()));		// Test that the file timestamp checking works		long origTime = iBase.lastModified();		iBase.setLastModified(System.currentTimeMillis() + 10000);		assertFalse(pub.load());		iBase.setLastModified(origTime);		assertTrue(pub.load());				// Test that the schema load works		ArrayList tables = new ArrayList();		pub.copySchemaTableLowercaseNamesInto(tables);		assertTrue(tables.size() == 1);		assertTrue(tables.get(0).toString().equals("sports2000.customer"));		ArrayList fields = new ArrayList();		pub.copySchemaFieldLowercaseNamesInto(fields, "sports2000.customer");		assertTrue(fields.size() == 1);		assertTrue(fields.get(0).toString().equals("name"));	}