File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
main/java/com/google/api/gax/util
test/java/com/google/api/gax/core Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 2929 */
3030package com .google .api .gax .util ;
3131
32- /* Wrapper class for reflection Class methods to enable unit testing. */
32+ /* Wrapper class for reflection {@link java.lang. Class} methods to enable unit testing. */
3333public class ClassWrapper {
3434
3535 /* Wraps {@link java.lang.Class#forName} method */
3636 public Class <?> forName (String name ) throws ClassNotFoundException {
3737 return Class .forName (name );
3838 }
3939
40- /* Consolidates retrieving a field on a Class object via reflection and retrieving the value of that field */
40+ /* Consolidates retrieving a {@link java.lang.Field} on a {@link java.lang. Class} object via reflection and retrieving the value of that Field */
4141 public Object getFieldValue (Class <?> clazz , String fieldName )
4242 throws NoSuchFieldException , IllegalAccessException {
4343 return clazz .getField (fieldName ).get (null );
Original file line number Diff line number Diff line change 3030package com .google .api .gax .core ;
3131
3232import static com .google .api .gax .core .GaxProperties .getBundleVersion ;
33- import static org .junit .jupiter .api .Assertions .*;
34- import static org .mockito .ArgumentMatchers .*;
33+ import static org .junit .jupiter .api .Assertions .assertEquals ;
34+ import static org .junit .jupiter .api .Assertions .assertFalse ;
35+ import static org .junit .jupiter .api .Assertions .assertTrue ;
36+ import static org .mockito .ArgumentMatchers .any ;
3537import static org .mockito .Mockito .mock ;
3638import static org .mockito .Mockito .when ;
3739
38- import com .google .api .gax .util .* ;
40+ import com .google .api .gax .util .ClassWrapper ;
3941import com .google .common .base .Strings ;
40- import com .google .protobuf .* ;
42+ import com .google .protobuf .Any ;
4143import java .io .IOException ;
4244import java .util .Optional ;
4345import java .util .regex .Pattern ;
You can’t perform that action at this time.
0 commit comments