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

devonfw / IDEasy / 8144002629

04 Mar 2024 04:56PM UTC coverage: 58.928% (+0.7%) from 58.254%
8144002629

push

github

web-flow
#208: improve test infrastructure # 219: fix wrong executable (#238)

* Add first implementation

* Add javadoc

* Add javadoc

* Using target path instead of ressource path to make sure one-to-one copy of set up folders is used

* Add JavaDoc and mac mock program

* Add support for multiple dependencies while testing

* Minor changes

* Modify mock programs for testing

* Refactored example JmcTest

* Add possibility to set execution path by using the context

* Reenable test after related issue 228 has been merged

* Replace ternary with regular if

* Add missing javadoc

* Add missing javadoc

* remove unnecessary semicolon

* Fix spelling typo

* Minor test changes

* Refactoring FileExtractor class for more modularity

* using const

* Add missing extensions

* Remove unnecessary execption declaration and minor rename

* Fix spelling

* Add javadoc

* Forget dot

* minor change

* Revert "minor change"

This reverts commit ec81c3ce6.

* Revert "Merge branch 'main' into feature/208-MockOutToolRepoRefactorTestInfra"

This reverts commit d58847230, reversing
changes made to f38b3105f.

* Revert "Revert "Merge branch 'main' into feature/208-MockOutToolRepoRefactorTestInfra""

This reverts commit 3e49a0b3d.

* Revert "Revert "minor change""

This reverts commit 2f7b94624.

* fix typo

* #208: review and complete rework

* #208: improved system path

* #208: found and fixed bug on windows

* #208: improve OS mocking

* #208: improve test logging

reveal logs/errors so the developer actually sees what is happening instead of leaving them in the dark

* #208: improve OS detection

* #208: fixed

found and fixed bug in MacOS app detection for JMC, fixed copy file to folder bug, moved !extract logic back to FileAccess, f... (continued)

1580 of 2930 branches covered (53.92%)

Branch coverage included in aggregate %.

4047 of 6619 relevant lines covered (61.14%)

2.65 hits per line

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

16.67
cli/src/main/java/com/devonfw/tools/ide/variable/VariableDefinitionSystemPath.java
1
package com.devonfw.tools.ide.variable;
2

3
import com.devonfw.tools.ide.common.SystemPath;
4
import com.devonfw.tools.ide.context.IdeContext;
5

6
import java.nio.file.Path;
7
import java.util.function.Function;
8

9
/**
10
 * Implementation of {@link VariableDefinition} for a variable with the {@link #getValueType() value type}
11
 * {@link Path}.
12
 */
13
public class VariableDefinitionSystemPath extends AbstractVariableDefinition<SystemPath> {
14

15
  /**
16
   * The constructor.
17
   *
18
   * @param name the {@link #getName() variable name}.
19
   */
20
  public VariableDefinitionSystemPath(String name) {
21

22
    super(name);
×
23
  }
×
24

25
  /**
26
   * The constructor.
27
   *
28
   * @param name the {@link #getName() variable name}.
29
   * @param legacyName the {@link #getLegacyName() legacy name}.
30
   */
31
  public VariableDefinitionSystemPath(String name, String legacyName) {
32

33
    super(name, legacyName);
×
34
  }
×
35

36
  /**
37
   * The constructor.
38
   *
39
   * @param name the {@link #getName() variable name}.
40
   * @param legacyName the {@link #getLegacyName() legacy name}.
41
   * @param defaultValueFactory the factory {@link Function} for the
42
   * {@link #getDefaultValue(IdeContext) default value}.
43
   */
44
  public VariableDefinitionSystemPath(String name, String legacyName,
45
      Function<IdeContext, SystemPath> defaultValueFactory) {
46

47
    super(name, legacyName, defaultValueFactory);
×
48
  }
×
49

50
  /**
51
   * The constructor.
52
   *
53
   * @param name the {@link #getName() variable name}.
54
   * @param legacyName the {@link #getLegacyName() legacy name}.
55
   * @param defaultValueFactory the factory {@link Function} for the
56
   * {@link #getDefaultValue(IdeContext) default value}.
57
   * @param forceDefaultValue the {@link #isForceDefaultValue() forceDefaultValue} flag.
58
   */
59
  public VariableDefinitionSystemPath(String name, String legacyName,
60
      Function<IdeContext, SystemPath> defaultValueFactory, boolean forceDefaultValue) {
61

62
    super(name, legacyName, defaultValueFactory, forceDefaultValue);
×
63
  }
×
64

65
  /**
66
   * The constructor.
67
   *
68
   * @param name the {@link #getName() variable name}.
69
   * @param legacyName the {@link #getLegacyName() legacy name}.
70
   * @param defaultValueFactory the factory {@link Function} for the
71
   * {@link #getDefaultValue(IdeContext) default value}.
72
   * @param forceDefaultValue the {@link #isForceDefaultValue() forceDefaultValue} flag.
73
   * @param export the {@link #isExport() export} flag.
74
   */
75
  public VariableDefinitionSystemPath(String name, String legacyName,
76
      Function<IdeContext, SystemPath> defaultValueFactory, boolean forceDefaultValue, boolean export) {
77

78
    super(name, legacyName, defaultValueFactory, forceDefaultValue, export);
7✔
79
  }
1✔
80

81
  @Override
82
  public Class<SystemPath> getValueType() {
83

84
    return SystemPath.class;
×
85
  }
86

87
  @Override
88
  public SystemPath fromString(String value, IdeContext context) {
89

90
    return new SystemPath(context, value);
×
91
  }
92
}
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