@@ -256,14 +256,20 @@ public void testACreateWLSImgUsingWDT() throws Exception {
256256 logTestBegin (testMethodName );
257257
258258 // add WDT installer to the cache
259+ // delete the cache entry first
260+ deleteEntryFromCache ("wdt_" + WDT_VERSION );
259261 String wdtPath = getInstallerCacheDir () + FS + WDT_INSTALLER ;
260262 addInstallerToCache ("wdt" , WDT_VERSION , wdtPath );
261263
262264 // add WLS installer to the cache
265+ // delete the cache entry first
266+ deleteEntryFromCache ("wls_" + WLS_VERSION );
263267 String wlsPath = getInstallerCacheDir () + FS + WLS_INSTALLER ;
264268 addInstallerToCache ("wls" , WLS_VERSION , wlsPath );
265269
266270 // add jdk installer to the cache
271+ // delete the cache entry first
272+ deleteEntryFromCache ("jdk_" + JDK_VERSION );
267273 String jdkPath = getInstallerCacheDir () + FS + JDK_INSTALLER ;
268274 addInstallerToCache ("jdk" , JDK_VERSION , jdkPath );
269275
@@ -323,10 +329,14 @@ public void testBCreateFMWImgFullInternetAccess() throws Exception {
323329 }
324330
325331 // add fmw installer to the cache
332+ // delete the cache entry if any
333+ deleteEntryFromCache ("fmw_" + WLS_VERSION );
326334 String fmwPath = getInstallerCacheDir () + FS + FMW_INSTALLER ;
327335 addInstallerToCache ("fmw" , WLS_VERSION , fmwPath );
328336
329337 // add jdk installer to the cache
338+ // delete the cache entry if any
339+ deleteEntryFromCache ("jdk_" + JDK_VERSION );
330340 String jdkPath = getInstallerCacheDir () + FS + JDK_INSTALLER ;
331341 addInstallerToCache ("jdk" , JDK_VERSION , jdkPath );
332342
@@ -394,14 +404,20 @@ public void testDCreateJRFDomainImgUsingWDT() throws Exception {
394404 createDBContainer ();
395405
396406 // add WDT installer to the cache
407+ // delete the cache entry if any
408+ deleteEntryFromCache ("wdt_" + WDT_VERSION );
397409 String wdtPath = getInstallerCacheDir () + FS + WDT_INSTALLER ;
398410 addInstallerToCache ("wdt" , WDT_VERSION , wdtPath );
399411
400412 // add FMW installer to the cache
413+ // delete the cache entry if any
414+ deleteEntryFromCache ("fmw_" + WLS_VERSION );
401415 String fmwPath = getInstallerCacheDir () + FS + FMW_INSTALLER ;
402416 addInstallerToCache ("fmw" , WLS_VERSION , fmwPath );
403417
404418 // add jdk installer to the cache
419+ // delete the cache entry if any
420+ deleteEntryFromCache ("jdk_" + JDK_VERSION );
405421 String jdkPath = getInstallerCacheDir () + FS + JDK_INSTALLER ;
406422 addInstallerToCache ("jdk" , JDK_VERSION , jdkPath );
407423
0 commit comments