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

devonfw / IDEasy / 14313798819

07 Apr 2025 03:55PM UTC coverage: 67.315% (-0.1%) from 67.432%
14313798819

push

github

web-flow
#1007: Implemented granular force options for update command (#1180)

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

3066 of 4964 branches covered (61.76%)

Branch coverage included in aggregate %.

7901 of 11328 relevant lines covered (69.75%)

3.05 hits per line

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

68.97
cli/src/main/java/com/devonfw/tools/ide/context/IdeStartContextImpl.java
1
package com.devonfw.tools.ide.context;
2

3
import java.util.Locale;
4
import java.util.function.Function;
5

6
import com.devonfw.tools.ide.log.AbstractIdeSubLogger;
7
import com.devonfw.tools.ide.log.IdeLogLevel;
8
import com.devonfw.tools.ide.log.IdeLoggerImpl;
9
import com.devonfw.tools.ide.log.IdeSubLogger;
10

11
/**
12
 * Implementation of {@link IdeStartContext}.
13
 */
14
public class IdeStartContextImpl extends IdeLoggerImpl implements IdeStartContext {
15

16
  private boolean skipUpdatesMode;
17

18
  private boolean offlineMode;
19

20
  private boolean forceMode;
21

22
  private boolean forcePull;
23

24
  private boolean forcePlugins;
25

26
  private boolean forceRepositories;
27

28
  private boolean batchMode;
29

30
  private boolean quietMode;
31

32
  private Locale locale;
33

34
  /**
35
   * @param minLogLevel the minimum enabled {@link IdeLogLevel}.
36
   * @param factory the factory to create active {@link IdeSubLogger} instances.
37
   */
38
  public IdeStartContextImpl(IdeLogLevel minLogLevel, Function<IdeLogLevel, AbstractIdeSubLogger> factory) {
39

40
    super(minLogLevel, factory);
4✔
41
  }
1✔
42

43
  @Override
44
  public boolean isQuietMode() {
45

46
    return this.quietMode;
3✔
47
  }
48

49
  /**
50
   * @param quietMode new value of {@link #isQuietMode()}.
51
   */
52
  public void setQuietMode(boolean quietMode) {
53

54
    this.quietMode = quietMode;
3✔
55
  }
1✔
56

57
  @Override
58
  public boolean isBatchMode() {
59

60
    return this.batchMode;
3✔
61
  }
62

63
  /**
64
   * @param batchMode new value of {@link #isBatchMode()}.
65
   */
66
  public void setBatchMode(boolean batchMode) {
67

68
    this.batchMode = batchMode;
3✔
69
  }
1✔
70

71
  @Override
72
  public boolean isForceMode() {
73

74
    return this.forceMode;
3✔
75
  }
76

77
  @Override
78
  public boolean isForcePull() {
79

80
    return this.forcePull;
×
81
  }
82

83
  @Override
84
  public boolean isForcePlugins() {
85

86
    return this.forcePlugins;
×
87
  }
88

89
  @Override
90
  public boolean isForceRepositories() {
91

92
    return this.forceRepositories;
×
93
  }
94

95

96
  public void setForceMode(boolean forceMode) {
97

98
    this.forceMode = forceMode;
3✔
99
  }
1✔
100

101
  @Override
102
  public void setForcePull(boolean forcePull) {
103

104
    this.forcePull = forcePull;
×
105
  }
×
106

107
  @Override
108
  public void setForcePlugins(boolean forcePlugins) {
109

110
    this.forcePlugins = forcePlugins;
×
111
  }
×
112

113
  @Override
114
  public void setForceRepositories(boolean forceRepositories) {
115

116
    this.forceRepositories = forceRepositories;
×
117
  }
×
118

119
  @Override
120
  public boolean isOfflineMode() {
121

122
    return this.offlineMode;
3✔
123
  }
124

125
  /**
126
   * @param offlineMode new value of {@link #isOfflineMode()}.
127
   */
128
  public void setOfflineMode(boolean offlineMode) {
129

130
    this.offlineMode = offlineMode;
3✔
131
  }
1✔
132

133
  @Override
134
  public boolean isSkipUpdatesMode() {
135

136
    return this.skipUpdatesMode;
3✔
137
  }
138

139
  /**
140
   * @param skipUpdatesMode new value of {@link #isSkipUpdatesMode()} ()}.
141
   */
142
  public void setSkipUpdatesMode(boolean skipUpdatesMode) {
143

144
    this.skipUpdatesMode = skipUpdatesMode;
3✔
145
  }
1✔
146

147
  @Override
148
  public Locale getLocale() {
149

150
    return this.locale;
3✔
151
  }
152

153

154
  /**
155
   * @param locale new value of {@link #getLocale()}.
156
   */
157
  public void setLocale(Locale locale) {
158

159
    this.locale = locale;
3✔
160
  }
1✔
161

162
}
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