groostav
01/31/2019, 11:01 PMfun usage(){
val result2 = buildMock<java.lang.ProcessBuilder>{
ProcessBuilder::inheritIO {
TODO()
}
//one problem with method refs is that they are ambiguous when the method is overloaded
// but inference takes care of that reasonably elegently
oneArg(ProcessBuilder::directory).invokes {
TODO()
}
}
I also think that using kotlin property references could make mocking of properties much niceroleksiyp
02/02/2019, 8:56 PM