Skip to content

Commit

Permalink
Merge pull request #131 from aechiara/master
Browse files Browse the repository at this point in the history
Fix for test not compatible with Java 8
  • Loading branch information
zbateson authored Mar 18, 2020
2 parents 19c50d7 + 6c12c6e commit cd13df7
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,17 @@

package com.strider.datadefender.functions;

import com.strider.datadefender.utils.Xeger;
import com.strider.datadefender.utils.XegerTest;
import junit.framework.TestCase;
import org.apache.log4j.Logger;

import org.junit.Test;

import static org.apache.log4j.Logger.getLogger;

import com.strider.datadefender.utils.Xeger;
import com.strider.datadefender.utils.XegerTest;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

import junit.framework.TestCase;
import static org.apache.log4j.Logger.getLogger;

/**
* Core data anonymizer functions
Expand Down Expand Up @@ -104,7 +102,7 @@ public void testRandomDate() throws Exception {

String rand = cf.randomDate(dateStart, dateEnd, format);
assertNotNull(rand);
assertFalse(rand.isBlank());
assertFalse(rand.isEmpty());
log.debug("Generated random date: " + rand);

DateTimeFormatter fmt = DateTimeFormatter.ofPattern(format);
Expand All @@ -127,7 +125,7 @@ public void testRandomDateTime() throws Exception {

String rand = cf.randomDateTime(dateStart, dateEnd, format);
assertNotNull(rand);
assertFalse(rand.isBlank());
assertFalse(rand.isEmpty());
log.debug("Generated random date/time: " + rand);

DateTimeFormatter fmt = DateTimeFormatter.ofPattern(format);
Expand Down

0 comments on commit cd13df7

Please sign in to comment.