Skip to content

Commit

Permalink
Disabling sonar on test / dev modules
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Jul 8, 2023
1 parent b54e5b7 commit fd622b7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/cui-jsf-dev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<description>Components for creating the deleoper documentation</description>
<properties>
<version.jaxen>2.0.0</version.jaxen>
<sonar.skip>true</sonar.skip>
</properties>
<dependencyManagement>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package de.cuioss.jsf.dev.metadata.composite;

import static org.junit.jupiter.api.Assertions.assertNull;

import javax.faces.component.html.HtmlInputText;

import org.junit.jupiter.api.Test;

import de.cuioss.test.jsf.config.ComponentConfigurator;
import de.cuioss.test.jsf.config.decorator.ComponentConfigDecorator;
import de.cuioss.test.jsf.junit5.JsfEnabledTestEnvironment;

class CompositeUtilTest extends JsfEnabledTestEnvironment implements ComponentConfigurator {

@Test
void shouldLoadCompositeInfo() {
var info = CompositeUtil.loadMetadataInfo(getFacesContext(), "dev-composite", "namespace.xhtml");
assertNull(info); // Expected, no path present
}

@Override
public void configureComponents(ComponentConfigDecorator decorator) {
decorator.registerCompositeComponent("dev-composite", "namespace.xhtml", new HtmlInputText());
}

}
3 changes: 3 additions & 0 deletions modules/cui-jsf-jqplot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<artifactId>cui-jsf-jqplot</artifactId>
<name>cui jqplot</name>
<description>Defines componente s / structures to render jqplot base diagrams</description>
<properties>
<sonar.skip>true</sonar.skip>
</properties>
<dependencies>
<dependency>
<groupId>de.cuioss.jsf</groupId>
Expand Down

0 comments on commit fd622b7

Please sign in to comment.