Tests a repository import. @throws Exception exception
()
| 49 | * @throws Exception exception |
| 50 | */ |
| 51 | @Test public void repoFile() throws Exception { |
| 52 | // repository files |
| 53 | final IOFile repo = new IOFile(sandbox(), "repo"); |
| 54 | repo.md(); |
| 55 | write(new IOFile(repo, "a.xqm"), "module namespace a='a'; declare function a:a(){()};"); |
| 56 | |
| 57 | try(QueryContext qc = new QueryContext(context)) { |
| 58 | qc.parse("import module namespace a='a'; a:a()", null); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Tests circular dependencies. |