Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
Added unit test for Descriptor of IssuesRecorder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arne2 committed Mar 22, 2018
1 parent fc72ce5 commit f91c753
Showing 1 changed file with 27 additions and 0 deletions.
@@ -0,0 +1,27 @@
package io.jenkins.plugins.analysis.core.steps;

import org.junit.jupiter.api.Test;

import io.jenkins.plugins.analysis.core.steps.IssuesRecorder.Descriptor;
import static io.jenkins.plugins.analysis.core.testutil.FormValidationAssert.assertThat;

import hudson.util.FormValidation;

/**
* @author Arne Schöntag
*/
class IssuesRecorderTest {

@Test
void shouldBeOkIfEncodingIsEmpty(){
//given
Descriptor descriptor = new Descriptor();

//when
FormValidation acturalResult = descriptor.doCheckSourceCodeEncoding("");

//then
assertThat(acturalResult).isOk();
}

}

0 comments on commit f91c753

Please sign in to comment.