new-integration-tests/src/test/java/oracle/weblogic/kubernetes/extensions/IntegrationTestWatcher.java
@Override
  public Object resolveParameter(ParameterContext parameterContext,
      ExtensionContext extensionContext) throws ParameterResolutionException {
    Namespaces ns = parameterContext.findAnnotation(Namespaces.class).get();
    List<String> namespaces = new ArrayList();
    for (int i = 1; i <= ns.value(); i++) {
      String namespace = assertDoesNotThrow(() -> createUniqueNamespace(),
          "Failed to create unique namespace due to ApiException");
      namespaces.add(namespace);
      getLogger().info("Created a new namespace called {0}", namespace);
    }
    if (this.namespaces == null) {
      this.namespaces = namespaces;
    } else {
      this.namespaces.addAll(namespaces);
    }
    getLogger().info(this.namespaces.toString());
    return namespaces;
  }
/**
   * Resolve an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext.
   * @param parameterContext the context for the parameter for which an argument should be resolved
   * @param extensionContext the extension context for the Executable about to be invoked
   * @return Object the resolved argument for the parameter
   * @throws ParameterResolutionException Thrown if an error is encountered in the execution of a ParameterResolver.
   */
Resolve an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext.
@param parameterContext the context for the parameter for which an argument should be resolved
@param extensionContext the extension context for the Executable about to be invoked
@return Object the resolved argument for the parameter
@throws ParameterResolutionException Thrown if an error is encountered in the execution of a ParameterResolver.
Resolve an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext . @param parameterContext the context for the parameter for which an argument should be resolved @param extensionContext the extension context for the Executable about to be invoked @return Object the resolved argument for the parameter @throws ParameterResolutionException Thrown if an error is encountered in the execution of a ParameterResolver .
@Override
  public Object resolveParameter(ParameterContext parameterContext,
      ExtensionContext extensionContext) throws ParameterResolutionException {
    Namespaces ns = parameterContext.findAnnotation(Namespaces.class).get();
    List<String> namespaces = new ArrayList();
    for (int i = 1; i <= ns.value(); i++) {
      String namespace = assertDoesNotThrow(() -> createUniqueNamespace(),
          "Failed to create unique namespace due to ApiException");
      namespaces.add(namespace);
      getLogger().info("Created a new namespace called {0}", namespace);
    }
    if (this.namespaces == null) {
      this.namespaces = namespaces;
    } else {
      this.namespaces.addAll(namespaces);
    }
    getLogger().info(this.namespaces.toString());
    return namespaces;
  }
@ Override public Object resolveParameter ( ParameterContext parameterContext , ExtensionContext extensionContext ) throws ParameterResolutionException { Namespaces ns = parameterContext . findAnnotation ( Namespaces . class ) . get ( ) ; List < String > namespaces = new ArrayList ( ) ; for ( int i = 1 ; i <= ns . value ( ) ; i ++ ) { String namespace = assertDoesNotThrow ( ( ) -> createUniqueNamespace ( ) , "Failed to create unique namespace due to ApiException" ) ; namespaces . add ( namespace ) ; getLogger ( ) . info ( "Created a new namespace called {0}" , namespace ) ; } if ( this . namespaces == null ) { this . namespaces = namespaces ; } else { this . namespaces . addAll ( namespaces ) ; } getLogger ( ) . info ( this . namespaces . toString ( ) ) ; return namespaces ; }
Resolve an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext.
Resolve an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext .