Package org.sonar.core.dashboard

Examples of org.sonar.core.dashboard.WidgetPropertyDto


          .setConfigured(true);
        widgetDto.setCreatedAt(now).setUpdatedAt(now);
        dashboardDto.addWidget(widgetDto);

        for (Entry<String, String> property : widget.getProperties().entrySet()) {
          WidgetPropertyDto propDto = new WidgetPropertyDto()
            .setPropertyKey(property.getKey())
            .setTextValue(property.getValue());
          widgetDto.addWidgetProperty(propDto);
        }
      }
View Full Code Here


    assertThat(widgetDto.getCreatedAt()).isNotNull();
    assertThat(widgetDto.getUpdatedAt()).isNotNull();

    Collection<WidgetPropertyDto> props = widgetDto.getWidgetProperties();
    assertThat(props).hasSize(1);
    WidgetPropertyDto prop = Iterables.getFirst(props, null);
    assertThat(prop.getPropertyKey()).isEqualTo("fake-property");
    assertThat(prop.getTextValue()).isEqualTo("fake_metric");
  }
View Full Code Here

TOP

Related Classes of org.sonar.core.dashboard.WidgetPropertyDto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.