generated from cuioss/cui-java-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disabling sonar on test / dev modules
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...les/cui-jsf-dev/src/test/java/de/cuioss/jsf/dev/metadata/composite/CompositeUtilTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters