use of cyclops.control.Try in project cyclops by aol.
the class SuccessTest method testFlattenFailure.
@Test
public void testFlattenFailure() {
FileNotFoundException error = new FileNotFoundException();
assertThat(Try.<Try<Integer, FileNotFoundException>, FileNotFoundException>success(Try.failure(error)).to(Try::flatten), equalTo(Try.failure(error)));
}
Aggregations