Quantcast
Channel: Jworks » metaclass
Browsing latest articles
Browse All 2 View Live

Groovy MetaClass Magic in Unit Tests

As you may or may not know, Groovy has the concept of MetaClasses. MetaClasses enable you to add or change methods at runtime. This is especially handy when doing some mocking during a unit test (or,...

View Article


Friday Repost: Remove Groovy MetaClass methods

The Friday Repost series are copies from my earlier writings. Since I don’t want to loose them, and they might prove useful to others, I’m reposting them on this blog Whenever you are using metaclasses...

View Article

Browsing latest articles
Browse All 2 View Live