Merge pull request #5982 from amit2103/BAEL-10985
[BAEL-10985] - Removed vavr-validation submodule
This commit is contained in:
commit
c96072f515
|
@ -8,10 +8,10 @@ import io.vavr.control.Validation;
|
||||||
public class Application {
|
public class Application {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
UserValidator userValidator = new UserValidator();
|
UserValidator userValidator = new UserValidator();
|
||||||
Validation<Seq<String>, User> validation = userValidator.validateUser("John", "john@domain.com");
|
Validation<Seq<String>, User> validation = userValidator.validateUser("John", "john@domain.com");
|
||||||
|
|
||||||
// process validation results here
|
// process validation results here
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,7 +7,7 @@ import com.baeldung.vavrvalidation.validator.UserValidator;
|
||||||
import io.vavr.control.Validation.Invalid;
|
import io.vavr.control.Validation.Invalid;
|
||||||
import io.vavr.control.Validation.Valid;
|
import io.vavr.control.Validation.Valid;
|
||||||
|
|
||||||
public class UserValidatorTest {
|
public class UserValidatorUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenValidUserParams_whenValidated_thenInstanceOfValid() {
|
public void givenValidUserParams_whenValidated_thenInstanceOfValid() {
|
|
@ -11,7 +11,7 @@ import io.vavr.control.Either.Right;
|
||||||
import io.vavr.control.Validation.Invalid;
|
import io.vavr.control.Validation.Invalid;
|
||||||
import io.vavr.control.Validation.Valid;
|
import io.vavr.control.Validation.Valid;
|
||||||
|
|
||||||
public class ValidationTest {
|
public class ValidationUnitTest {
|
||||||
|
|
||||||
private static UserValidator userValidator;
|
private static UserValidator userValidator;
|
||||||
|
|
Loading…
Reference in New Issue