Skip to content

Commit 2d3dbcb

Browse files
committedJan 22, 2024
adapted package name
1 parent 983028e commit 2d3dbcb

20 files changed

+51
-50
lines changed
 

‎src/main/java/io/github/codejanovic/java/predicates/Predicates.java ‎src/main/java/com/github/zrdj/java/predicates/Predicates.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package io.github.codejanovic.java.predicates;
1+
package com.github.zrdj.java.predicates;
22

3-
import io.github.codejanovic.java.predicates.collections.ArrayPredicates;
4-
import io.github.codejanovic.java.predicates.collections.CollectionPredicates;
5-
import io.github.codejanovic.java.predicates.objects.ObjectPredicates;
6-
import io.github.codejanovic.java.predicates.primitives.IntegerPredicates;
7-
import io.github.codejanovic.java.predicates.primitives.StringPredicates;
3+
import com.github.zrdj.java.predicates.collections.ArrayPredicates;
4+
import com.github.zrdj.java.predicates.collections.CollectionPredicates;
5+
import com.github.zrdj.java.predicates.objects.ObjectPredicates;
6+
import com.github.zrdj.java.predicates.primitives.IntegerPredicates;
7+
import com.github.zrdj.java.predicates.primitives.StringPredicates;
88

99
import java.util.function.Predicate;
1010
import java.util.stream.Stream;

‎src/main/java/io/github/codejanovic/java/predicates/collections/ArrayPredicates.java ‎src/main/java/com/github/zrdj/java/predicates/collections/ArrayPredicates.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.codejanovic.java.predicates.collections;
1+
package com.github.zrdj.java.predicates.collections;
22

33
import java.util.Arrays;
44
import java.util.HashSet;

‎src/main/java/io/github/codejanovic/java/predicates/collections/CollectionPredicates.java ‎src/main/java/com/github/zrdj/java/predicates/collections/CollectionPredicates.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.codejanovic.java.predicates.collections;
1+
package com.github.zrdj.java.predicates.collections;
22

33
import java.util.Arrays;
44
import java.util.Collection;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.github.zrdj.java.predicates.helper;
2+
3+
public interface Action {
4+
void execute();
5+
}

‎src/main/java/io/github/codejanovic/java/predicates/helper/Throws.java ‎src/main/java/com/github/zrdj/java/predicates/helper/Throws.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.codejanovic.java.predicates.helper;
1+
package com.github.zrdj.java.predicates.helper;
22

