• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 28159637210

25 Jun 2026 09:12AM UTC coverage: 71.231% (-0.1%) from 71.356%
28159637210

Pull #2003

github

web-flow
Merge cba0d9abc into 459b15501
Pull Request #2003: #1651: push and commit status.json files to ide-urls-status after running the URL update worklfow

4705 of 7304 branches covered (64.42%)

Branch coverage included in aggregate %.

12122 of 16319 relevant lines covered (74.28%)

3.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

69.23
cli/src/main/java/com/devonfw/tools/ide/url/model/folder/UrlRepository.java
1
package com.devonfw.tools.ide.url.model.folder;
2

3
import java.nio.file.Path;
4

5
/**
6
 * An instance of this class represents the folder that starts an url-file repository, having {@link UrlTool} objects as children.
7
 */
8
public class UrlRepository extends AbstractUrlFolder<UrlTool> {
9

10
  private UrlRepository statusRepository;
11

12
  /**
13
   * The constructor.
14
   *
15
   * @param path the {@link #getPath() path}.
16
   */
17
  public UrlRepository(Path path) {
18

19
    super(path, "urls");
4✔
20
  }
1✔
21

22
  /**
23
   * @param path the {@link #getPath() path} of the {@link UrlRepository} to load.
24
   * @return the {@link UrlRepository} with all its children loaded from the given {@link Path}.
25
   */
26
  public static UrlRepository load(Path path) {
27

28
    UrlRepository repository = new UrlRepository(path);
5✔
29
    repository.load(true);
3✔
30
    return repository;
2✔
31
  }
32

33
  /**
34
   * This method is used to add new children to the children collection of an instance from this class.
35
   *
36
   * @param name The name of the {@link UrlTool} object that should be created.
37
   */
38
  @Override
39
  protected UrlTool newChild(String name) {
40

41
    return new UrlTool(this, name);
6✔
42
  }
43

44
  /**
45
   * @return the {@link UrlRepository} used to store status files.
46
   */
47
  public UrlRepository getStatusRepository() {
48
    if (this.statusRepository == null) {
3!
49
      return this;
2✔
50
    }
51
    return this.statusRepository;
×
52
  }
53

54

55
  /**
56
   * @param statusRepository the {@link UrlRepository} used to store status files.
57
   */
58
  public void setStatusRepository(UrlRepository statusRepository) {
59
    this.statusRepository = statusRepository;
×
60
  }
×
61
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc