Uses of Class
org.apache.juneau.console.test.PageContractAssert
Packages that use PageContractAssert
Package
Description
Test helpers for console pages:
PageContractAssert asserts on the
#juneau-page contract of a rendered page instead of on rendered chrome HTML, and
AssetResolutionAssert asserts that every asset a page links resolves.-
Uses of PageContractAssert in org.apache.juneau.console.test
Methods in org.apache.juneau.console.test that return PageContractAssertModifier and TypeMethodDescriptionstatic PageContractAssertPageContractAssert.assertPage(String html) Parses the contract and templates out of a rendered page.PageContractAssert.declaresTopic(String topic) PageContractAssert.hasActiveNav(String... idPath) PageContractAssert.hasCardKey(String id, String jsonPointer, Object expected) PageContractAssert.hasCardOrder(String... ids) PageContractAssert.hasCardSrc(String id, String src) PageContractAssert.hasContractVersion(String v) PageContractAssert.hasFooterSlot(String name) PageContractAssert.hasFooterText(String v) PageContractAssert.hasHeaderSlot(String name) PageContractAssert.hasHeaderTitle(String v) PageContractAssert.hasNavChildren(String idPath, String... childIds) PageContractAssert.hasNavHref(String id, String href) PageContractAssert.hasNavPath(String... idPath) PageContractAssert.hasNoActiveNav()AssertsactiveNavis empty (the JS prefix fallback applies).PageContractAssert.hasNoWiringErrors()Runs R-10 and R-11 against the standard card-type registry.PageContractAssert.hasNoWiringErrors(CardTypeRegistry registry) PageContractAssert.isTwinOf(PageContractAssert other) Asserts this page and another render the same contract and the same template markup.PageContractAssert.isValid()Asserts the contract passes the schema and rules R-1..R-4.PageContractAssert.subscribes(String cardId, String topic) PageContractAssert.subscribes(String cardId, String topic, String role) PageContractAssert.templateContains(String templateId, String fragment) Methods in org.apache.juneau.console.test with parameters of type PageContractAssertModifier and TypeMethodDescriptionPageContractAssert.isTwinOf(PageContractAssert other) Asserts this page and another render the same contract and the same template markup.