Comments (4)
Perhaps I should extract org.fakeservlet to a separate module? What do you think, @norrs ?
from action-controller.
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.
@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.
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)
- Don't use secure cookies for localhost
- Rethrow non-action-controller exceptions
- Jsonbody param dosen't handle kotlin List HOT 1
- Should map requests to methods even though there is a potential for conflict HOT 2
- Q: Design issue with ApiServlet and expected mapping of /*? HOT 1
- Implement `@IfModifiedSince` and `@LastModified` annotations to simplify checking for not-modified resources
- Utility servlets for webjars and content
- Trace log payload for e.g. JSON body
- Request-logger and MDC setup utility classes HOT 1
- ConfigObserver support for scanning file file
- "No mapping annotation" error message should include generic parameters in type description in message
- ConfigListener Read environment variables from files
- Include all HTTP verbs included by openapi spec
- Support multipart file uploads
- Home baked cookies (really: support same-site cookies) HOT 1
- SocketApiHttpExchange just for fun HOT 1
- ActionHttpClient implements ApiClientExchange with java.net.http.HttpClient
- Support for declared exceptions, perhaps with annotations
- ConfigObserver ready for database configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-controller.