{"id":37026555,"url":"https://github.com/ulfsauer0815/assertj-jsoup","last_synced_at":"2026-01-14T03:05:38.267Z","repository":{"id":37027449,"uuid":"312639893","full_name":"ulfsauer0815/assertj-jsoup","owner":"ulfsauer0815","description":"AssertJ assertions for HTML","archived":false,"fork":false,"pushed_at":"2025-10-20T20:04:44.000Z","size":346,"stargazers_count":9,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T22:10:00.896Z","etag":null,"topics":["assertj","assertj-assertions","java","jsoup","kotlin","kotlin-dsl","testing"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/ulfsauer0815.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-13T17:21:48.000Z","updated_at":"2025-10-20T20:04:47.000Z","dependencies_parsed_at":"2023-09-27T01:32:16.072Z","dependency_job_id":"4dc28f46-6fa2-4a55-aed6-f51f23e8f0dd","html_url":"https://github.com/ulfsauer0815/assertj-jsoup","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ulfsauer0815/assertj-jsoup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulfsauer0815%2Fassertj-jsoup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulfsauer0815%2Fassertj-jsoup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulfsauer0815%2Fassertj-jsoup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulfsauer0815%2Fassertj-jsoup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ulfsauer0815","download_url":"https://codeload.github.com/ulfsauer0815/assertj-jsoup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulfsauer0815%2Fassertj-jsoup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["assertj","assertj-assertions","java","jsoup","kotlin","kotlin-dsl","testing"],"created_at":"2026-01-14T03:05:37.659Z","updated_at":"2026-01-14T03:05:38.256Z","avatar_url":"https://github.com/ulfsauer0815.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AssertJ assertions for HTML\n![build](https://github.com/ulfsauer0815/assertj-jsoup/workflows/build/badge.svg)\n[![Maven](https://img.shields.io/maven-central/v/io.github.ulfs/assertj-jsoup?color=blue)](https://mvnrepository.com/artifact/io.github.ulfs/assertj-jsoup)\n[![JitPack](https://jitpack.io/v/ulfsauer0815/assertj-jsoup.svg)](https://jitpack.io/#ulfsauer0815/assertj-jsoup)\n[![coveralls](https://coveralls.io/repos/github/ulfsauer0815/assertj-jsoup/badge.svg)](https://coveralls.io/github/ulfsauer0815/assertj-jsoup)\n[![codecov](https://codecov.io/gh/ulfsauer0815/assertj-jsoup/branch/main/graph/badge.svg)](https://codecov.io/gh/ulfsauer0815/assertj-jsoup)\n\nProvides assertions for HTML content including a Kotlin DSL.\nUses [jsoup](https://jsoup.org/) for parsing.\n\n## Example\n\n### Kotlin DSL\n```kotlin\nassertThatSpec(document) {\n\n    node(\"h1\") { exists() }\n    \n    node(\".example-code\") { containsText(\"Kotlin\") }\n    \n    node(\".github-link\") {\n        hasText(\"Fork me on GitHub\")\n        attribute(\"href\") {\n            containsText(\"github\")\n            containsText(\"assertj-jsoup\")\n        }\n        attribute(\"target\") { hasText(\"_blank\") }\n        attribute(\"disabled\") { notExists() }\n    }\n}\n```\n\n### Java / Kotlin\n```kotlin\nassertThat(document)\n    .elementExists(\"h1\")\n    \n    .elementContainsText(\".example-code\", \"Kotlin\")\n\n    .elementHasText(\".github-link\", \"Fork me on GitHub\")\n    .elementAttributeContainsText(\".github-link\", \"href\", \"github\")\n    .elementAttributeContainsText(\".github-link\", \"href\", \"assertj-jsoup\")\n    .elementAttributeHasText(\".github-link\", \"target\", \"_blank\")\n    .elementAttributeNotExists(\".github-link\", \"disabled\");\n```\n\n## Build configuration\n\n### Kotlin\n\n*`build.gradle.kts`*\n```kotlin\nrepositories {\n    mavenCentral()\n}\n\ntestImplementation(\"io.github.ulfs:assertj-jsoup:0.1.4\")\n```\n\n### Gradle\n\n*`build.gradle`*\n```groovy\nrepositories {\n    mavenCentral()\n}\n\ntestImplementation \"io.github.ulfs:assertj-jsoup:0.1.4\"\n```\n\n\n## Development\n\nsee [DEVELOPMENT.md](DEVELOPMENT.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulfsauer0815%2Fassertj-jsoup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulfsauer0815%2Fassertj-jsoup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulfsauer0815%2Fassertj-jsoup/lists"}