Skip to content

Commit 41bddc7

Browse files
committed
Mention Byte Buddy as cglib alternative in the documentation
1 parent d751a0a commit 41bddc7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/interaction_based_testing.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,9 @@ is only meant for documentation purposes and doesn't carry any semantics.
539539

540540
Besides interfaces, Spock also supports mocking of classes. Mocking classes works
541541
just like mocking interfaces; the only additional requirement is to put `cglib-nodep-2.2` or higher
542-
and `objenesis-1.2` or higher on the class path. If either of these libraries is missing from
543-
the class path, Spock will gently let you know.
542+
or `byte-buddy` on the class path. When using normal `Mock`s or `Stub`s or `Spy`s that are
543+
configured accordingly, it is also necessary to put `objenesis-1.2` or higher on the class path.
544+
If either of these libraries is missing from the class path, Spock will gently let you know.
544545

545546
NOTE: Java 8 is only supported from CGLIB 3.2.0 onwards.
546547

0 commit comments

Comments
 (0)