Search in sources :

Example 11 with ArchetypeTableConfiguration

use of org.kie.workbench.common.screens.archetype.mgmt.client.table.config.ArchetypeTableConfiguration in project kie-wb-common by kiegroup.

the class AbstractArchetypeTablePresenterTest method isShowStatusColumnWhenIsTrueTest.

@Test
public void isShowStatusColumnWhenIsTrueTest() {
    final ArchetypeTableConfiguration config = new ArchetypeTableConfiguration.Builder().withStatusColumn().build();
    doReturn(config).when(presenter).getConfiguration();
    final boolean result = presenter.isShowStatusColumn();
    assertTrue(result);
}
Also used : ArchetypeTableConfiguration(org.kie.workbench.common.screens.archetype.mgmt.client.table.config.ArchetypeTableConfiguration) Test(org.junit.Test)

Example 12 with ArchetypeTableConfiguration

use of org.kie.workbench.common.screens.archetype.mgmt.client.table.config.ArchetypeTableConfiguration in project kie-wb-common by kiegroup.

the class AbstractArchetypeTablePresenterTest method isShowIncludeColumnWhenIsFalseTest.

@Test
public void isShowIncludeColumnWhenIsFalseTest() {
    final ArchetypeTableConfiguration config = new ArchetypeTableConfiguration.Builder().build();
    doReturn(config).when(presenter).getConfiguration();
    final boolean result = presenter.isShowIncludeColumn();
    assertFalse(result);
}
Also used : ArchetypeTableConfiguration(org.kie.workbench.common.screens.archetype.mgmt.client.table.config.ArchetypeTableConfiguration) Test(org.junit.Test)

Example 13 with ArchetypeTableConfiguration

use of org.kie.workbench.common.screens.archetype.mgmt.client.table.config.ArchetypeTableConfiguration in project kie-wb-common by kiegroup.

the class SpaceArchetypeTablePresenterTest method initConfigurationTest.

@Test
public void initConfigurationTest() {
    final ArchetypeTableConfiguration expectedConfig = new ArchetypeTableConfiguration.Builder().withStatusColumn().withIncludeColumn().build();
    assertEquals(expectedConfig, presenter.initConfiguration());
}
Also used : ArchetypeTableConfiguration(org.kie.workbench.common.screens.archetype.mgmt.client.table.config.ArchetypeTableConfiguration) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)13 ArchetypeTableConfiguration (org.kie.workbench.common.screens.archetype.mgmt.client.table.config.ArchetypeTableConfiguration)13 PaginatedArchetypeList (org.kie.workbench.common.screens.archetype.mgmt.shared.model.PaginatedArchetypeList)3