{"id":23282781,"url":"https://github.com/itsallcode/hamcrest-multiline-text-matcher","last_synced_at":"2025-10-27T18:31:58.753Z","repository":{"id":52833474,"uuid":"148324186","full_name":"itsallcode/hamcrest-mutliline-text-matcher","owner":"itsallcode","description":"Hamcrest matcher that provides better diagnostics for multi-line mismatches.","archived":false,"fork":false,"pushed_at":"2024-09-05T17:37:11.000Z","size":92,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-20T00:31:26.473Z","etag":null,"topics":["hamcrest-matchers","java","junit","text"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsallcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-11T13:45:25.000Z","updated_at":"2024-09-05T17:34:51.000Z","dependencies_parsed_at":"2024-12-20T00:39:54.403Z","dependency_job_id":null,"html_url":"https://github.com/itsallcode/hamcrest-mutliline-text-matcher","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsallcode%2Fhamcrest-mutliline-text-matcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsallcode%2Fhamcrest-mutliline-text-matcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsallcode%2Fhamcrest-mutliline-text-matcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsallcode%2Fhamcrest-mutliline-text-matcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsallcode","download_url":"https://codeload.github.com/itsallcode/hamcrest-mutliline-text-matcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238545158,"owners_count":19490033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hamcrest-matchers","java","junit","text"],"created_at":"2024-12-20T00:29:47.404Z","updated_at":"2025-10-27T18:31:58.429Z","avatar_url":"https://github.com/itsallcode.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hamcrest-mutliline-text-matcher\n\nThis project provides a [Hamcrest](http://hamcrest.org/) matcher that gives you better diagnostics for multi-line text in case of mismatches.\n\n[![Build](https://github.com/itsallcode/hamcrest-mutliline-text-matcher/actions/workflows/build.yml/badge.svg)](https://github.com/itsallcode/hamcrest-mutliline-text-matcher/actions/workflows/build.yml)\n[![Maven Central](https://img.shields.io/maven-central/v/org.itsallcode/hamcrest-mutliline-text-matcher.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:org.itsallcode%20a:hamcrest-mutliline-text-matcher)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=org.itsallcode%3Ahamcrest-mutliline-text-matcher\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=org.itsallcode%3Ahamcrest-mutliline-text-matcher)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=org.itsallcode%3Ahamcrest-mutliline-text-matcher\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=org.itsallcode%3Ahamcrest-mutliline-text-matcher)\n\n## In a Nutshell\n\n```java\nimport static org.itsallcode.matcher.MultilineTextMatcher.matchesAllLines;\n\npublic class TestSomeText {\n\t@Test\n\tpublic void testMatchesAllLines() {\n\t\tassertThat(\"foo\\nbar\", MultilineTextMatcher.matchesAllLines(\"foo\", \"bar\"));\n\t}\n}\n```\n\n## Features\n\nThis matcher provides the following features:\n\n* Reports mismatches in the number of lines\n* Marks where in the text a mismatch is found\n* Makes invisible characters visible (CR, LF, TAB)\n\n## Information for Developers\n\n* [Developer Guide](doc/developer_guide/developer_guide.md)\n\n## Dependencies\n\n## Runtime Dependencies\n\nThe Hamcrest Multiline Text Matcher requires Java 11 to run.\n\n## Test Dependencies\n\n### Test Dependencies\n\n| Dependency                                                                          | Purpose                                                | License                          |\n|-------------------------------------------------------------------------------------|--------------------------------------------------------|----------------------------------|\n| [Apache Maven](https://maven.apache.org/)                                           | Build tool                                             | Apache License 2.0               |\n| [Java Hamcrest](http://hamcrest.org/JavaHamcrest/)                                  | Checking for conditions in code via matchers           | BSD License                      |\n| [JUnit](https://junit.org/junit5)                                                   | Unit testing framework                                 | Eclipse Public License 1.0       |\n\n### Maven Plug-ins\n\n| Plug-in                                                                             | Purpose                                                | License                          |\n|-------------------------------------------------------------------------------------|--------------------------------------------------------|----------------------------------|\n| [License Maven Plugin](https://www.mojohaus.org/license-maven-plugin/)              | Adding license information to source files             | LGPL3                            |\n| [Maven Compiler Plugin](https://maven.apache.org/plugins/maven-compiler-plugin/)    | Setting required Java version                          | Apache License 2.0               |\n| [Maven Enforcer Plugin](http://maven.apache.org/enforcer/maven-enforcer-plugin/)    | Controlling environment constants                      | Apache License 2.0               |\n| [Maven Failsafe Plugin](https://maven.apache.org/surefire/maven-surefire-plugin/)   | Integration testing                                    | Apache License 2.0               |\n| [Maven Jacoco Plugin](https://www.eclemma.org/jacoco/trunk/doc/maven.html)          | Code coverage metering                                 | Eclipse Public License 2.0       |\n| [Maven Javadoc Plugin](https://maven.apache.org/plugins/maven-javadoc-plugin)       | Create JAR archive with Javadoc                        | Apache License 2.0               |\n| [Maven Source Plugin](http://maven.apache.org/plugins/maven-source-plugin/)         | Create JAR archive with source code                    | Apache License 2.0               |\n| [Maven Surefire Plugin](https://maven.apache.org/surefire/maven-surefire-plugin/)   | Unit testing                                           | Apache License 2.0               |\n| [OSS Index Maven Plugin](https://sonatype.github.io/ossindex-maven/maven-plugin/)   | Checking Dependencies Vulnerability                    | ASL2                             |\n| [Versions Maven Plugin](https://www.mojohaus.org/versions-maven-plugin/)            | Checking if dependencies updates are available         | Apache License 2.0               |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsallcode%2Fhamcrest-multiline-text-matcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsallcode%2Fhamcrest-multiline-text-matcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsallcode%2Fhamcrest-multiline-text-matcher/lists"}