Skip to content

Commit c513623

Browse files
Bump the all-dependencies group with 5 updates (#9)
1 parent 217e2b8 commit c513623

File tree

3 files changed

+26
-33
lines changed

3 files changed

+26
-33
lines changed

pom.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,7 @@
5454
<dependency>
5555
<groupId>org.assertj</groupId>
5656
<artifactId>assertj-core</artifactId>
57-
<version>3.25.3</version>
58-
<scope>test</scope>
59-
</dependency>
60-
<dependency>
61-
<groupId>org.jusecase</groupId>
62-
<artifactId>builders</artifactId>
63-
<version>0.3.1</version>
57+
<version>3.27.7</version>
6458
<scope>test</scope>
6559
</dependency>
6660
</dependencies>
@@ -70,7 +64,7 @@
7064
<plugin>
7165
<groupId>org.apache.maven.plugins</groupId>
7266
<artifactId>maven-compiler-plugin</artifactId>
73-
<version>3.13.0</version>
67+
<version>3.15.0</version>
7468
<configuration>
7569
<source>${maven.compiler.source}</source>
7670
<target>${maven.compiler.target}</target>
@@ -80,7 +74,7 @@
8074
<plugin>
8175
<groupId>org.apache.maven.plugins</groupId>
8276
<artifactId>maven-source-plugin</artifactId>
83-
<version>3.3.1</version>
77+
<version>3.4.0</version>
8478
<executions>
8579
<execution>
8680
<id>attach-sources</id>
@@ -95,7 +89,7 @@
9589
<plugin>
9690
<groupId>org.apache.maven.plugins</groupId>
9791
<artifactId>maven-javadoc-plugin</artifactId>
98-
<version>3.6.3</version>
92+
<version>3.12.0</version>
9993
<executions>
10094
<execution>
10195
<id>attach-javadocs</id>

src/test/java/com/github/zrdj/java/predicates/PredicatesTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import org.assertj.core.api.Assertions;
77
import org.junit.Test;
88

9+
import java.util.List;
910
import java.util.function.Predicate;
1011

1112
import static org.assertj.core.api.Assertions.assertThat;
12-
import static org.jusecase.Builders.*;
1313

1414
public class PredicatesTest {
1515
private final Predicates well = new Predicates.Default();
@@ -41,8 +41,8 @@ public void testFluentCollectionPredicate() {
4141
.and(it.isNotEmpty())
4242
.and(it.containsAnyOf("one", "two"))
4343
.and(it.containsNoneOf("three", "four")))
44-
.accepts(a(list(of("one", "five", "ten"))))
45-
.rejects(null, a(list(of("one", "five", "ten", "four"))));
44+
.accepts(List.of("one", "five", "ten"))
45+
.rejects(null, List.of("one", "five", "ten", "four"));
4646
}
4747

4848
@Test

src/test/java/com/github/zrdj/java/predicates/testcases/AbstractCollectionPredicatesTestcase.java

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import java.util.List;
88

99
import static org.assertj.core.api.Assertions.assertThat;
10-
import static org.jusecase.Builders.*;
1110

1211
public abstract class AbstractCollectionPredicatesTestcase {
1312
protected final CollectionPredicates checking;
@@ -20,89 +19,89 @@ protected AbstractCollectionPredicatesTestcase() {
2019

2120
@Test
2221
public void testHasSize() {
23-
final List<Object> listWithTwoElements = a(list(of("two", "elements")));
24-
final List<Object> listWithOneElement = a(list(of("one element")));
22+
final List<Object> listWithTwoElements = List.of("two", "elements");
23+
final List<Object> listWithOneElement = List.of("one element");
2524
assertThat(checking.hasSize(1)).accepts(listWithOneElement).rejects(listWithTwoElements);
2625
}
2726

2827
@Test
2928
public void testHasSizeGreaterThan() {
30-
final List<Object> listWithTwoElements = a(list(of("two", "elements")));
31-
final List<Object> listWithOneElement = a(list(of("one element")));
29+
final List<Object> listWithTwoElements = List.of("two", "elements");
30+
final List<Object> listWithOneElement = List.of("one element");
3231
assertThat(checking.hasSizeGreaterThan(1)).accepts(listWithTwoElements).rejects(listWithOneElement);
3332
}
3433

3534
@Test
3635
public void testHasSizeLessThan() {
3736
final List<Object> emptyList = Collections.emptyList();
38-
final List<Object> listWithOneElement = a(list(of("one element")));
37+
final List<Object> listWithOneElement = List.of("one element");
3938
assertThat(checking.hasSizeLessThan(1)).accepts(emptyList).rejects(listWithOneElement);
4039
}
4140

4241
@Test
4342
public void testHasSizeEqualOrGreaterThan() {
4443
final List<Object> emptyList = Collections.emptyList();
45-
final List<Object> listWithOneElement = a(list(of("one element")));
44+
final List<Object> listWithOneElement = List.of("one element");
4645
assertThat(checking.hasSizeEqualOrGreaterThan(1)).accepts(listWithOneElement).rejects(emptyList);
4746
}
4847

4948
@Test
5049
public void testHasSizeEqualOrLessThan() {
51-
final List<Object> listWithTwoElements = a(list(of("two", "elements")));
52-
final List<Object> listWithOneElement = a(list(of("one element")));
50+
final List<Object> listWithTwoElements = List.of("two", "elements");
51+
final List<Object> listWithOneElement = List.of("one element");
5352
final List<Object> emptyList = Collections.emptyList();
5453
assertThat(checking.hasSizeEqualOrLessThan(1)).accepts(emptyList, listWithOneElement).rejects(listWithTwoElements);
5554
}
5655

5756
@Test
5857
public void testEquals() {
59-
final List<String> listWithTwoElements = a(list(of("two", "elements")));
60-
final List<String> listWithOneElement = a(list(of("one element")));
58+
final List<String> listWithTwoElements = List.of("two", "elements");
59+
final List<String> listWithOneElement = List.of("one element");
6160
assertThat(checking.equals(listWithTwoElements)).accepts(listWithTwoElements).rejects(listWithOneElement);
6261
}
6362

6463
@Test
6564
public void testContains() {
66-
final List<String> listWithOneElement = a(list(of("one element")));
65+
final List<String> listWithOneElement = List.of("one element");
6766
final List<String> emptyList = Collections.emptyList();
6867
assertThat(checking.contains("one element")).accepts(listWithOneElement).rejects(emptyList);
6968
}
7069

7170
@Test
7271
public void testContainsAllOf() {
73-
final List<String> listWithTwoElements = a(list(of("two", "elements")));
74-
final List<String> listWithOneElement = a(list(of("one element")));
72+
final List<String> listWithTwoElements = List.of("two", "elements");
73+
final List<String> listWithOneElement = List.of("one element");
7574
final List<String> emptyList = Collections.emptyList();
7675
assertThat(checking.containsAllOf("two", "elements")).accepts(listWithTwoElements).rejects(emptyList, listWithOneElement);
7776
}
7877

7978
@Test
8079
public void testContainsAnyOf() {
81-
final List<String> listWithTwoElements = a(list(of("two", "elements")));
82-
final List<String> listWithOneElement = a(list(of("one element")));
80+
final List<String> listWithTwoElements = List.of("two", "elements");
81+
final List<String> listWithOneElement = List.of("one element");
8382
final List<String> emptyList = Collections.emptyList();
8483
assertThat(checking.containsAnyOf("two", "one element")).accepts(listWithTwoElements, listWithOneElement).rejects(emptyList);
8584
}
8685

8786
@Test
8887
public void testContainsNoneOf() {
89-
final List<String> listWithTwoElements = a(list(of("two", "elements")));
90-
final List<String> listWithOneElement = a(list(of("one element")));
88+
final List<String> listWithTwoElements = List.of("two", "elements");
89+
final List<String> listWithOneElement = List.of("one element");
9190
final List<String> emptyList = Collections.emptyList();
9291
assertThat(checking.containsNoneOf("two", "one element")).accepts(emptyList).rejects(listWithTwoElements, listWithOneElement);
9392
}
9493

9594
@Test
9695
public void testEmpty() {
9796
final List<Object> emptyList = Collections.emptyList();
98-
final List<Object> listWithOneElement = a(list(of("one element")));
97+
final List<Object> listWithOneElement = List.of("one element");
9998
assertThat(checking.isEmpty()).accepts(emptyList).rejects(listWithOneElement);
10099
}
101100

102101
@Test
103102
public void testAny() {
104103
final List<Object> emptyList = Collections.emptyList();
105-
final List<Object> listWithOneElement = a(list(of("one element")));
104+
final List<Object> listWithOneElement = List.of("one element");
106105
assertThat(checking.isNotEmpty()).accepts(listWithOneElement).rejects(emptyList);
107106
}
108107
}

0 commit comments

Comments
 (0)