⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 packageservicestest.java

📁 OPIAM stands for Open Identity and Access Management. This Suite will provide modules for user & rig
💻 JAVA
字号:
/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.faare.unittests.service.services;

import opiam.admin.faare.unittests.TestResult;
import opiam.admin.faare.unittests.TestUtils;
import opiam.admin.faare.unittests.service.services.acl.AclsServiceTest;
import opiam.admin.faare.unittests.service.services.export.ExportServiceTest;
import opiam.admin.faare.unittests.service.services.references.ReferenceServiceTest;
import opiam.admin.faare.unittests.service.services.triggers.MailSenderTriggerTest;
import opiam.admin.faare.unittests.service.services.trombinoscope.TrombinoscopeGeneratorTest;
import opiam.admin.faare.unittests.service.services.views.PackageServicesViewsTest;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

// <packageTest name="Services" description="" level="2" />
import org.apache.log4j.Logger;


/**
 * Executes all the class tests of the services package.
 */
public class PackageServicesTest extends TestCase
{
    /** Instance of logger. */
    private static Logger _logger = Logger.getLogger(PackageServicesTest.class);

    /** Instance of the trace class. */
    private static TestUtils _test = new TestUtils(_logger);

    /**
     * Creates a new PackageServicesTest object.
     *
     * @param param  Parameter.
     */
    public PackageServicesTest(String param)
    {
        super(param);
    }

    /**
     * Method of the tests suite.
     *
     * @return Tests result.
     */
    public static Test suite()
    {
        TestSuite suite = new TestSuite();

        suite.addTest(new PackageServicesTest("testBegin"));

        suite.addTest(StandardServiceTest.suite());
        suite.addTest(SortServiceTest.suite());
        suite.addTest(AclsServiceTest.suite());
        suite.addTest(ReferenceServiceTest.suite());
        suite.addTest(MailSenderTriggerTest.suite());
        suite.addTest(TrombinoscopeGeneratorTest.suite());

        suite.addTest(ExportServiceTest.suite());
        suite.addTest(PackageServicesViewsTest.suite());

        suite.addTest(new PackageServicesTest("testEnd"));

        return suite;
    }

    /**
     * Main method.
     * @param args Command line arguments.
     */
    public static void main(String[] args)
    {
        junit.textui.TestRunner.run(suite());
    }

    /**
     * Method to indicate the beginning of the class test.
     *
     */
    public static void testBegin()
    {
        //  To initialize the tests statement
        TestResult.getInstance().setInitiator("PackageServicesTest");
        assertTrue(true);
    }

    /**
     * Method to indicate the end of the class test.
     *
     */
    public static void testEnd()
    {
        assertTrue(true);
        _test.displayTestStatement("PackageServicesTest");
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -