Giter VIP home page Giter VIP logo

Comments (6)

kluever avatar kluever commented on May 19, 2024

Added it to our API review for today...thanks!

from truth.

cgruber avatar cgruber commented on May 19, 2024

Sorry - we didn't get to it in API review this week. But at a high level, I
like the concept.

On Tue, Oct 7, 2014, 08:09 Kurt Alfred Kluever [email protected]
wrote:

Added it to our API review for today...thanks!


Reply to this email directly or view it on GitHub
#139 (comment).

from truth.

benjamin-bader avatar benjamin-bader commented on May 19, 2024

No worries. Would it be better to defer work on this until after it is addressed in review?

from truth.

kluever avatar kluever commented on May 19, 2024

@benjamin-bader Yep - let's hold off until it's greenlit @ API review. Thanks!

from truth.

kluever avatar kluever commented on May 19, 2024

Looks like we never ended up discussing this, but I think we'd like to hear a bit more about the use-case you had in mind?

from truth.

benjamin-bader avatar benjamin-bader commented on May 19, 2024

Sure. The impetus for me was writing some Jersey Injectable implementations which, to be automatically registered with the runtime, must be annotated with @Provider. I think assertThat(klass).isAnnotatedWith(Provider.class) reads much more nicely than assert_().that(anno).named("has @Provider").isNotNull().

Since then, I've been playing around with generated classes and wishing to ensure that they have the expected annotations, but that's a decidedly more unusual case (for me, at least).

The important point to me is that there are cases where a missing or incorrect annotation will cause incorrect behavior at runtime, but whose absence/misuse will not be caught by the compiler - therefore requiring test coverage.

from truth.

Related Issues (20)

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.