Skip to content

Commit

Permalink
another midscale tests
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Jan 25, 2021
1 parent 079de1c commit 76675b4
Showing 1 changed file with 22 additions and 0 deletions.
Expand Up @@ -8,6 +8,10 @@

import java.io.File;

import com.evolveum.midpoint.web.page.admin.configuration.PageSystemConfiguration;
import com.evolveum.midpoint.web.page.admin.server.PageTasks;

import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.javasimon.Split;
import org.javasimon.Stopwatch;
import org.springframework.boot.test.context.SpringBootTest;
Expand Down Expand Up @@ -102,6 +106,10 @@ public void test110PageDashboard() {
}

private void runTestFor(Class pageToRender, String stopwatchName, String stopwatchDescription) {
runTestFor(pageToRender, null, stopwatchName, stopwatchDescription);
}

private void runTestFor(Class pageToRender, PageParameters params, String stopwatchName, String stopwatchDescription) {
Stopwatch stopwatch = stopwatch(stopwatchName, stopwatchDescription);
for (int i = 0; i < 1; i++) {
try (Split ignored = stopwatch.start()) {
Expand Down Expand Up @@ -140,6 +148,20 @@ public void test310orgTree() throws Exception {
runTestFor(PageOrgTree.class, "orgTree", "Organization tree");
}

@Test
public void test410allTasks() {
logger.info(getTestName());
runTestFor(PageTasks.class, "tasks", "All tasks");
}

@Test
public void test510systemConfigurationAdminGuiConfig() {
logger.info(getTestName());
PageParameters params = new PageParameters();
params.add(PageSystemConfiguration.SELECTED_TAB_INDEX, PageSystemConfiguration.CONFIGURATION_TAB_ADMIN_GUI);
runTestFor(PageSystemConfiguration.class, params,"tasks", "All tasks");
}

@Test(enabled = false) // doesn't work because of getPageBase usages
public void test200sidebarMenu() {
logger.info(getTestName());
Expand Down

0 comments on commit 76675b4

Please sign in to comment.