Lines Matching defs:ca
86 ClientAuth ca = new ClientAuth();
88 .authenticator(ca)
91 .authenticator(ca)
100 test(client1, ca, uri, 1, null);
102 test(client1, ca, uri, 1, null);
104 test(client2, ca, uri, 2, null);
108 test(HttpClient.newHttpClient(), ca, uri, 2, IOException.class);
111 java.net.Authenticator.setDefault(ca);
115 test(HttpClient.newHttpClient(), ca, uri, 3, IOException.class);
118 test(client3, ca, uri, 4, IOException.class);
128 + " (count=" + ca.count.get() +")");
129 test(client1, ca, uri, 7, IOException.class);
131 + " (count=" + ca.count.get() +")");
132 test(client1, ca, uri, 10, IOException.class);
134 + " (count=" + ca.count.get() +")");
135 test(client2, ca, uri, 14, IOException.class);
138 + " (count=" + ca.count.get() +")\n");
141 int count = ca.count.get(); // depends on retry limit...
143 test(client1, ca, uri, count+1, null);
145 test(client1, ca, uri, count+1, null);
147 test(client2, ca, uri, count+2, null);
149 sa.passwd = ca.passwd = "changed#2";
153 test(client1, ca, uri, count+3, null);
155 test(client1, ca, uri, count+3, null);
157 test(client2, ca, uri, count+4, null);
166 ClientAuth ca,
193 if (!ok || ca.count.get() != expectCount)
195 + " count=" + ca.count.get() + " (expected=" + expectCount+")");
202 if (!ok || ca.count.get() != expectCount)
204 + " count=" + ca.count.get() + " (expected=" + expectCount+")");
213 if (!ok || ca.count.get() != expectCount)