@@ -176,9 +176,9 @@ public void testChooseClientAlias() {
176176 /* Note: this is very dependent on the contents and ordering of
177177 * all.jks. If that file is re-generated or changed, this test may
178178 * need to be updated */
179- if (!alias .equals ("client" )) {
179+ if (!alias .equals ("client" ) && ! alias . equals ( "ca" ) ) {
180180 error ("\t ... failed" );
181- fail ("expected 'client' alias for RSA type from allJKS" );
181+ fail ("expected 'client' alias for RSA type from allJKS, got: " + alias );
182182 }
183183 }
184184
@@ -189,9 +189,9 @@ public void testChooseClientAlias() {
189189 /* Note: this is very dependent on the contents and ordering of
190190 * all.jks. If that file is re-generated or changed, this test may
191191 * need to be updated */
192- if (!alias .equals ("server-ecc" )) {
192+ if (!alias .equals ("server-ecc" ) && ! alias . equals ( "ca-ecc" ) ) {
193193 error ("\t ... failed" );
194- fail ("expected 'server-ecc' alias for EC type from allJKS" );
194+ fail ("expected 'server-ecc' alias for EC type from allJKS, got: " + alias );
195195 }
196196 }
197197
@@ -238,9 +238,9 @@ public void testEngineChooseClientAlias() {
238238 /* Note: this is very dependent on the contents and ordering of
239239 * all.jks. If that file is re-generated or changed, this test may
240240 * need to be updated */
241- if (!alias .equals ("client" )) {
241+ if (!alias .equals ("client" ) && ! alias . equals ( "ca" ) ) {
242242 error ("\t ... failed" );
243- fail ("expected 'client' alias for RSA type from allJKS" );
243+ fail ("expected 'client' alias for RSA type from allJKS, got: " + alias );
244244 }
245245 }
246246
@@ -251,9 +251,9 @@ public void testEngineChooseClientAlias() {
251251 /* Note: this is very dependent on the contents and ordering of
252252 * all.jks. If that file is re-generated or changed, this test may
253253 * need to be updated */
254- if (!alias .equals ("server-ecc" )) {
254+ if (!alias .equals ("server-ecc" ) && ! alias . equals ( "ca-ecc" ) ) {
255255 error ("\t ... failed" );
256- fail ("expected 'server-ecc' alias for EC type from allJKS" );
256+ fail ("expected 'server-ecc' alias for EC type from allJKS, got: " + alias );
257257 }
258258 }
259259
@@ -350,9 +350,9 @@ public void testChooseServerAlias() {
350350 /* Note: this is very dependent on the contents and ordering of
351351 * all.jks. If that file is re-generated or changed, this test may
352352 * need to be updated */
353- if (!alias .equals ("client" )) {
353+ if (!alias .equals ("client" ) && ! alias . equals ( "ca" ) ) {
354354 error ("\t ... failed" );
355- fail ("expected 'client' alias for RSA type from allJKS" );
355+ fail ("expected 'client' alias for RSA type from allJKS, got: " + alias );
356356 }
357357 }
358358
@@ -363,9 +363,9 @@ public void testChooseServerAlias() {
363363 /* Note: this is very dependent on the contents and ordering of
364364 * all.jks. If that file is re-generated or changed, this test may
365365 * need to be updated */
366- if (!alias .equals ("server-ecc" )) {
366+ if (!alias .equals ("server-ecc" ) && ! alias . equals ( "ca-ecc" ) ) {
367367 error ("\t ... failed" );
368- fail ("expected 'server-ecc' alias for EC type from allJKS" );
368+ fail ("expected 'server-ecc' alias for EC type from allJKS, got: " + alias );
369369 }
370370 }
371371
@@ -412,9 +412,9 @@ public void testChooseEngineServerAlias() {
412412 /* Note: this is very dependent on the contents and ordering of
413413 * all.jks. If that file is re-generated or changed, this test may
414414 * need to be updated */
415- if (!alias .equals ("client" )) {
415+ if (!alias .equals ("client" ) && ! alias . equals ( "ca" ) ) {
416416 error ("\t ... failed" );
417- fail ("expected 'client' alias for RSA type from allJKS" );
417+ fail ("expected 'client' alias for RSA type from allJKS, got: " + alias );
418418 }
419419 }
420420
@@ -425,9 +425,9 @@ public void testChooseEngineServerAlias() {
425425 /* Note: this is very dependent on the contents and ordering of
426426 * all.jks. If that file is re-generated or changed, this test may
427427 * need to be updated */
428- if (!alias .equals ("server-ecc" )) {
428+ if (!alias .equals ("server-ecc" ) && ! alias . equals ( "ca-ecc" ) ) {
429429 error ("\t ... failed" );
430- fail ("expected 'server-ecc' alias for EC type from allJKS" );
430+ fail ("expected 'server-ecc' alias for EC type from allJKS, got: " + alias );
431431 }
432432 }
433433
0 commit comments