{"id":21425045,"url":"https://github.com/johnyannj/junit-alone","last_synced_at":"2026-06-24T22:31:16.034Z","repository":{"id":122889487,"uuid":"183267333","full_name":"johnyannj/junit-alone","owner":"johnyannj","description":"Use different classloaders for every test case.","archived":false,"fork":false,"pushed_at":"2019-04-25T17:06:23.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-08T19:31:39.048Z","etag":null,"topics":["classloader","junit"],"latest_commit_sha":null,"homepage":null,"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/johnyannj.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":"2019-04-24T16:30:22.000Z","updated_at":"2019-04-25T17:06:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"e61349a0-c32d-45e7-9c73-e44fb359392d","html_url":"https://github.com/johnyannj/junit-alone","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/johnyannj/junit-alone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnyannj%2Fjunit-alone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnyannj%2Fjunit-alone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnyannj%2Fjunit-alone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnyannj%2Fjunit-alone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnyannj","download_url":"https://codeload.github.com/johnyannj/junit-alone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnyannj%2Fjunit-alone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34752465,"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-24T02:00:07.484Z","response_time":106,"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":["classloader","junit"],"created_at":"2024-11-22T21:26:30.215Z","updated_at":"2026-06-24T22:31:16.014Z","avatar_url":"https://github.com/johnyannj.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Junit Alone\n#####\n\nUse different classloaders for every test case.\n\n[![Build Status](https://travis-ci.org/johnyannj/junit-alone.svg?branch=master)](https://travis-ci.org/johnyannj/junit-alone)\n\n## Compile\n`\n mvn clean package\n`\n\n## Usage\n\nmaven:\n\n```\n\u003cgroupId\u003ecom.zhaoyanblog\u003c/groupId\u003e  \n\u003cartifactId\u003ejunit-alone\u003c/artifactId\u003e  \n\u003cversion\u003e1.0.1-SNAPSHOT\u003c/version\u003e\n```\nReplace Your Runner with AloneRunner.class, and put it to @AloneWith:\n\n```\npublic class StaticClass {\n    public static int staticNum = 0;\n}\n\n@RunWith(AloneRunner.class)\n@AloneWith(JUnit4.class)\npublic class JunitAloneTest {\n    @Test\n    public void test() {\n        StaticClass.staticNum++;\n        Assert.assertEquals(1, StaticClass.staticNum);\n    }\n}\n```\nWhen you run with \"mvn test\" or junit suit,  The test case with \"@RunWith(AloneRunner.class)\" will use independent class \n\n# License\nCopyright 2019, zhaoyanblog.com\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnyannj%2Fjunit-alone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnyannj%2Fjunit-alone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnyannj%2Fjunit-alone/lists"}