Skip to content

Commit

Permalink
wip added new java test file
Browse files Browse the repository at this point in the history
  • Loading branch information
rcasia committed Oct 20, 2023
1 parent a31138e commit c3c206b
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.example;

import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EmptySource;

import static org.junit.jupiter.api.Assertions.assertTrue;

import org.apache.logging.log4j.util.Strings;

import static org.junit.jupiter.api.Assertions.assertFalse;

public class EmptySourceTest {

@ParameterizedTest
@EmptySource
void emptySourceShouldPass(String input) {
assertTrue(Strings.isBlank(input));
}

@ParameterizedTest
@EmptySource
void emptySourceShouldFail(String input) {
assertFalse(Strings.isBlank(input));
}
}

0 comments on commit c3c206b

Please sign in to comment.