Giter VIP home page Giter VIP logo

Comments (3)

colinbendell avatar colinbendell commented on July 21, 2024

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.

jwcarman avatar jwcarman commented on July 21, 2024

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.

jwcarman avatar jwcarman commented on July 21, 2024

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)

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.