Comments (3)
I'm still debating this one. I'm not a fan of an interface that will only ever have one implementation. I think a better mechanism is to provide a local loopback http service that simulates request and responses so the unit test is more comprehensive. (eg: offer a light weight http server that listens on an random port on localhost such as localhost:9999.) This server would simulates netstorage request/responses and auth checks. This could be helpful for this libraries own unit tests. Let me muse on this a bit.
from netstoragekit-java.
It's just good design to use interfaces, regardless of how many
implementations there are.
On Wed, Jun 15, 2016 at 10:14 AM Colin Bendell [email protected]
wrote:
I'm still debating this one. I'm not a fan of an interface that will only
ever have one implementation. I think a better mechanism is to provide a
local loopback http service that simulates request and responses so the
unit test is more comprehensive. (eg: offer a light weight http server that
listens on an random port on localhost such as localhost:9999.) This server
would simulates netstorage request/responses and auth checks. This could be
helpful for this libraries own unit tests. Let me muse on this a bit.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAVP-5GoeNkWz0fQ3vFuS3Pr64wqhy4xks5qMAfngaJpZM4IJ2Wj
.
from netstoragekit-java.
https://dzone.com/articles/to-interface-or-not-to-interface
On Wed, Jun 15, 2016 at 11:31 AM James Carman [email protected]
wrote:
It's just good design to use interfaces, regardless of how many
implementations there are.
On Wed, Jun 15, 2016 at 10:14 AM Colin Bendell [email protected]
wrote:I'm still debating this one. I'm not a fan of an interface that will only
ever have one implementation. I think a better mechanism is to provide a
local loopback http service that simulates request and responses so the
unit test is more comprehensive. (eg: offer a light weight http server that
listens on an random port on localhost such as localhost:9999.) This server
would simulates netstorage request/responses and auth checks. This could be
helpful for this libraries own unit tests. Let me muse on this a bit.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAVP-5GoeNkWz0fQ3vFuS3Pr64wqhy4xks5qMAfngaJpZM4IJ2Wj
.
from netstoragekit-java.
Related Issues (19)
- Use SSL by default HOT 2
- Use Standard Maven Versioning... HOT 1
- Use Proper Encapsulation HOT 2
- setmd method returns bad request (400) HOT 1
- Optimizing the upload speed
- Is there a way to read the content in the Netstorage path
- I am trying to access contents from Directory & subdiretory HOT 1
- Netstorage HTTP API | CPCode
- Issues with spaces in filenames with NetStorageKit-3.6.6.jar library HOT 4
- Can we get list(NS4) support?
- Some compiler error shows up when I import this project into eclipse
- proxy per connection HOT 1
- UnknownHostException when using Credential Hostname with path HOT 1
- Communication Error when upload file object to netstorage HOT 1
- Allow for setting additional action parameters for stat action HOT 1
- Is there a way to capture response headers like ETag when downloading file from NetStorage?
- Please add proxy support HOT 6
- Make NetStorage artifact accessible with global maven repository HOT 4
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 netstoragekit-java.