Subverting Java Access Protection for Unit Testing
Subject:   A simpler way
Date:   2004-01-07 12:04:07
From:   anonymous2
Instead of using the loop on Class.getDeclaredFields(), there is also a method Class.getDeclaredField(String) that takes a string containing the name of the field.
Full Threads Newest First

Showing messages 1 through 1 of 1.

  • A simpler way
    2005-08-17 12:18:35 [View]