{"id":54051,"library":"junit","title":"JUnit","description":"JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.","status":"active","version":"4.13.2","language":"java","source_language":null,"source_url":"https://github.com/junit-team/junit4","tags":["testing","unit-testing","java"],"install":[{"cmd":"<dependency>\n  <groupId>junit</groupId>\n  <artifactId>junit</artifactId>\n  <version>4.13.2</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'junit:junit:4.13.2'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"Test","correct":"org.junit.Test"}],"quickstart":{"code":"import org.junit.Test;\nimport static org.junit.Assert.*;\n\npublic class ExampleTest {\n    @Test\n    public void testAddition() {\n        assertEquals(4, 2 + 2);\n    }\n}","lang":"java","description":"Basic JUnit 4 test case"},"warnings":[{"fix":"Use JUnit 5 (junit-jupiter) for new projects.","message":"JUnit 4 and JUnit 5 have different APIs; ensure you use the correct version.","severity":"breaking","affected_versions":"4.x"}],"env_vars":null,"search_vec":"'beck':16 'creat':10 'erich':12 'framework':7 'gamma':13 'java':9,21 'junit':1,2 'kent':15 'test':6,17,20 'unit':5,19 'unit-test':18","created_at":"2026-06-15T08:32:15.119695+00:00","updated_at":"2026-06-15T08:32:15.119695+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://junit.org","github":"https://github.com/junit-team/junit4","docs":"https://appdoc.app/artifact/junit/junit/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}