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

devonfw / IDEasy / 13858963404

14 Mar 2025 02:38PM UTC coverage: 67.657% (-1.0%) from 68.619%
13858963404

push

github

web-flow
#1024: Move urls into url-updater module (#1025)

Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>

3036 of 4915 branches covered (61.77%)

Branch coverage included in aggregate %.

7825 of 11138 relevant lines covered (70.25%)

3.07 hits per line

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

66.67
cli/src/main/java/com/devonfw/tools/ide/url/model/AbstractUrlArtifactWithParent.java
1
package com.devonfw.tools.ide.url.model;
2

3
import com.devonfw.tools.ide.url.model.folder.AbstractUrlFolder;
4
import com.devonfw.tools.ide.url.model.folder.UrlFolder;
5

6
/**
7
 * Abstract base implementation of {@link UrlFolder} and {@link UrlArtifactWithParent}.
8
 *
9
 * @param <P> type of the {@link #getParent() parent} {@link UrlFolder folder}.
10
 */
11
public abstract class AbstractUrlArtifactWithParent<P extends AbstractUrlFolder<?>> extends AbstractUrlArtifact
12
    implements UrlArtifactWithParent<P> {
13

14
  private final P parent;
15

16
  /**
17
   * The constructor.
18
   *
19
   * @param parent the {@link #getParent() parent folder}.
20
   * @param name the {@link #getName() filename}.
21
   */
22
  public AbstractUrlArtifactWithParent(P parent, String name) {
23

24
    super(parent.getPath().resolve(name), name);
7✔
25
    this.parent = parent;
3✔
26
  }
1✔
27

28
  @Override
29
  public P getParent() {
30

31
    return this.parent;
3✔
32
  }
33

34
  @Override
35
  public void delete() {
36
    getParent().deleteChild(getName());
×
37
  }
×
38
}
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