Exemplo n.º 1
0
  public void testThatAGetAllWithSingleFileReturnsOneSpec() throws Exception {
    DocumentRepository repository = new VFSRepository();
    List<String> listing = repository.listDocuments(tempFile.getName().getURI());

    assertEquals(1, listing.size());
    assertSpecificationLoadedOk(repository.loadDocument(CollectionUtil.first(listing)));
  }
Exemplo n.º 2
0
  public void testThatAGetAllWithDirectoryReturnsMultipleSpecNoRoot() throws Exception {
    DocumentRepository repository = new VFSRepository();
    Collection<String> listing = repository.listDocuments(rootDir.getName().getURI());

    assertEquals(6, listing.size());
  }