← 返回首页
技能

java-junit

github · 1.0.0 · 下载量 3.9万 · 热度分 51.0

出处与授权

作者: github
许可证: MIT 许可证

本站只收录项目元数据与简介,不对作者正文做转载;完整内容请到上方出处查看。商用前请自行核对原仓库的 LICENSE 与 NOTICE。

⚠ 上游仓库根目录未找到 LICENSE/COPYING 文件,以上许可证名来自第三方登记、未经核实。请到出处自行确认后再商用。

产品介绍

'Write, review and fix Java unit tests with JUnit 5 and JUnit 6 (Jupiter), AssertJ and Mockito: assertions, parameterized and nested tests, mocking rules, deterministic time and randomness, Surefire vs Failsafe, JaCoCo coverage, optional PIT mutation testing, and guardrails for agents (never skip or delete failing tests). Use when adding, refactoring or debugging tests in Maven or Gradle projects. Framework-neutral.'

资源信息

作者:github
分类:知识库 RAG 私有问答
语言:en
版本:1.0.0
认证方式: 无需认证
许可证:MIT
是否付费: 官方标注免费
发布方:github

许可证信息摘自官方源,可能过时或缺失。商用前请以原仓库的 LICENSE 文件为准。

标签
知识库 RAG / java-junit

功能说明

  • First: detect, don't impose
  • JUnit 5 vs JUnit 6
  • Assertions
  • Mocking (Mockito)
  • Determinism
  • Unit vs integration tests
  • Coverage and mutation testing (optional)
  • Agent guardrails
适用场景
Assert on outcomes and state, not on how many times internals were called.Compare values; avoid bare assertNotNull.Never catch AssertionError/Exception to make a test pass.Prefer a hand-written fake over a mock when the interaction is stateful.Avoid mockStatic/mockConstruction; wrap the static call behind an interface.Gradle: ./gradlew test --tests 'demo.OrdersTest', then ./gradlew check.

适用平台

Claude Code

信息边界说明

本页信息摘自官方文档,仅作技术信息呈现,不代表本站的判断或推荐。价格、配额、可用性以官方最新说明为准。你离开本站后的任何行为(申请 Key、付费、部署、商用),本站不做任何承诺与担保。

同类推荐

ima-skills

需申请 Key

ima skills,支持对笔记、知识库的读取、写入和检索等操作,可以帮你随时记录,收入ima智能管理,随时调用,龙虾输出精准懂你,友好的接入了OpenClaw生态,构建你的第二大脑。

全网搜索

免费增值需申请 Key

通过“查一下、搜一下、搜索、找一下”等自然语言检索公开网页,整理来源并交付横版 PDF、Markdown 与标题链接表。支持用户主动开启、查看和取消技能收藏,保留原报告取回。

web-tools-guide

需申请 Key

MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_search failure → must guide user to configure API), fallback chain (opencli CLI covers 70+ sites as structured fallback before browser), and site-specific login URLs. Without reading this skill, you WILL handle failures incorrectly and miss available tools. Trigger on: 搜索/上网/查资料/打开网站/抓取网页/新闻/热点/web search/fetch/browser/opencli.

腾讯新闻

官方标注收费需申请 Key

腾讯新闻综合信息服务工具,支持新闻搜索与热榜/早晚报/订阅引导、腾讯较真事实查证、全国市县天气与天气预警查询、体育赛事的赛程比分查询,以及中国普通高考常规批次的一分一段、省控线、院校专业录取数据和院校优先/专业优先冲稳保志愿方案。当用户需要新闻资讯、判断信息真假、查询天气或异常天气、查询某项赛事或某支球队最近的比赛、了解高考录取数据或规划志愿时使用。

Baidu web search

需申请 Key

使用百度AI搜索引擎(BDSE)进行网络搜索。适用于获取实时信息、文档资料或研究课题。

Find Skills Skill

官方未说明

从多种来源搜索和发现OpenClaw技能。使用场景:用户想要查找可用技能、搜索特定功能或发现新技能。

什么是技能

技能(Skill)是封装好的单项能力,比如文字识别、文档摘要、关键词提取。开发者把调用逻辑和提示词打包,使用者像用插件一样加载即可,无需了解底层模型。启枢技能 收录大量技能,可直接试跑或编入方案。