public enum Qualifier {
PROJECT(org.sonar.api.resources.Qualifiers.PROJECT),
MODULE(org.sonar.api.resources.Qualifiers.MODULE),
+ APP(org.sonar.api.resources.Qualifiers.APP),
VIEW(org.sonar.api.resources.Qualifiers.VIEW),
SUB_VIEW(org.sonar.api.resources.Qualifiers.SUBVIEW);
import org.sonar.api.web.page.Page.Qualifier;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.sonar.api.web.page.Page.Qualifier.APP;
import static org.sonar.api.web.page.Page.Qualifier.MODULE;
import static org.sonar.api.web.page.Page.Qualifier.PROJECT;
import static org.sonar.api.web.page.Page.Qualifier.SUB_VIEW;
assertThat(Qualifier.PROJECT.getKey()).isEqualTo(org.sonar.api.resources.Qualifiers.PROJECT);
assertThat(Qualifier.MODULE.getKey()).isEqualTo(org.sonar.api.resources.Qualifiers.MODULE);
assertThat(Qualifier.VIEW.getKey()).isEqualTo(org.sonar.api.resources.Qualifiers.VIEW);
+ assertThat(Qualifier.APP.getKey()).isEqualTo(org.sonar.api.resources.Qualifiers.APP);
assertThat(Qualifier.SUB_VIEW.getKey()).isEqualTo(org.sonar.api.resources.Qualifiers.SUBVIEW);
}
public void authorized_qualifiers() {
Qualifier[] qualifiers = Qualifier.values();
- assertThat(qualifiers).hasSize(4).containsOnly(PROJECT, MODULE, VIEW, SUB_VIEW);
+ assertThat(qualifiers).containsExactlyInAnyOrder(PROJECT, MODULE, VIEW, SUB_VIEW, APP);
}
@Test