package uk.ac.ebi.quickgo.client.presets.read;

import org.junit.Test;
import org.springframework.batch.item.validator.ValidationException;

/**
 * Created 05/09/16
 * @author Edd
 */
public class PresetsValidationHelperTest {
    @Test(expected = ValidationException.class)
    public void checkIsNullOrEmptyProducesExceptionOnNullValue() {
        PresetsValidationHelper.checkIsNullOrEmpty(null);
    }

    @Test(expected = ValidationException.class)
    public void checkIsNullOrEmptyProducesExceptionOnEmptyValue() {
        PresetsValidationHelper.checkIsNullOrEmpty("");
    }
}
@@ -577,10 +577,162 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void checkIsNullOrEmptyIsFalseForNonNullOrEmptyValue() %7B%0A        PresetsValidationHelper.checkIsNullOrEmpty(%22valid value%22);%0A    %7D
 %0A%7D

test for non-null/empty input data