本文整理匯總了Java中org.sonar.api.web.page.Page類的典型用法代碼示例。如果您正苦於以下問題:Java Page類的具體用法?Java Page怎麽用?Java Page使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Page類屬於org.sonar.api.web.page包,在下文中一共展示了Page類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: given_framaCDashboard_when_buildMetricsSummaryPage_then_dashboardPage
import org.sonar.api.web.page.Page; //導入依賴的package包/類
@Test
public void given_framaCDashboard_when_buildMetricsSummaryPage_then_dashboardPage() {
FramaCDashboard framaCDashboard = new FramaCDashboard();
Page actual = framaCDashboard.buildMetricsSummaryPage();
assertEquals(FramaCDashboard.PAGE_KEY_FRAMAC_FRAMAC_METRICS_SUMMARY, actual.getKey());
assertEquals(FramaCDashboard.PAGE_NAME_FRAMA_C_METRICS_SUMMARY, actual.getName());
assertEquals(Scope.COMPONENT, actual.getScope());
}
示例2: define
import org.sonar.api.web.page.Page; //導入依賴的package包/類
@Override
public void define(Context context)
{
context
.addPage(Page.builder("licensecheck/configuration")
.setName("License Check")
.setAdmin(true)
.build());
context.addPage(Page.builder("licensecheck/dashboard")
.setName("License Check")
.setScope(Page.Scope.COMPONENT)
.setComponentQualifiers(Page.Qualifier.PROJECT)
.build());
}
示例3: define
import org.sonar.api.web.page.Page; //導入依賴的package包/類
@Override
public void define(final Context context) {
final Page issueresolverPage = Page.builder("issueresolver/entrypoint").setName("Issue resolver")
.setScope(Scope.COMPONENT).setComponentQualifiers(Qualifier.PROJECT).setAdmin(true).build();
context.addPage(issueresolverPage);
}
示例4: buildMetricsSummaryPage
import org.sonar.api.web.page.Page; //導入依賴的package包/類
protected Page buildMetricsSummaryPage(){
return Page.builder(PAGE_KEY_FRAMAC_FRAMAC_METRICS_SUMMARY)
.setName(PAGE_NAME_FRAMA_C_METRICS_SUMMARY)
.setScope(Scope.COMPONENT).build();
}