Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Feb 6, 2019
2 parents 15a45c4 + f45344c commit 334b23a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 28 deletions.
Expand Up @@ -46,7 +46,17 @@ public AjaxCompositedIconButton(String id, CompositedIcon icon, IModel<String> t

this.title = title;
this.icon =icon;

add(AttributeAppender.append("class", new IModel<String>() {

private static final long serialVersionUID = 1L;

@Override
public String getObject() {
return " position-relative ";
}
}));

add(AttributeAppender.append("class", new IModel<String>() {

private static final long serialVersionUID = 1L;
Expand Down
Expand Up @@ -86,8 +86,8 @@ public void onClick(AjaxRequestTarget target) {

CompositedIconBuilder additionalButtonBuilder = new CompositedIconBuilder();
additionalButtonBuilder.setBasicIcon(WebComponentUtil.getIconCssClass(additionalButtonDisplayType), IconCssStyle.IN_ROW_STYLE)
.appendColorHtmlValue(WebComponentUtil.getIconColor(additionalButtonDisplayType));
// .appendLayerIcon(GuiStyleConstants.CLASS_PLUS_CIRCLE, IconCssStyle.BOTTOM_RIGHT_STYLE, GuiStyleConstants.GREEN_COLOR);
.appendColorHtmlValue(WebComponentUtil.getIconColor(additionalButtonDisplayType))
.appendLayerIcon(GuiStyleConstants.CLASS_PLUS_CIRCLE, IconCssStyle.BOTTOM_RIGHT_STYLE, GuiStyleConstants.GREEN_COLOR);

AjaxCompositedIconButton additionalButton = new AjaxCompositedIconButton(buttonsPanel.newChildId(), additionalButtonBuilder.build(),
Model.of(WebComponentUtil.getDisplayTypeTitle(additionalButtonDisplayType))) {
Expand All @@ -106,9 +106,8 @@ public void onClick(AjaxRequestTarget target) {
DisplayType defaultObjectButtonDisplayType = getDefaultObjectButtonDisplayType();
CompositedIconBuilder defaultObjectButtonBuilder = new CompositedIconBuilder();
defaultObjectButtonBuilder.setBasicIcon(WebComponentUtil.getIconCssClass(defaultObjectButtonDisplayType), IconCssStyle.IN_ROW_STYLE)
.appendColorHtmlValue(WebComponentUtil.getIconColor(defaultObjectButtonDisplayType));
//TODO fix style for circle image
// .appendLayerIcon(GuiStyleConstants.CLASS_PLUS_CIRCLE, IconCssStyle.BOTTOM_RIGHT_STYLE, GuiStyleConstants.GREEN_COLOR);
.appendColorHtmlValue(WebComponentUtil.getIconColor(defaultObjectButtonDisplayType))
.appendLayerIcon(GuiStyleConstants.CLASS_PLUS_CIRCLE, IconCssStyle.BOTTOM_RIGHT_STYLE, GuiStyleConstants.GREEN_COLOR);

AjaxCompositedIconButton defaultButton = new AjaxCompositedIconButton(buttonsPanel.newChildId(),
defaultObjectButtonBuilder.build(),
Expand Down
Expand Up @@ -1460,4 +1460,8 @@ th.countLabel{

.buttons-panel-marging{
margin: 10px;
}

.position-relative{
position: relative;
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017 Evolveum
* Copyright (c) 2016-2019 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,6 @@
package com.evolveum.midpoint.testing.story;


import static com.evolveum.midpoint.test.IntegrationTestTools.display;
import static org.testng.AssertJUnit.assertNotNull;

import java.io.File;
Expand Down Expand Up @@ -108,8 +107,6 @@ public class TestLdapDependency extends AbstractStoryTest {
private static final String LDAP_OU_INTENT = "ou";
private static final String LDAP_OU_VIP_INTENT = "ou-vip";


private ResourceType resourceOpenDjType;
private PrismObject<ResourceType> resourceOpenDj;


Expand Down Expand Up @@ -158,8 +155,7 @@ public void initSystem(Task initTask, OperationResult initResult) throws Excepti


// Resources
resourceOpenDj = importAndGetObjectFromFile(ResourceType.class, getResourceOpenDjFile(), RESOURCE_OPENDJ_OID, initTask, initResult);
resourceOpenDjType = resourceOpenDj.asObjectable();
resourceOpenDj = importAndGetObjectFromFile(ResourceType.class, getResourceOpenDjFile(), RESOURCE_OPENDJ_OID, initTask, initResult);
openDJController.setResource(resourceOpenDj);

// Org
Expand All @@ -174,7 +170,7 @@ public void initSystem(Task initTask, OperationResult initResult) throws Excepti
@Test
public void test000Sanity() throws Exception {
final String TEST_NAME = "test000Sanity";
TestUtil.displayTestTitle(this, TEST_NAME);
displayTestTitle(TEST_NAME);
Task task = taskManager.createTaskInstance(TestTrafo.class.getName() + "." + TEST_NAME);

OperationResult testResultOpenDj = modelService.testResource(RESOURCE_OPENDJ_OID, task);
Expand All @@ -187,8 +183,8 @@ public void test000Sanity() throws Exception {
@Test
public void test100AddOrgIT() throws Exception {
final String TEST_NAME = "test100AddOrgIT";
TestUtil.displayTestTitle(this, TEST_NAME);
Task task = taskManager.createTaskInstance(TestLdapDependency.class.getName() + "." + TEST_NAME);
displayTestTitle(TEST_NAME);
Task task = createTask(TEST_NAME);
OperationResult result = task.getResult();

PrismObject<OrgType> orgBefore = createOrg(ORG_IT_NAME, ORG_TOP_OID);
Expand Down Expand Up @@ -216,8 +212,8 @@ public void test100AddOrgIT() throws Exception {
@Test
public void test150AssignFunctionalRoleToITOrg() throws Exception {
final String TEST_NAME = "test150AssignFunctionalRoleToITOrg";
TestUtil.displayTestTitle(this, TEST_NAME);
Task task = taskManager.createTaskInstance(TestLdapDependency.class.getName() + "." + TEST_NAME);
displayTestTitle(TEST_NAME);
Task task = createTask(TEST_NAME);
OperationResult result = task.getResult();

PrismObject<OrgType> orgBefore = getOrg(ORG_IT_NAME);
Expand Down Expand Up @@ -247,8 +243,8 @@ public void test150AssignFunctionalRoleToITOrg() throws Exception {
@Test
public void test170UnassignFunctionalRoleFromITOrg() throws Exception {
final String TEST_NAME = "test170UnassignFunctionalRoleFromITOrg";
TestUtil.displayTestTitle(this, TEST_NAME);
Task task = taskManager.createTaskInstance(TestLdapDependency.class.getName() + "." + TEST_NAME);
displayTestTitle(TEST_NAME);
Task task = createTask(TEST_NAME);
OperationResult result = task.getResult();

PrismObject<OrgType> orgBefore = getOrg(ORG_IT_NAME);
Expand Down Expand Up @@ -279,8 +275,8 @@ public void test170UnassignFunctionalRoleFromITOrg() throws Exception {
@Test
public void test200AddOrgHR() throws Exception {
final String TEST_NAME = "test200AddOrgHR";
TestUtil.displayTestTitle(this, TEST_NAME);
Task task = taskManager.createTaskInstance(TestLdapDependency.class.getName() + "." + TEST_NAME);
displayTestTitle(TEST_NAME);
Task task = createTask(TEST_NAME);
OperationResult result = task.getResult();

PrismObject<OrgType> orgBefore = createOrg(ORG_HR_NAME, ORG_TOP_OID);
Expand Down Expand Up @@ -308,8 +304,8 @@ public void test200AddOrgHR() throws Exception {
@Test
public void test250AssignFunctionalAndVipRoleToHROrg() throws Exception {
final String TEST_NAME = "test250AssignFunctionalAndVipRoleToHROrg";
TestUtil.displayTestTitle(this, TEST_NAME);
Task task = taskManager.createTaskInstance(TestLdapDependency.class.getName() + "." + TEST_NAME);
displayTestTitle(TEST_NAME);
Task task = createTask(TEST_NAME);
OperationResult result = task.getResult();

PrismObject<OrgType> orgBefore = getOrg(ORG_HR_NAME);
Expand Down Expand Up @@ -342,8 +338,8 @@ public void test250AssignFunctionalAndVipRoleToHROrg() throws Exception {
@Test
public void test270UnassignVipRoleFromHROrg() throws Exception {
final String TEST_NAME = "test270UnassignVipRoleFromHROrg";
TestUtil.displayTestTitle(this, TEST_NAME);
Task task = taskManager.createTaskInstance(TestLdapDependency.class.getName() + "." + TEST_NAME);
displayTestTitle(TEST_NAME);
Task task = createTask(TEST_NAME);
OperationResult result = task.getResult();

PrismObject<OrgType> orgBefore = getOrg(ORG_HR_NAME);
Expand Down Expand Up @@ -376,8 +372,8 @@ public void test270UnassignVipRoleFromHROrg() throws Exception {
@Test
public void test280AssignVipAndSuperVipRoleToHROrg() throws Exception {
final String TEST_NAME = "test280AssignVipAndSuperVipRoleToHROrg";
TestUtil.displayTestTitle(this, TEST_NAME);
Task task = taskManager.createTaskInstance(TestLdapDependency.class.getName() + "." + TEST_NAME);
displayTestTitle(TEST_NAME);
Task task = createTask(TEST_NAME);
OperationResult result = task.getResult();

PrismObject<OrgType> orgBefore = getOrg(ORG_HR_NAME);
Expand Down Expand Up @@ -411,8 +407,8 @@ public void test280AssignVipAndSuperVipRoleToHROrg() throws Exception {
@Test
public void test290UnassignVipRoleFromHROrg() throws Exception {
final String TEST_NAME = "test290UnassignVipRoleFromHROrg";
TestUtil.displayTestTitle(this, TEST_NAME);
Task task = taskManager.createTaskInstance(TestLdapDependency.class.getName() + "." + TEST_NAME);
displayTestTitle(TEST_NAME);
Task task = createTask(TEST_NAME);
OperationResult result = task.getResult();

PrismObject<OrgType> orgBefore = getOrg(ORG_HR_NAME);
Expand Down

0 comments on commit 334b23a

Please sign in to comment.