Allow a wildcard index in WicketTester component paths
维护者通常 1 天内回复
评估
调研方向
Start with wicket-tester/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java, especially assertLabel and getComponentFromLastRenderedPage, then inspect the tests under wicket-core-tests/src/test/java/org/apache/wicket/util/tester/. First clarify the scope, wildcard character, and behavior when multiple rows match in an issue comment. Done means the agreed path behavior has tests and the public API has Javadoc and an @since tag.
由索引模型根据 Issue 内容生成。
描述
To check a cell of a table or a row of a list view, a test has to know the exact row index:
tester.assertLabel("table:rows:1:cells:2", "MyCell");
When the test only cares that some row contains the value, a wildcard index would make it independent of ordering:
tester.assertLabel("table:rows:?:cells:2", "MyCell");
Where
wicket-tester/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java, assertLabel and the methods that resolve a path to a component (getComponentFromLastRenderedPage). WicketTester is shipped to applications, so new behaviour is public API and needs Javadoc and an @since.
Done when
- Agree in a comment on the scope first: only
assertLabel, or every assertion that takes a path; which character (?or*, and whether either can occur in a real component id); and what "matches" means when several rows match. - Tests in
wicket-core-tests/src/test/java/org/apache/wicket/util/tester/.
Background
Originally requested as WICKET-6488.
Part of #1945. This issue is meant for a first contribution to Wicket. To work on it, leave a comment so others know; a claim without a pull request lapses after two weeks. Questions are welcome, here on the issue or on [email protected]. Start your branch from master, and see Send a pull request to Wicket for building and testing.
- 主要语言
- Java
- 星标
- 800
- 派生
- 437
- 平均合并
- 21 小时 36 分钟
- 30 天内合并 PR
- 167
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/wicket 的其他 Issue
-
PropertyResolver fails on JDK classes with a non-public field named like the property可能已有人在做 @vaibhavgupta443 今天认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
Stop the autocomplete from accumulating request parameters while typing可能已有人在做 @aryankalantri 今天认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
Validate the report-uri value given to CSPHeaderConfiguration#reportBack可能已有人在做 @AzizOuertani 于 3 天前认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
维护者通常 6 天内回复
-
account assessment course feature lecture
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
bug db/dameng user-priority/P2
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
app:learninggoalhub enhancement good first issue
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100