File tree 1 file changed +3
-2
lines changed
src/main/java/io/appium/java_client/proxy
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package io .appium .java_client .proxy ;
18
18
19
+ import com .google .common .annotations .VisibleForTesting ;
19
20
import com .google .common .base .Preconditions ;
20
21
import java .util .Map ;
21
22
import java .util .WeakHashMap ;
@@ -57,10 +58,11 @@ public class Helpers {
57
58
58
59
/**
59
60
* Gets CACHED_PROXY_CLASSES size.
60
- * Used for cache clear up tests.
61
+ * Used for cache clear up tests {@see io.appium.java_client.pagefactory_tests.widget.tests.combined.CombinedWidgetTest} .
61
62
*
62
63
* @return the cached proxy classes size
63
64
*/
65
+ @ VisibleForTesting
64
66
public static int getCachedProxyClassesSize () {
65
67
return CACHED_PROXY_CLASSES .size ();
66
68
}
@@ -128,7 +130,6 @@ public static <T> T createProxy(
128
130
@ Nullable ElementMatcher <MethodDescription > extraMethodMatcher
129
131
) {
130
132
var signature = ProxyClassSignature .of (cls , constructorArgTypes , extraMethodMatcher );
131
- System .out .println ("CACHED_PROXY_CLASSES size = " + CACHED_PROXY_CLASSES .size ());
132
133
var proxyClass = CACHED_PROXY_CLASSES .computeIfAbsent (signature , k -> {
133
134
Preconditions .checkArgument (constructorArgs .length == constructorArgTypes .length ,
134
135
String .format (
You can’t perform that action at this time.
0 commit comments