You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Asserts that the actual object has only the specified fields or properties.
579
+
* <p>
580
+
* Private fields are matched by default but this can be changed by calling {@link Assertions#setAllowExtractingPrivateFields(boolean) Assertions.setAllowExtractingPrivateFields(false)}.
581
+
* <p>
582
+
*
583
+
* Example:
584
+
* <pre><code class='java'> public class TolkienCharacter {
585
+
*
586
+
* private String name;
587
+
* private int age;
588
+
* // constructor omitted
589
+
*
590
+
* public String getName() {
591
+
* return this.name;
592
+
* }
593
+
* }
594
+
*
595
+
* TolkienCharacter frodo = new TolkienCharacter("Frodo", 33);
0 commit comments