{"id":37020814,"url":"https://github.com/joke/spock-deepmock","last_synced_at":"2026-01-14T02:25:59.989Z","repository":{"id":37930947,"uuid":"72415478","full_name":"joke/spock-deepmock","owner":"joke","description":"Deep mocking for the Spock Framework","archived":false,"fork":false,"pushed_at":"2025-11-07T18:28:20.000Z","size":305,"stargazers_count":6,"open_issues_count":11,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-07T20:26:59.423Z","etag":null,"topics":["mocking","spock-extension","spock-framework"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joke.png","metadata":{"files":{"readme":"README.adoc","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.adoc","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"2016-10-31T08:04:30.000Z","updated_at":"2025-11-07T18:28:23.000Z","dependencies_parsed_at":"2023-11-20T22:24:10.452Z","dependency_job_id":"5b2e43f9-572f-45df-89d7-1263f6ea08ff","html_url":"https://github.com/joke/spock-deepmock","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/joke/spock-deepmock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspock-deepmock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspock-deepmock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspock-deepmock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspock-deepmock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joke","download_url":"https://codeload.github.com/joke/spock-deepmock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspock-deepmock/sbom","scorecard":{"id":529493,"data":{"date":"2025-08-11","repo":{"name":"github.com/joke/spock-deepmock","commit":"abc78e95fe943edaddc816dfc0718fb00f6e6496"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 30 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/joke/spock-deepmock/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/joke/spock-deepmock/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/joke/spock-deepmock/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/joke/spock-deepmock/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/joke/spock-deepmock/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/joke/spock-deepmock/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/joke/spock-deepmock/release.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:22"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T05:22:09.272Z","repository_id":37930947,"created_at":"2025-08-20T05:22:09.272Z","updated_at":"2025-08-20T05:22:09.272Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"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":["mocking","spock-extension","spock-framework"],"created_at":"2026-01-14T02:25:59.234Z","updated_at":"2026-01-14T02:25:59.982Z","avatar_url":"https://github.com/joke.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= `spock-deepmock`\n\n:icons: font\n\nimage:https://github.com/joke/spock-deepmock/workflows/build/badge.svg?branch=master[]\nimage:https://img.shields.io/github/license/joke/spring-factory[GitHub]\nimage:https://img.shields.io/maven-central/v/io.github.joke/spock-deepmock?label=latest%20version[link=https://search.maven.org/artifact/io.github.joke/spock-deepmock]\nimage:https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg[link=https://conventionalcommits.org]\nimage:https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit[pre-commit, link=https://github.com/pre-commit/pre-commit]\n\n`spock-deepmock` adds deep mocking capabilities to the http://spockframework.org/[Spock Framework].\n\nIn contrast to builtin http://spockframework.org/spock/docs/1.3/all_in_one.html#_mocking[mocks]\na deep mock will return another deep mock object automatically. This way there\nis no need to define chains of nested mocks.\n\n* Adds `DeepMock()` and `GroovyDeepMock()` for deep mocking\n* Build deep mocking chains for nested objects\n* Uses same syntax as the builtins `Mock()` and `GroovyMock()`\n* Supports interaction verification\n* Works with Spock Framework 2.0, 2.1, 2.2 and 2.3\n\n== Gradle Dependency\n\nimage:https://img.shields.io/maven-central/v/io.github.joke/spock-deepmock?label=latest%20version[link=https://search.maven.org/artifact/io.github.joke/spock-deepmock]\n\n.build.gradle\n[source,groovy]\n----\ndependencies {\n    testImplementation 'io.github.joke:spock-deepmock:x.y.z'\n}\n----\n\n== Maven Dependency\n\n.pom.xml\n[source,xml]\n----\n\u003cdepenencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003eio.github.joke\u003c/groupId\u003e\n    \u003cartifactId\u003espock-deepmock\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n  \u003c/dependency\u003e\n\u003c/depenencies\u003e\n----\n\n== Usage\n\nDeep mocks can be defined as any other mock. Features like options are supported.\n\n.Define deep mocks\n[source,groovy]\n----\ndef mock = DeepMock(Nested)\nNested mock = DeepMock()\n\ndef mock = DeepMock(name: 'customName')\nNested mock = DeepMock(name: 'customName')\n----\n\n.CallerTest.groovy\n[source,groovy]\n----\ndef 'calling nested mock'() {\n    setup:\n    Nested mock = DeepMock()\n    def caller = new Caller(mock)\n\n    when:\n    // calls mock.getChild().getChild().getName()\n    def res = caller.nameOfSubSubChild()\n\n    then:\n    1 * mock.child.child.name \u003e\u003e 'Hello'\n\n    expect:\n    res == 'Hello'\n}\n----\n\nFurther examples in link:examples-java[] or link:examples-groovy[].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoke%2Fspock-deepmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoke%2Fspock-deepmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoke%2Fspock-deepmock/lists"}