RepositoryFile newFile2 =
repo.createFolder( publicFolder.getId(), new RepositoryFile.Builder( "testFolder" ).versioned( false ).hidden(
false ).folder( true ).build(), null, null );
root = repo.getTree( new RepositoryRequest( publicFolder.getPath(), true, 1, "*|FILES" ) );
assertFalse( root.getChildren().isEmpty() );
assertEquals( 1, root.getChildren().size() );
assertEquals( "helloworld.xaction", root.getChildren().get( 0 ).getFile().getName() );
root = repo.getTree( new RepositoryRequest( publicFolder.getPath(), true, 1, "*" ) );
assertFalse( root.getChildren().isEmpty() );
assertEquals( 2, root.getChildren().size() );
root = repo.getTree( new RepositoryRequest( publicFolder.getPath(), true, 1, "*|FILES_FOLDERS" ) );
assertFalse( root.getChildren().isEmpty() );
assertEquals( 2, root.getChildren().size() );
root = repo.getTree( new RepositoryRequest( publicFolder.getPath(), true, 1, "*|FOLDERS" ) );
assertFalse( root.getChildren().isEmpty() );
assertEquals( 1, root.getChildren().size() );
assertEquals( "testFolder", root.getChildren().get( 0 ).getFile().getName() );
}