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

devonfw / IDEasy / 11060995883

26 Sep 2024 10:09PM UTC coverage: 66.053% (-0.05%) from 66.107%
11060995883

Pull #652

github

web-flow
Merge 3cdc5b3b2 into ad80f56d2
Pull Request #652: #593: #651: #564: #439: fixed bugs, refactored tool dependencies

2312 of 3848 branches covered (60.08%)

Branch coverage included in aggregate %.

6078 of 8854 relevant lines covered (68.65%)

3.03 hits per line

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

90.0
cli/src/main/java/com/devonfw/tools/ide/url/model/file/UrlDependencyFile.java
1
package com.devonfw.tools.ide.url.model.file;
2

3
import com.devonfw.tools.ide.url.model.file.json.ToolDependencies;
4
import com.devonfw.tools.ide.url.model.folder.UrlEdition;
5

6
/**
7
 * {@link UrlFile} for the "dependency.json" file.
8
 */
9
public class UrlDependencyFile extends AbstractUrlFile<UrlEdition> {
10

11
  public static final String DEPENDENCY_JSON = "dependencies.json";
12

13

14
  private ToolDependencies dependencies;
15

16
  /**
17
   * The constructor.
18
   *
19
   * @param parent the {@link #getParent() parent folder}.
20
   */
21
  public UrlDependencyFile(UrlEdition parent) {
22

23
    super(parent, DEPENDENCY_JSON);
4✔
24
  }
1✔
25

26
  /**
27
   * @return the content of the dependency map of the dependency.json file
28
   */
29
  public ToolDependencies getDependencies() {
30

31
    if (this.dependencies == null) {
3✔
32
      return ToolDependencies.getEmpty();
2✔
33
    }
34
    return this.dependencies;
3✔
35
  }
36

37
  @Override
38
  protected void doLoad() {
39

40
    this.dependencies = ToolDependencies.of(getPath());
5✔
41
  }
1✔
42

43
  @Override
44
  protected void doSave() {
45

46
  }
×
47
}
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

© 2025 Coveralls, Inc