alexruiz / fest-assert-1.x Goto Github PK
View Code? Open in Web Editor NEWFEST Fluent Assertions
Home Page: http://fest.easytesting.org
License: Apache License 2.0
FEST Fluent Assertions
Home Page: http://fest.easytesting.org
License: Apache License 2.0
// when
Optional<String> optional = get();
// then
assertThat(optional).isPresent();
We could really, really use this
Your claimed project homepage appears to be an empty blog. Perhaps the website got hijacked, or domain expired and was bought by someone else.
Commit: 89e575e11eab051881d5b736c3eedce7ed131b27 in fest-util breaks the interface used by ItemGroupAssert in 1.4.
The consequence of this is that it's impossible to use the stable version of fest-assert (1.4) with the stable version of fest-joda-time-assert (1.0) since fest-joda-time-assert depends on the fest-util 1.2.3 and fest-assert can't run with that.
This seems to be fixed in the current fest-assert 1.5.0-SNAPSHOT. Can we have a new stable release soon please?
I have the follwing test using Mockito and fest-assert Version 1.4. Assert.assertEquals is the normal JUnit-assert.
@Test
public void bugReport() {
// Arrange
final Iterator<String> result = mock(Iterator.class);
final List<String> listMock = mock(List.class);
when(listMock.iterator()).thenReturn(result);
// Act
final Iterator<String> testResult = listMock.iterator();
// Assert
Assert.assertSame(result, testResult);
assertThat(testResult).isEqualTo(result);
}
It fails at the last line. The problem is that is compares a org.fest.assertions.IteratorAssert.PrettyPrintIterator with result. This fails.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.