GithubHelp home page GithubHelp logo

Comments (4)

jhannes avatar jhannes commented on May 31, 2024 1

Perhaps I should extract org.fakeservlet to a separate module? What do you think, @norrs ?

from action-controller.

jhannes avatar jhannes commented on May 31, 2024 1

Thanks for the issue, @norrs. Turns out this oversight had created two bad dependencies from the core of action-controller to assertj. Great to get that resolved!

from action-controller.

norrs avatar norrs commented on May 31, 2024

@jhannes I thought this got fixed, but I guess I gave a bit too quick feedback.

It still pulls in the fakeservlet as a transetive dependency ( https://github.com/jhannes/action-controller/blob/master/action-controller/pom.xml#L103 ) where https://github.com/jhannes/action-controller/blob/master/fake-servlet/src/main/java/org/fakeservlet/FakeServletResponse.java#L17 .

We internally can work around it by excluding fake-servlet and pull it in directly as a test dependency, as I guess the idea is that fake-servlet is a test dependency, especially due to the junit import assert.

from action-controller.

jhannes avatar jhannes commented on May 31, 2024

Whops. That was a mistake. I've pushed a change which will be included in the next release.

Actually, the class FakeApiClient in production scope uses fake servlet. It's very useful to to test your own controllers, but it implements the interface ApiClient, which is also useful for any http-clients. Because of this, I could not make fake-servlet into test-scope for action-controller, but I've now made it optional.

from action-controller.

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.