{"id":56248,"library":"byteman-bmunit","title":"Byteman BMUnit","description":"The Byteman bmunit jar provides integration of Byteman into TestNG and JUnit tests.","status":"active","version":"4.0.26","language":"java","source_language":null,"source_url":"http://fisheye.jboss.org/browse/byteman/","tags":["byteman","testing","junit","testng","instrumentation"],"install":[{"cmd":"<dependency>\n  <groupId>org.jboss.byteman</groupId>\n  <artifactId>byteman-bmunit</artifactId>\n  <version>4.0.26</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.jboss.byteman:byteman-bmunit:4.0.26'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"BMRule","correct":"org.jboss.byteman.contrib.bmunit.BMRule"}],"quickstart":{"code":"import org.jboss.byteman.contrib.bmunit.BMRule;\nimport org.jboss.byteman.contrib.bmunit.BMUnitRunner;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\n@RunWith(BMUnitRunner.class)\npublic class TestClass {\n    @Test\n    @BMRule(name = \"test\", targetClass = \"Target\", targetMethod = \"method\", action = \"System.out.println(\\\"intercepted\\\")\")\n    public void testMethod() {\n        new Target().method();\n    }\n}","lang":"java","description":"Uses BMRule to intercept a method call during a JUnit test."},"warnings":[],"env_vars":null,"search_vec":"'bmunit':2,5 'byteman':1,4,10,16 'instrument':20 'integr':8 'jar':6 'junit':14,18 'provid':7 'test':15,17 'testng':12,19","created_at":"2026-06-15T10:28:34.876174+00:00","updated_at":"2026-06-15T10:28:34.876174+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://www.jboss.org/byteman","github":null,"docs":"https://appdoc.app/artifact/org.jboss.byteman/byteman-bmunit/","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}}