Add WicketTester#executeBehavior(Class) to run a behavior by its type
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 67/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- backend-api-design, testing
Hướng nghiên cứu
Read BaseWicketTester.java beside executeBehavior(AbstractAjaxBehavior) and the listed BaseWicketTesterTest.java tests. Decide whether lookup should take a component and behavior class or search the page, then document the public API with Javadoc and the next release's @since. Done means tests cover clear failures for no match and multiple matches.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
WicketTester#executeBehavior(AbstractAjaxBehavior) needs the behavior instance. A behavior added inside the tested component is usually not reachable from the test, so the test has to dig it out first:
MyPanel panel = tester.startComponentInPage(new MyPanel());
panel.getBehaviors(AbstractDefaultAjaxBehavior.class).forEach(tester::executeBehavior);
A variant that finds the behavior by type would make this one call.
Where
wicket-tester/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java, next to executeBehavior(AbstractAjaxBehavior). WicketTester is shipped to applications, so this is public API: it needs Javadoc and an @since with the next release.
Done when
- A method that takes a component and a behavior class is probably more useful than one that searches the whole page; decide which and explain it in the pull request. It fails with a clear message when there is no match or more than one.
- Tests in
wicket-core-tests/src/test/java/org/apache/wicket/util/tester/BaseWicketTesterTest.java.
Background
Originally requested as WICKET-6487.
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.
- Ngôn ngữ chính
- Java
- Star
- 800
- Fork
- 437
- Merge trung bình
- 21 giờ 36 phút
- Pull request đã merge (30 ngày)
- 167
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/wicket
-
PropertyResolver fails on JDK classes with a non-public field named like the propertyCó thể đã có người làm @vaibhavgupta443 đã nhận hôm nay. Đang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
apache/wicket#1991 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stop the autocomplete from accumulating request parameters while typingCó thể đã có người làm @aryankalantri đã nhận hôm nay. Đang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
apache/wicket#1947 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Validate the report-uri value given to CSPHeaderConfiguration#reportBackCó thể đã có người làm @AzizOuertani đã nhận 3 ngày trước. Đang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
apache/wicket#1946 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/wicket
Issue tương tự
-
Quick Installation step 2 installs from the plugin manager, but the plugin isn't published yetĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
account assessment course feature lecture
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] 连接达梦时报错,agent 进程启动即退Đang mởbug db/dameng user-priority/P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
t8y2/dbx#15534 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app:learninggoalhub enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100