You are here |
paulstovell.com | ||
| | | |
www.craigpardey.com
|
|
| | | | Sometimes your code needs to call a static method in a 3rd party library and unit testing suddenlybecomes difficult, particularly when that static method requires context in order to work. Enter the insulating class (also known as a Facade). Create a new interface that declares a method with the same signature as the static method you want to delegate to Create a new Facade class that implements the interface Replace the calls to the static method with calls to your new Facade class Let's assume that the method you need to call looks like this | |
| | | |
boats.gitlab.io
|
|
| | | | The post before this one covered how shifgrethor handles rooting: how we track for the garbage collector that this object is alive. That isn't sufficient for implementing a tracing garbage collector though: the idea of a tracing garbage collector is that we can trace from rooted objects through all of the objects they reference. That way, instead of having to root everything you use, you can only root a few objects from which all of the live objects can be traced. | |
| | | |
without.boats
|
|
| | | | ||
| | | |
www.qburst.com
|
|
| | Elevate your website and app security by implementing a robust passkey system. Enhance user authentication and data protection using our tailored solutions. |