{"id":20533455,"url":"https://github.com/solirius/vending-machine-test-java","last_synced_at":"2026-04-21T06:05:01.161Z","repository":{"id":124857081,"uuid":"299853967","full_name":"Solirius/vending-machine-test-java","owner":"Solirius","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-30T12:43:31.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T03:14:12.565Z","etag":null,"topics":[],"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/Solirius.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}},"created_at":"2020-09-30T08:19:16.000Z","updated_at":"2020-09-30T12:43:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"573fd0d6-fccf-4ce7-9603-2f50caa72a03","html_url":"https://github.com/Solirius/vending-machine-test-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Solirius/vending-machine-test-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solirius%2Fvending-machine-test-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solirius%2Fvending-machine-test-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solirius%2Fvending-machine-test-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solirius%2Fvending-machine-test-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Solirius","download_url":"https://codeload.github.com/Solirius/vending-machine-test-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solirius%2Fvending-machine-test-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27562174,"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","status":"online","status_checked_at":"2025-12-07T02:00:07.896Z","response_time":53,"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":[],"created_at":"2024-11-16T00:21:29.154Z","updated_at":"2025-12-07T06:03:02.830Z","avatar_url":"https://github.com/Solirius.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vending Machine Test\n\nDesign a Vending Machine which:\n\n - Accepts coin values 1, 5, 10, 20, 50\n - Allows the user to select products e.g. Coke(27), Pepsi(35), Dr Pepper(45)\n - Returns the selected product and remaining change if any\n - Returns change in the lowest number of coins possible\n \nComplete the implementation of the `ProductVendingMachine` so that it passes the tests included in the codebase. Feel free to add more tests if desired.\n \n```java\npublic class ProductVendingMachine {\n\n    public void addStock(Map\u003cProduct, Integer\u003e stock) {\n\n    }\n\n    public PurchaseTransaction selectProduct(Product product) {\n        return null;\n    }\n\n    public CompletedTransaction completeTransaction(PurchaseTransaction transaction) {\n        return null;\n    }\n\n}\n```\n\n# Running the application\n\n```\n./gradlew test\n```\n\n# Topics for further discussion\n\n - What problems does concurrency add to this system?\n - What problems would need to be solved in a distributed system?\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolirius%2Fvending-machine-test-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolirius%2Fvending-machine-test-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolirius%2Fvending-machine-test-java/lists"}