Skip to content

Commit dff38db

Browse files
authored
Merge pull request #17128 from sk1418/new-hamcrest-module
[new-hamcrest-module] mv to hamcrest-2
2 parents 7a44698 + a449bc3 commit dff38db

File tree

6 files changed

+42
-1
lines changed

6 files changed

+42
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Hamcrest
2+
3+
This module contains articles about Hamcrest
4+
5+
### Relevant articles
6+
- [Check if a List Contains Elements With Certain Properties in Hamcrest](https://www.baeldung.com/java-hamcrest-list-contains-properties)

testing-modules/hamcrest-2/pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>hamcrest-2</artifactId>
7+
<version>0.0.1-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
<name>hamcrest-2</name>
10+
11+
<parent>
12+
<groupId>com.baeldung</groupId>
13+
<artifactId>testing-modules</artifactId>
14+
<version>1.0.0-SNAPSHOT</version>
15+
</parent>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.hamcrest</groupId>
20+
<artifactId>java-hamcrest</artifactId>
21+
<version>${java-hamcrest.version}</version>
22+
<scope>test</scope>
23+
</dependency>
24+
<dependency>
25+
<groupId>com.google.guava</groupId>
26+
<artifactId>guava</artifactId>
27+
<version>${guava.version}</version>
28+
</dependency>
29+
</dependencies>
30+
31+
<properties>
32+
<java-hamcrest.version>2.0.0.0</java-hamcrest.version>
33+
</properties>
34+
35+
</project>

testing-modules/hamcrest/src/test/java/com/baeldung/hamcrest/listcontainitems/Developer.java renamed to testing-modules/hamcrest-2/src/test/java/com/baeldung/hamcrest/listcontainitems/Developer.java

File renamed without changes.

testing-modules/hamcrest/src/test/java/com/baeldung/hamcrest/listcontainitems/HamcrestElementPropInCollectionUnitTest.java renamed to testing-modules/hamcrest-2/src/test/java/com/baeldung/hamcrest/listcontainitems/HamcrestElementPropInCollectionUnitTest.java

File renamed without changes.

testing-modules/hamcrest/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ This module contains articles about Hamcrest
1313
- [Check if a Variable Is Null Using Hamcrest](https://www.baeldung.com/java-hamcrest-check-null)
1414
- [Difference Between hasItems(), contains(), and containsInAnyOrder() in Hamcrest](https://www.baeldung.com/hamcrest-hasitems-contains-containsinanyorder)
1515
- [Check Whether a Collection Contains an Element or Not Using Hamcrest](https://www.baeldung.com/java-hamcrest-collection-hasitem)
16-
- [Check if a List Contains Elements With Certain Properties in Hamcrest](https://www.baeldung.com/java-hamcrest-list-contains-properties)

testing-modules/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<module>gatling</module>
2525
<module>groovy-spock</module>
2626
<module>hamcrest</module>
27+
<module>hamcrest-2</module>
2728
<module>instancio</module>
2829
<module>jmeter</module>
2930
<module>jqwik</module>

0 commit comments

Comments
 (0)