new-integration-tests/src/test/java/oracle/weblogic/kubernetes/extensions/IntegrationTestWatcher.java
@Override
  public void testFailed(ExtensionContext context, Throwable cause) {
    printHeader(String.format("Test FAILED %s()", methodName), "!");
    if (System.getenv("SLEEP_SECONDS_AFTER_FAILURE") != null) {
      int sleepSecs = Integer.parseInt(System.getenv("SLEEP_SECONDS_AFTER_FAILURE"));
      getLogger().info("Sleeping for " + sleepSecs + " seconds to keep the env. for debugging");
      try {
        Thread.sleep(sleepSecs * 1000);
      } catch (InterruptedException ie) {
        getLogger().info("Exception in testFailed sleep {0}", ie);
      }
    }

  }
/**
   * Called when the test method fails.
   * @param context the current extension context
   * @param cause of failures throwable
   */
Called when the test method fails.
@param context the current extension context
@param cause of failures throwable
Called when the test method fails . @param context the current extension context @param cause of failures throwable
@Override
  public void testFailed(ExtensionContext context, Throwable cause) {
    printHeader(String.format("Test FAILED %s()", methodName), "!");
    if (System.getenv("SLEEP_SECONDS_AFTER_FAILURE") != null) {
      int sleepSecs = Integer.parseInt(System.getenv("SLEEP_SECONDS_AFTER_FAILURE"));
      getLogger().info("Sleeping for " + sleepSecs + " seconds to keep the env. for debugging");
      try {
        Thread.sleep(sleepSecs * 1000);
      } catch (InterruptedException ie) {
        getLogger().info("Exception in testFailed sleep {0}", ie);
      }
    }
  }
@ Override public void testFailed ( ExtensionContext context , Throwable cause ) { printHeader ( String . format ( "Test FAILED %s()" , methodName ) , "!" ) ; if ( System . getenv ( "SLEEP_SECONDS_AFTER_FAILURE" ) != null ) { int sleepSecs = Integer . parseInt ( System . getenv ( "SLEEP_SECONDS_AFTER_FAILURE" ) ) ; getLogger ( ) . info ( "Sleeping for " + sleepSecs + " seconds to keep the env. for debugging" ) ; try { Thread . sleep ( sleepSecs * 1000 ) ; } catch ( InterruptedException ie ) { getLogger ( ) . info ( "Exception in testFailed sleep {0}" , ie ) ; } } }
Called when the test method fails.
Called when the test method fails .