Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Verifying Lazy Loading behavior of code

DZone's Guide to

Verifying Lazy Loading behavior of code

· Java Zone
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

A lot of times I write code that is supposed to do lazy loading. However it is tough to actually verify if in fact the lazy loading is taking place or did my code just load the entire set of data instead. With traditional debugging tools it would take a bunch of println() statements, a new build, and probably the entire lunch hour to verify the lazy loading behavior.

Note that in this case I am not 'debugging' in the traditional sense. I just want to verify whether my code is behaving at runtime how I want it to.

With Chronon, its instant. Just run your code and look at how it behaved in the time travelling debugger. No println() statements, new builds or anything special required.

We have made a video demonstrating this for a sample tree viewer with a lazy content provider.

You can also watch more videos demonstrating the use of Chronon to solve real world issues.

 

From http://eblog.chrononsystems.com/verifying-lazy-loading-behavior-of-code

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}