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

devonfw / IDEasy / 14172572291

31 Mar 2025 01:20PM UTC coverage: 67.764% (+0.3%) from 67.422%
14172572291

push

github

web-flow
#103: create java resemblance for security.json (#1183)

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

3053 of 4934 branches covered (61.88%)

Branch coverage included in aggregate %.

7880 of 11200 relevant lines covered (70.36%)

3.07 hits per line

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

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

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

7
/**
8
 * {@link UrlFile} with the security information for an {@link UrlEdition}.
9
 */
10
public class UrlSecurityFile extends AbstractUrlFile<AbstractUrlToolOrEdition<?, ?>> {
11

12
  /** {@link #getName() Name} of security file. */
13
  public static final String SECURITY_JSON = "security.json";
14

15
  private ToolSecurity security;
16

17
  /**
18
   * The constructor.
19
   *
20
   * @param parent the {@link #getParent() parent folder}.
21
   */
22
  public UrlSecurityFile(AbstractUrlToolOrEdition<?, ?> parent) {
23

24
    super(parent, SECURITY_JSON);
4✔
25
  }
1✔
26

27
  /**
28
   * @return the content of the CVE map of the security.json file
29
   */
30
  public ToolSecurity getSecurity() {
31

32
    if (this.security == null) {
3!
33
      return ToolSecurity.getEmpty();
×
34
    }
35
    return this.security;
3✔
36
  }
37

38
  @Override
39
  protected void doLoad() {
40
    this.security = ToolSecurity.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