Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-70464] Test EmbeddableBadgeConfigsAction #250

Merged
merged 6 commits into from
Oct 9, 2023
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()));
}
}