Skip to content

Commit

Permalink
[JENKINS-70464] Test EmbeddableBadgeConfigsAction (#250)
Browse files Browse the repository at this point in the history
* added 'EmbeddableBadgeConfigsActionTest' for test coverage

* Update src/test/java/org/jenkinsci/plugins/badge/actions/EmbeddableBadgeConfigsActionTest.java

Co-authored-by: Mark Waite <[email protected]>

* Update src/test/java/org/jenkinsci/plugins/badge/actions/EmbeddableBadgeConfigsActionTest.java

Co-authored-by: Mark Waite <[email protected]>

* Update src/test/java/org/jenkinsci/plugins/badge/actions/EmbeddableBadgeConfigsActionTest.java

Co-authored-by: Mark Waite <[email protected]>

* Update src/test/java/org/jenkinsci/plugins/badge/actions/EmbeddableBadgeConfigsActionTest.java

Co-authored-by: Mark Waite <[email protected]>

---------

Co-authored-by: Mark Waite <[email protected]>
  • Loading branch information
abhishekmaity and MarkEWaite authored Oct 9, 2023
1 parent ce169d5 commit 01b7dfc
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package org.jenkinsci.plugins.badge.actions;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNull.nullValue;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

public class EmbeddableBadgeConfigsActionTest {

EmbeddableBadgeConfigsAction embeddableBadgeConfigsAction;

@BeforeEach
void setUp() {
embeddableBadgeConfigsAction = new EmbeddableBadgeConfigsAction();
}

@Test
public void getUrlNameTest() {
assertThat(embeddableBadgeConfigsAction.getUrlName(), is(""));
}

@Test
public void getDisplayNameTest() {
assertThat(embeddableBadgeConfigsAction.getDisplayName(), is(""));
}

@Test
public void getIconFileNameTest() {
assertThat(embeddableBadgeConfigsAction.getIconFileName(), is(nullValue()));
}
}

0 comments on commit 01b7dfc

Please sign in to comment.