xenoterracide
12/30/2018, 6:03 AMDico
12/30/2018, 8:39 AMgildor
12/30/2018, 10:49 AMDico
12/30/2018, 10:50 AMxenoterracide
12/30/2018, 1:28 PMDico
12/30/2018, 1:30 PMaarjav
12/30/2018, 11:08 PMxenoterracide
12/31/2018, 6:48 AMprivate
in interfaces? a lot of my use cases off the top of my head for this piece involve testable implementation details, for example making protected methods in interfaces that aren't meant to be public for but accessible for testing purposes. Time logic methods are a good example, I might want something like alreadyEnded()
which does a calculation with now()
however in order to test this I might want a protected method like beforeEnd( Instant )
which accepts now
but allows me to test it with other values. extending of an interface would allow for such methods to be on a base interface, and then only made use of later.
I have had things asside from tests though, it's just the first thing that enters my head.Dico
12/31/2018, 6:52 AMxenoterracide
01/11/2019, 7:33 PMDico
01/12/2019, 2:08 AM