Search in sources :

Example 1 with IsEmptyString

use of org.hamcrest.text.IsEmptyString in project acceptance-test-harness by jenkinsci.

the class PmdPluginTest method validatePattern.

private void validatePattern(final FreeStyleJob job, final String pattern) {
    editJob(PLUGIN_ROOT, false, job, PmdFreestyleSettings.class, settings -> {
        String validationMessage = settings.validatePattern(pattern);
        assertThat(validationMessage, isEmptyString());
    });
}
Also used : IsEmptyString(org.hamcrest.text.IsEmptyString)

Aggregations

IsEmptyString (org.hamcrest.text.IsEmptyString)1