/*
 * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0, which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the
 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
 * version 2 with the GNU Classpath Exception, which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
 */

/*
 * $Id$
 */

package com.sun.ts.tests.ejb30.assembly.librarydirectory.defaultname;

import static com.sun.ts.tests.ejb30.assembly.common.AssemblyCommonIF.EAR_LIB_JAR_NAME;
import static com.sun.ts.tests.ejb30.assembly.common.AssemblyCommonIF.RESOURCE_NAME;

import com.sun.ts.lib.harness.Status;
import com.sun.ts.tests.ejb30.assembly.common.ClientBase;
import com.sun.ts.tests.ejb30.assembly.common.Util;
import com.sun.ts.tests.ejb30.common.helper.TestFailedException;

public class Client extends ClientBase {

  public static void main(String[] args) {
    Client theTests = new Client();
    Status s = theTests.run(args, System.out, System.err);
    s.exit();
  }

  /*
   * @testName: libSubdirNotScanned
   * 
   * @assertion_ids:
   * 
   * @test_Strategy: EAR/lib/sub-directory/*.jar are not included in classpath
   */
  public void libSubdirNotScanned() throws TestFailedException {
    Util.verifyGetResource(getClass(), RESOURCE_NAME, null);
  }

  /*
   * @testName: earLibNotInClasspath
   * 
   * @assertion_ids:
   * 
   * @test_Strategy: EAR/lib are not included in classpath
   */
  public void earLibNotInClasspath() throws TestFailedException {
    Util.verifyGetResource(getClass(), EAR_LIB_JAR_NAME, null);
  }

  /*
   * @testName: libSubdirNotScannedEJB
   * 
   * @assertion_ids:
   * 
   * @test_Strategy: EAR/lib/sub-directory/*.jar are not included in classpath
   */
  public void libSubdirNotScannedEJB() throws TestFailedException {
    remoteAssemblyBean.libSubdirNotScanned();
  }

  /*
   * @testName: earLibNotInClasspathEJB
   * 
   * @assertion_ids:
   * 
   * @test_Strategy: EAR/lib are not included in classpath
   */
  public void earLibNotInClasspathEJB() throws TestFailedException {
    remoteAssemblyBean.earLibNotInClasspath();
  }

  /*
   * @testName: postConstructInvokedInSuperElseWhere
   * 
   * @assertion_ids:
   * 
   * @test_Strategy: PostConstruct method must be invoked even when it's in a
   * superclass not packaged in appclient-client.jar
   */

  /*
   * @testName: remoteAdd
   * 
   * @assertion_ids:
   * 
   * @test_Strategy:
   */

  /*
   * @testName: remoteAddByHelloEJB
   * 
   * @assertion_ids:
   * 
   * @test_Strategy: hello ejb is packaged as a standalone ejb module and
   * deployed separately. It client view jar is packaged inside current ear and
   * referenced by both appclient and ejb jar thru MANIFEST.MF appclient ->
   * helloBean
   */

  /*
   * @testName: remoteAddByHelloEJBFromAssemblyBean
   * 
   * @assertion_ids:
   * 
   * @test_Strategy: hello ejb is packaged as a standalone ejb module and
   * deployed separately. It client view jar is packaged inside current ear and
   * referenced by both appclient and ejb jar thru MANIFEST.MF appclient ->
   * assemblyBean -> helloBean
   */
}
