{
  "id": "java/junit-disabled-test-still-runs",
  "signature": "java.lang.AssertionError: Test 'shouldFail' is disabled but still executed?",
  "signature_zh": "断言错误：测试 'shouldFail' 已禁用但仍被执行？",
  "regex": "java\\.lang\\.AssertionError:\\ Test\\ 'shouldFail'\\ is\\ disabled\\ but\\ still\\ executed\\?",
  "domain": "java",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Misuse of @Disabled annotation, or test runner ignores @Disabled due to configuration.",
  "root_cause_type": "generic",
  "root_cause_zh": "@Disabled 注解使用不当，或测试运行器因配置忽略 @Disabled。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Removing @Disabled and commenting test",
      "why_fails": "Test becomes dead code; may be forgotten.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using @Ignore instead (JUnit 4 style)",
      "why_fails": "JUnit 5 may not recognize @Ignore unless Jupiter API is used.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure @Disabled is on test method or class",
      "success_rate": 0.95,
      "how": "@Disabled(\"Reason\")\n@Test\nvoid test() {\n    // disabled\n}",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check build configuration for JUnit vintage engine",
      "success_rate": 0.8,
      "how": "// Ensure no conflicting test runners\n// Remove junit-vintage-engine if using JUnit 5 only",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.81,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-05-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}