Clover icon

Jenkins Monitor 0.1.4-SNAPSHOT_jdk19

  1. Project Clover database So. Apr. 23 2023 11:22:19 UTC
  2. Package com.github.funthomas424242.jenkinsmonitor.config

File ConfigurationMockOneJobUnstable.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart0.png
50% of files have more coverage

Code metrics

0
3
3
1
45
17
3
1
1
3
1

Classes

Class Line # Actions
ConfigurationMockOneJobUnstable 30 3 3
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package com.github.funthomas424242.jenkinsmonitor.config;
2   
3    /*-
4    * #%L
5    * Jenkins Monitor
6    * %%
7    * Copyright (C) 2019 PIUG
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10    * it under the terms of the GNU Lesser General Public License as
11    * published by the Free Software Foundation, either version 3 of the
12    * License, or (at your option) any later version.
13    *
14    * This program is distributed in the hope that it will be useful,
15    * but WITHOUT ANY WARRANTY; without even the implied warranty of
16    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17    * GNU General Lesser Public License for more details.
18    *
19    * You should have received a copy of the GNU General Lesser Public
20    * License along with this program. If not, see
21    * <http://www.gnu.org/licenses/lgpl-3.0.html>.
22    * #L%
23    */
24   
25    import com.github.funthomas424242.jenkinsmonitor.config.ConfigurationFluentGrammar.Created;
26    import java.io.File;
27    import java.nio.file.Path;
28    import java.nio.file.Paths;
29   
 
30    public class ConfigurationMockOneJobUnstable {
31    public static final String PATH_ONEJOB_UNSTABLE_CONFIGURATION_FILE = "src/test/resources/onejob-unstable-configuration.properties";
32   
33   
 
34  0 toggle private ConfigurationMockOneJobUnstable() {
35    }
36   
 
37  0 toggle public static Created getOrCreateInstance() {
38  0 return Configuration.getOrCreateInstance(ConfigurationMockOneJobUnstable.getConfigFile());
39    }
40   
 
41  0 toggle protected static File getConfigFile() {
42  0 final Path validConfigfilePath = Paths.get(".", PATH_ONEJOB_UNSTABLE_CONFIGURATION_FILE);
43  0 return validConfigfilePath.toAbsolutePath().toFile();
44    }
45    }