本文整理汇总了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();
}