Skip to content

Commit

Permalink
Unit-Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Jul 8, 2023
1 parent 0c5aa39 commit b54e5b7
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package de.cuioss.jsf.api.components.base;

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

import org.junit.jupiter.api.Test;

import de.cuioss.test.jsf.component.AbstractComponentTest;

class CuiComponentBaseTest extends AbstractComponentTest<CuiComponentBase> {

@Test
void shouldActAsBridge() {
assertNotNull(anyComponent().facesContext());
assertNull(anyComponent().facet("notThere"));
assertNotNull(anyComponent().stateHelper());
assertEquals(CuiComponentBase.COMPONENT_FAMILY, anyComponent().getFamily());
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package de.cuioss.jsf.dev.metadata.composite;

import de.cuioss.test.jsf.component.AbstractComponentTest;

class CompositeComponentTagTest extends AbstractComponentTest<CompositeComponentTag> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
*/
public class LabelRenderer implements Serializable {

/**
*
*/
private static final long serialVersionUID = -8726937375368616050L;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package de.cuioss.jsf.jqplot.renderer;

import de.cuioss.test.valueobjects.junit5.contracts.ShouldBeSerializable;

class LabelRendererTest implements ShouldBeSerializable<LabelRenderer> {

@Override
public LabelRenderer getUnderTest() {
return new LabelRenderer();
}

}

0 comments on commit b54e5b7

Please sign in to comment.