new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonTestUtils.java
public static void checkPodRestarted(
      String domainUid,
      String domNamespace,
      String podName,
      DateTime lastCreationTime
  ) {
    LoggingFacade logger = getLogger();
    withStandardRetryPolicy
        .conditionEvaluationListener(
            condition -> logger.info("Waiting for pod {0} to be restarted in namespace {1} "
                    + "(elapsed time {2}ms, remaining time {3}ms)",
                podName,
                domNamespace,
                condition.getElapsedTimeInMS(),
                condition.getRemainingTimeInMS()))
        .until(assertDoesNotThrow(() -> isPodRestarted(podName, domNamespace, lastCreationTime),
            String.format(
                "pod %s has not been restarted in namespace %s", podName, domNamespace)));
  }
/**
   * Check pod is restarted by comparing the pod's creation timestamp with the last timestamp.
   *
   * @param domainUid the label the pod is decorated with
   * @param podName pod name to check
   * @param domNamespace the Kubernetes namespace in which the domain exists
   * @param lastCreationTime the previous creation time
   */
Check pod is restarted by comparing the pod's creation timestamp with the last timestamp.
@param domainUid the label the pod is decorated with
@param podName pod name to check
@param domNamespace the Kubernetes namespace in which the domain exists
@param lastCreationTime the previous creation time
Check pod is restarted by comparing the pod ' s creation timestamp with the last timestamp . @param domainUid the label the pod is decorated with @param podName pod name to check @param domNamespace the Kubernetes namespace in which the domain exists @param lastCreationTime the previous creation time
public static void checkPodRestarted(
      String domainUid,
      String domNamespace,
      String podName,
      DateTime lastCreationTime
  ) {
    LoggingFacade logger = getLogger();
    withStandardRetryPolicy
        .conditionEvaluationListener(
            condition -> logger.info("Waiting for pod {0} to be restarted in namespace {1} "
                    + "(elapsed time {2}ms, remaining time {3}ms)",
                podName,
                domNamespace,
                condition.getElapsedTimeInMS(),
                condition.getRemainingTimeInMS()))
        .until(assertDoesNotThrow(() -> isPodRestarted(podName, domNamespace, lastCreationTime),
            String.format(
                "pod %s has not been restarted in namespace %s", podName, domNamespace)));
  }
public static void checkPodRestarted ( String domainUid , String domNamespace , String podName , DateTime lastCreationTime ) { LoggingFacade logger = getLogger ( ) ; withStandardRetryPolicy . conditionEvaluationListener ( condition -> logger . info ( "Waiting for pod {0} to be restarted in namespace {1} " + "(elapsed time {2}ms, remaining time {3}ms)" , podName , domNamespace , condition . getElapsedTimeInMS ( ) , condition . getRemainingTimeInMS ( ) ) ) . until ( assertDoesNotThrow ( ( ) -> isPodRestarted ( podName , domNamespace , lastCreationTime ) , String . format ( "pod %s has not been restarted in namespace %s" , podName , domNamespace ) ) ) ; }
Check pod is restarted by comparing the pod's creation timestamp with the last timestamp.
Check pod is restarted by comparing the pod ' s creation timestamp with the last timestamp .