33
public abstract class Throws {
44
public static boolean exception(final Action action) {

‎src/main/java/io/github/codejanovic/java/predicates/objects/ObjectPredicates.java ‎src/main/java/com/github/zrdj/java/predicates/objects/ObjectPredicates.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.codejanovic.java.predicates.objects;
1+
package com.github.zrdj.java.predicates.objects;
22

33
import java.util.Objects;
44
import java.util.function.Predicate;

‎src/main/java/io/github/codejanovic/java/predicates/primitives/IntegerPredicates.java ‎src/main/java/com/github/zrdj/java/predicates/primitives/IntegerPredicates.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.codejanovic.java.predicates.primitives;
1+
package com.github.zrdj.java.predicates.primitives;
22

33
import java.util.function.Predicate;
44

‎src/main/java/io/github/codejanovic/java/predicates/primitives/StringPredicates.java ‎src/main/java/com/github/zrdj/java/predicates/primitives/StringPredicates.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package io.github.codejanovic.java.predicates.primitives;
1+
package com.github.zrdj.java.predicates.primitives;
22

3-
import io.github.codejanovic.java.predicates.helper.Throws;
3+
import com.github.zrdj.java.predicates.helper.Throws;
44

55
import java.util.Objects;
66
import java.util.UUID;

‎src/main/java/io/github/codejanovic/java/predicates/helper/Action.java

-5
This file was deleted.

‎src/test/java/io/github/codejanovic/java/predicates/PredicatesTest.java ‎src/test/java/com/github/zrdj/java/predicates/PredicatesTest.java

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
package io.github.codejanovic.java.predicates;
1+
package com.github.zrdj.java.predicates;
22

3-
import io.github.codejanovic.java.predicates.collections.CollectionPredicates;
4-
import io.github.codejanovic.java.predicates.primitives.IntegerPredicates;
5-
import io.github.codejanovic.java.predicates.primitives.StringPredicates;
3+
import com.github.zrdj.java.predicates.collections.CollectionPredicates;
4+
import com.github.zrdj.java.predicates.primitives.IntegerPredicates;
5+
import com.github.zrdj.java.predicates.primitives.StringPredicates;
6+
import org.assertj.core.api.Assertions;
67
import org.junit.Test;
78

89
import java.util.function.Predicate;
@@ -16,7 +17,7 @@ public class PredicatesTest {
1617
@Test
1718
public void testFluentIntegerPredicate() {
1819
final IntegerPredicates it = well.integer();
19-
assertThat(well.let().ensure().that().integer().isGreaterThan(5)
20+
Assertions.assertThat(well.let().ensure().that().integer().isGreaterThan(5)
2021
.and(it.isLessThan(7))
2122
.and(it.isBetween(1, 10)))
2223
.accepts(6)
@@ -26,7 +27,7 @@ public void testFluentIntegerPredicate() {
2627
@Test
2728
public void testFluentStringPredicate() {
2829
final StringPredicates it = well.string();
29-
assertThat(well.let().check().that().string().isNotNull()
30+
Assertions.assertThat(well.let().check().that().string().isNotNull()
3031
.and(it.startsWith("one"))
3132
.and(it.endsWith("three")))
3233
.accepts("onetwothree")
@@ -36,7 +37,7 @@ public void testFluentStringPredicate() {
3637
@Test
3738
public void testFluentCollectionPredicate() {
3839
final CollectionPredicates it = well.collection();
39-
assertThat(well.let().ensure().valid().when().collection().isNotNull()
40+
Assertions.assertThat(well.let().ensure().valid().when().collection().isNotNull()
4041
.and(it.isNotEmpty())
4142
.and(it.containsAnyOf("one", "two"))
4243
.and(it.containsNoneOf("three", "four")))

‎src/test/java/io/github/codejanovic/java/predicates/collections/DefaultArrayPredicatesTest.java ‎src/test/java/com/github/zrdj/java/predicates/collections/DefaultArrayPredicatesTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package io.github.codejanovic.java.predicates.collections;
1+
package com.github.zrdj.java.predicates.collections;
22

3-
import io.github.codejanovic.java.predicates.Predicates;
4-
import io.github.codejanovic.java.predicates.testcases.AbstractArrayPredicatesTestcase;
3+
import com.github.zrdj.java.predicates.Predicates;
4+
import com.github.zrdj.java.predicates.testcases.AbstractArrayPredicatesTestcase;
55

66
public class DefaultArrayPredicatesTest extends AbstractArrayPredicatesTestcase {
77
@Override

‎src/test/java/io/github/codejanovic/java/predicates/collections/DefaultCollectionPredicatesTest.java ‎src/test/java/com/github/zrdj/java/predicates/collections/DefaultCollectionPredicatesTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package io.github.codejanovic.java.predicates.collections;
1+
package com.github.zrdj.java.predicates.collections;
22

3-
import io.github.codejanovic.java.predicates.Predicates;
4-
import io.github.codejanovic.java.predicates.testcases.AbstractCollectionPredicatesTestcase;
3+
import com.github.zrdj.java.predicates.Predicates;
4+
import com.github.zrdj.java.predicates.testcases.AbstractCollectionPredicatesTestcase;
55

66
public class DefaultCollectionPredicatesTest extends AbstractCollectionPredicatesTestcase {
77
@Override

‎src/test/java/io/github/codejanovic/java/predicates/objects/DefaultObjectPredicatesTest.java ‎src/test/java/com/github/zrdj/java/predicates/objects/DefaultObjectPredicatesTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package io.github.codejanovic.java.predicates.objects;
1+
package com.github.zrdj.java.predicates.objects;
22

3-
import io.github.codejanovic.java.predicates.Predicates;
4-
import io.github.codejanovic.java.predicates.testcases.AbstractObjectPredicatesTestcase;
3+
import com.github.zrdj.java.predicates.Predicates;
4+
import com.github.zrdj.java.predicates.testcases.AbstractObjectPredicatesTestcase;
55

66
public class DefaultObjectPredicatesTest extends AbstractObjectPredicatesTestcase {
77
@Override

‎src/test/java/io/github/codejanovic/java/predicates/primitives/DefaultIntegerPredicatesTest.java ‎src/test/java/com/github/zrdj/java/predicates/primitives/DefaultIntegerPredicatesTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package io.github.codejanovic.java.predicates.primitives;
1+
package com.github.zrdj.java.predicates.primitives;
22

3-
import io.github.codejanovic.java.predicates.Predicates;
4-
import io.github.codejanovic.java.predicates.testcases.AbstractIntegerPredicatesTestcase;
3+
import com.github.zrdj.java.predicates.Predicates;
4+
import com.github.zrdj.java.predicates.testcases.AbstractIntegerPredicatesTestcase;
55

66
public class DefaultIntegerPredicatesTest extends AbstractIntegerPredicatesTestcase {
77
@Override

‎src/test/java/io/github/codejanovic/java/predicates/primitives/DefaultStringPredicatesTest.java ‎src/test/java/com/github/zrdj/java/predicates/primitives/DefaultStringPredicatesTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package io.github.codejanovic.java.predicates.primitives;
1+
package com.github.zrdj.java.predicates.primitives;
22

3-
import io.github.codejanovic.java.predicates.Predicates;
4-
import io.github.codejanovic.java.predicates.testcases.AbstractStringPredicatesTestcase;
3+
import com.github.zrdj.java.predicates.Predicates;
4+
import com.github.zrdj.java.predicates.testcases.AbstractStringPredicatesTestcase;
55

66
public class DefaultStringPredicatesTest extends AbstractStringPredicatesTestcase {
77
@Override

‎src/test/java/io/github/codejanovic/java/predicates/testcases/AbstractArrayPredicatesTestcase.java ‎src/test/java/com/github/zrdj/java/predicates/testcases/AbstractArrayPredicatesTestcase.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package io.github.codejanovic.java.predicates.testcases;
1+
package com.github.zrdj.java.predicates.testcases;
22

3-
import io.github.codejanovic.java.predicates.collections.ArrayPredicates;
3+
import com.github.zrdj.java.predicates.collections.ArrayPredicates;
44
import org.junit.Test;
55

66
import java.util.function.Predicate;

‎src/test/java/io/github/codejanovic/java/predicates/testcases/AbstractCollectionPredicatesTestcase.java ‎src/test/java/com/github/zrdj/java/predicates/testcases/AbstractCollectionPredicatesTestcase.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package io.github.codejanovic.java.predicates.testcases;
1+
package com.github.zrdj.java.predicates.testcases;
22

3-
import io.github.codejanovic.java.predicates.collections.CollectionPredicates;
3+
import com.github.zrdj.java.predicates.collections.CollectionPredicates;
44
import org.junit.Test;
55

66
import java.util.Collections;

‎src/test/java/io/github/codejanovic/java/predicates/testcases/AbstractIntegerPredicatesTestcase.java ‎src/test/java/com/github/zrdj/java/predicates/testcases/AbstractIntegerPredicatesTestcase.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package io.github.codejanovic.java.predicates.testcases;
1+
package com.github.zrdj.java.predicates.testcases;
22

3-
import io.github.codejanovic.java.predicates.primitives.IntegerPredicates;
3+
import com.github.zrdj.java.predicates.primitives.IntegerPredicates;
44
import org.junit.Test;
55

66
import static org.assertj.core.api.Assertions.assertThat;

‎src/test/java/io/github/codejanovic/java/predicates/testcases/AbstractObjectPredicatesTestcase.java ‎src/test/java/com/github/zrdj/java/predicates/testcases/AbstractObjectPredicatesTestcase.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package io.github.codejanovic.java.predicates.testcases;
1+
package com.github.zrdj.java.predicates.testcases;
22

3-
import io.github.codejanovic.java.predicates.objects.ObjectPredicates;
3+
import com.github.zrdj.java.predicates.objects.ObjectPredicates;
44
import org.junit.Test;
55

66
import static org.assertj.core.api.Assertions.assertThat;

‎src/test/java/io/github/codejanovic/java/predicates/testcases/AbstractStringPredicatesTestcase.java ‎src/test/java/com/github/zrdj/java/predicates/testcases/AbstractStringPredicatesTestcase.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package io.github.codejanovic.java.predicates.testcases;
1+
package com.github.zrdj.java.predicates.testcases;
22

3-
import io.github.codejanovic.java.predicates.primitives.StringPredicates;
3+
import com.github.zrdj.java.predicates.primitives.StringPredicates;
44
import org.junit.Test;
55

66
import java.util.UUID;

0 commit comments

Comments
 (0)
Please sign in to comment.