« first day (4114 days earlier)      last day (819 days later) » 

12:00 AM
"Whoever undertakes to set himself up as a judge of Truth and Knowledge is shipwrecked by the laughter of the gods." -- Albert Einstein (source)
farts
 
 
6 hours later…
6:02 AM
hums a song
 
 
4 hours later…
atx
9:40 AM
what's a good way to dynamically inject or hook the arg to an overridden callback function in java/kotlin?
 
 
1 hour later…
10:49 AM
what do you mean with "dynamically inject"?
 
atx
11:00 AM
So something like this is what will be overridden and passed to us:
override fun onResponse(call: Call, response: Response) {

I need to replace their response with an injected Response
Encapsulated in a Callback object
 
you need a stub instance for testing purposes?
or do you need an override that has fewer/different parameters?
 
atx
an override with new params
Well, same params but one is modified to a new object
 
atx
11:26 AM
I think I solved it with a wrapper callback
 
you might be wanting to have an adapter instead of a direct implementation
but I am still a bit clueless on what the actual goal is
 
 
2 hours later…
1:25 PM
For upcoming school semester we will work on testing including junit tests. I want to start practicing on junit testing before the semester start. I've already looked up on some best practices but want to try it myself on a whole different project without any tests.

So my question is basically, does anyone know a opensource project where I can practice my junit testing on?

Thanks in advance!
 
@T.Korkmazyigit Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
2:21 PM
@T.Korkmazyigit The Advent of Code puzzles are great for practicing unit testing.
 
Jackson is some pretty awome lib
 
@motaa it kinda is, yes
 
 
4 hours later…
6:05 PM
Ng... I don't get how to use JavaVisualVM to analyze threads...
 

« first day (4114 days earlier)      last day (819 days later) »