{"id":19838970,"url":"https://github.com/objectionary/jucs","last_synced_at":"2026-06-09T07:00:31.880Z","repository":{"id":64258342,"uuid":"574459304","full_name":"objectionary/jucs","owner":"objectionary","description":"JUnit Classpath Sources: a simple framework for using classpath resources as JUnit sources","archived":false,"fork":false,"pushed_at":"2026-06-07T06:31:36.000Z","size":181,"stargazers_count":9,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-06-07T08:13:33.576Z","etag":null,"topics":["java","junit5","junit5-extension","oop","unit-testing"],"latest_commit_sha":null,"homepage":"","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/objectionary.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-05T11:08:14.000Z","updated_at":"2026-06-07T06:31:39.000Z","dependencies_parsed_at":"2025-12-09T20:09:45.616Z","dependency_job_id":null,"html_url":"https://github.com/objectionary/jucs","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.17391304347826086","last_synced_commit":"b49969a349623ce2b06cdbb9f3c305b3c8d45e2a"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/objectionary/jucs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fjucs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fjucs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fjucs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fjucs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objectionary","download_url":"https://codeload.github.com/objectionary/jucs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fjucs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34095247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["java","junit5","junit5-extension","oop","unit-testing"],"created_at":"2024-11-12T12:19:46.450Z","updated_at":"2026-06-09T07:00:31.866Z","avatar_url":"https://github.com/objectionary.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Classpath Resources as JUnit Params\n\n[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![DevOps By Rultor.com](https://www.rultor.com/b/objectionary/jucs)](https://www.rultor.com/p/objectionary/jucs)\n[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)\n\n[![mvn](https://github.com/objectionary/jucs/actions/workflows/mvn.yml/badge.svg)](https://github.com/objectionary/jucs/actions/workflows/mvn.yml)\n[![PDD status](https://www.0pdd.com/svg?name=objectionary/jucs)](https://www.0pdd.com/p?name=objectionary/jucs)\n[![Maven Central](https://img.shields.io/maven-central/v/org.eolang/jucs.svg)](https://maven-badges.herokuapp.com/maven-central/org.eolang/jucs)\n[![Javadoc](https://www.javadoc.io/badge/org.eolang/jucs.svg)](https://www.javadoc.io/doc/org.eolang/jucs)\n[![codecov](https://codecov.io/gh/objectionary/jucs/branch/master/graph/badge.svg)](https://codecov.io/gh/objectionary/jucs)\n[![Hits-of-Code](https://hitsofcode.com/github/objectionary/jucs)](https://hitsofcode.com/view/github/objectionary/jucs)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/objectionary/jucs/blob/master/LICENSE.txt)\n\nThere is a simple [`@ClasspathSource`][annotation]\nannotation in this package. It may help you\nturn files, which are available in classpath, into\nsources of a JUnit5 test method.\n\nFirst, add this to your `pom.xml`:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.eolang\u003c/groupId\u003e\n  \u003cartifactId\u003ejucs\u003c/artifactId\u003e\n  \u003cversion\u003e0.3.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThen, to iterate over the `*.yaml` files in\nthe `src/test/resources/org/example/`\ndirectory (assuming you use Maven or Gradle):\n\n```java\nimport org.eolang.jucs.ClasspathSource;\nimport org.junit.jupiter.api.Assertions;\nimport org.junit.jupiter.params.ParameterizedTest;\n\nfinal class SimpleTest {\n    @ParameterizedTest\n    @ClasspathSource(value=\"/org/example\", glob=\"**.yaml\")\n    void simpleTest(String yaml) {\n        // In the \"yaml\" variable is the content of the YAML file\n    }\n}\n```\n\nThe `simpleTest()` method will be called a number of times, every time\ngetting the content of the next YAML file inside the `yaml` variable.\n\nWe use this library in `PacksTest`, `OptimizeMojoTest` and `SnippetsTest`\nin the [objectionary/eo](https://github.com/objectionary/eo) repository.\n\n## How to Contribute\n\nFork repository, make changes, send us a\n[pull request](https://www.yegor256.com/2014/04/15/github-guidelines.html).\nWe will review your changes and apply them to the `master` branch shortly,\nprovided they don't violate our quality standards. To avoid frustration,\nbefore sending us your pull request please run full Maven build:\n\n```bash\nmvn clean install -Pqulice\n```\n\nYou will need Maven 3.3+ and Java 8+.\n\n[annotation]: https://www.javadoc.io/doc/org.eolang/jucs/latest/org/eolang/jucs/ClasspathSource.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectionary%2Fjucs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectionary%2Fjucs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectionary%2Fjucs/lists"}