plugin: CheckConfiguration: simple builder toString coverage test
This commit is contained in:
parent
981893d1a1
commit
a67a64e851
1 changed files with 27 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
package net.kemitix.checkstyle.ruleset.plugin;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
/**
|
||||
* @author Paul Campbell (pcampbell@kemitix.net).
|
||||
*/
|
||||
public class CheckConfigurationTest {
|
||||
|
||||
@Test
|
||||
public void toStringCoverage() {
|
||||
//given
|
||||
final String rulesetVersion = "ruleset version";
|
||||
final String sourceDirectory = "source directory";
|
||||
//when
|
||||
final String result = CheckConfiguration.builder()
|
||||
.rulesetVersion(rulesetVersion)
|
||||
.sourceDirectory(sourceDirectory)
|
||||
.toString();
|
||||
//then
|
||||
System.out.println("result = " + result);
|
||||
assertThat(result).contains("rulesetVersion=ruleset version")
|
||||
.contains("sourceDirectory=source directory");
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue