Reformatted some statements
This commit is contained in:
parent
31cd77375a
commit
2f4fcc0b9b
|
@ -107,7 +107,10 @@ public class GuavaRangeSetTest {
|
|||
|
||||
@Test
|
||||
public void givenImmutableRangeSet_whenQueryWithinRange_returnsSucessfully() {
|
||||
final RangeSet<Integer> numberRangeSet = ImmutableRangeSet.<Integer> builder().add(Range.closed(0, 2)).add(Range.closed(3, 5)).add(Range.closed(6, 8)).build();
|
||||
final RangeSet<Integer> numberRangeSet = ImmutableRangeSet.<Integer> builder()
|
||||
.add(Range.closed(0, 2))
|
||||
.add(Range.closed(3, 5))
|
||||
.add(Range.closed(6, 8)).build();
|
||||
|
||||
assertTrue(numberRangeSet.contains(6));
|
||||
assertFalse(numberRangeSet.contains(15));
|
||||
|
@ -115,7 +118,10 @@ public class GuavaRangeSetTest {
|
|||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void givenImmutableRangeMap_whenRangeOverlaps_ThrowsException() {
|
||||
ImmutableRangeSet.<Integer> builder().add(Range.closed(0, 2)).add(Range.closed(3, 5)).add(Range.closed(5, 8)).build();
|
||||
ImmutableRangeSet.<Integer> builder()
|
||||
.add(Range.closed(0, 2))
|
||||
.add(Range.closed(3, 5))
|
||||
.add(Range.closed(5, 8)).build();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue