Giter Site home page Giter Site logo

fest-assert-1.x's People

Contributors

alexruiz avatar ansgarkonermann avatar joel-costigliola avatar tedyoung avatar wanghy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fest-assert-1.x's Issues

Assert of optionals

// when
Optional<String> optional = get();

// then
assertThat(optional).isPresent();

We could really, really use this

Latest stable version of fest-assert 1.4 not compatible with fest-util 1.2.3. Breaks integration with fest-joda-time-assert.

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?

Comparision of Iterator fails

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.