Skip to content

Commit

Permalink
Empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Debon committed Mar 18, 2019
1 parent 1584ab5 commit 4d517f9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions java/src/test/java/InvariantTest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assumptions.assumeThat;

import com.pholser.junit.quickcheck.Property;
import com.pholser.junit.quickcheck.runner.JUnitQuickcheck;
import java.time.LocalDate;
import org.junit.Before;
Expand All @@ -18,23 +16,8 @@ public void setUp() {
cut = new Invariant();
}

@Property
public void invariant_31_12(short anyYear) {
System.out.println(anyYear);
assertThat(cut.isNewYearEve(LocalDate.of(anyYear, 12, 31))).isTrue();
}

@Property(trials = 1000)
public void invariant_not_31_12(LocalDate anyDate) {
System.out.println(anyDate);
assumeThat(anyDate.getMonthValue() != 12 || anyDate.getDayOfMonth() != 31).isTrue();

assertThat(cut.isNewYearEve(anyDate)).isFalse();
}

@Test
public void _2018_12_31() {

assertThat(cut.isNewYearEve(LocalDate.of(2018, 12, 31))).isTrue();
}

Expand Down

0 comments on commit 4d517f9

Please sign in to comment.