File tree Expand file tree Collapse file tree 4 files changed +32
-36
lines changed
src/test/java/org/meeuw/functional Expand file tree Collapse file tree 4 files changed +32
-36
lines changed Original file line number Diff line number Diff line change 11---
22codecov :
33 branch : main
4- require_ci_to_pass : yes
4+ require_ci_to_pass : true
55
66coverage :
7+ threshold : 5%
78 precision : 2
89 round : down
9- range :
10- - 70
11- - 100
10+ range : " 70..100"
1211 status :
1312 patch : off
1413
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " minimal_ubuntu" ,
3+ "image" : " ubuntu:latest" ,
4+ "onCreateCommand" : {
5+ "update" : " apt update && apt -y upgrade" ,
6+ "installDependencies" : " apt install -y git"
7+ },
8+ "customizations" : {
9+ "jetbrains" : {
10+ "settings" : {
11+ "com.intellij:app:EditorSettings.soft_wrap_file_masks" : " *" ,
12+ "com.intellij:app:EditorSettings.keep_trailing_space_on_caret_line" : false ,
13+ "com.intellij:app:GeneralSettings.autoSaveIfInactive" : true ,
14+ "com.intellij:app:GeneralSettings.searchInBackground" : true ,
15+ "com.intellij:app:VcsApplicationSettings.commit_from_local_changes" : false ,
16+ "com.intellij:app:VcsApplicationSettings.show_editor_preview_on_double_click" : false ,
17+ "org.jetbrains.plugins.terminal:app:TerminalOptionsProvider.myOverrideIdeShortcuts" : false ,
18+ "org.jetbrains.plugins.terminal:app:TerminalOptionsProvider.myShellPath" : " /bin/bash" ,
19+ "com.intellij:app:XmlFoldingSettings.collapse_html_style_attribute" : false ,
20+ "com.intellij:app:XmlFoldingSettings.collapse_entities" : false ,
21+ "com.intellij:app:XmlFoldingSettings.collapse_data_uri" : false
22+ },
23+ "backend" : " IntelliJ"
24+ }
25+ }
26+ }
Original file line number Diff line number Diff line change 2626 </archive >
2727 </configuration >
2828 </plugin >
29- <!-- <plugin>
30- <groupId>org.teavm</groupId>
31- <artifactId>teavm-maven-plugin</artifactId>
32- <version>0.12.1</version>
33- <dependencies>
34- <!– This dependency is required by TeaVM to emulate subset of Java class library –>
35- <dependency>
36- <groupId>org.teavm</groupId>
37- <artifactId>teavm-classlib</artifactId>
38- <version>0.12.1</version>
39- </dependency>
40- </dependencies>
41- <executions>
42- <execution>
43- <goals>
44- <goal>compile</goal>
45- </goals>
46- <phase>process-classes</phase>
47- <configuration>
48- <mainClass>org.meeuw.functional.Suppliers</mainClass>
49- <minifying>false</minifying>
50- <debugInformationGenerated>false</debugInformationGenerated>
51- <sourceMapsGenerated>true</sourceMapsGenerated>
52- <sourceFilesCopied>true</sourceFilesCopied>
53- <optimizationLevel>SIMPLE</optimizationLevel>
54- <wasmDebugInfoLocation>EXTERNAL</wasmDebugInfoLocation>
55- </configuration>
56- </execution>
57- </executions>
58- </plugin>-->
29+
5930 </plugins >
6031 </build >
6132
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class PredicatesTest {
1919 @ SuppressWarnings ({"ConstantConditions" , "EqualsBetweenInconvertibleTypes" , "EqualsWithItself" })
2020 @ Test
2121 public void testAlwaysFalse () {
22- Predicate <String > always = Predicates .alwaysFalse ( );
22+ Predicate <String > always = Predicates .always ( false );
2323 assertThat (Predicates .<String >alwaysFalse ().test ("a" )).isFalse ();
2424 assertThat (Predicates .<String >alwaysFalse ().toString ()).isEqualTo ("FALSE" );
2525 assertThat (Predicates .<String >alwaysFalse ().equals (Predicates .alwaysFalse ())).isTrue ();
@@ -35,7 +35,7 @@ public void testAlwaysFalse() {
3535
3636 @ Test
3737 public void alwaysTrue () {
38- assertThat (Predicates .<String >alwaysTrue ( ).test ("a" )).isTrue ();
38+ assertThat (Predicates .<String >always ( true ).test ("a" )).isTrue ();
3939 assertThat (Predicates .<String >alwaysTrue ().toString ()).isEqualTo ("TRUE" );
4040 }
4141
You can’t perform that action at this time.
0 commit comments