当前位置: 首页>>代码示例>>Java>>正文


Java TestCase.run方法代码示例

本文整理汇总了Java中junit.framework.TestCase.run方法的典型用法代码示例。如果您正苦于以下问题:Java TestCase.run方法的具体用法?Java TestCase.run怎么用?Java TestCase.run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在junit.framework.TestCase的用法示例。


在下文中一共展示了TestCase.run方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: main

import junit.framework.TestCase; //导入方法依赖的package包/类
public static void main(String[] argv) {

        TestResult result = new TestResult();
        TestCase   testA  = new TestMerge("testMerge1");
        TestCase   testB  = new TestMerge("testMerge2");
        TestCase   testC  = new TestMerge("testMerge3");
        TestCase   testD  = new TestMerge("testMerge4");
        TestCase   testE  = new TestMerge("testMerge5");
        TestCase   testF  = new TestMerge("testMerge6");
        TestCase   testG  = new TestMerge("testMerge7");
        TestCase   testH  = new TestMerge("testMerge8");
        TestCase   testI  = new TestMerge("testMerge9");

        testA.run(result);
        testB.run(result);
        testC.run(result);
        testD.run(result);
        testE.run(result);
        testF.run(result);
        testG.run(result);
        testH.run(result);
        testI.run(result);
        System.out.println("TestMerge error count: " + result.failureCount());

        Enumeration e = result.failures();

        while (e.hasMoreElements()) {
            System.out.println(e.nextElement());
        }
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:31,代码来源:TestMerge.java

示例2: main

import junit.framework.TestCase; //导入方法依赖的package包/类
public static void main(String[] argv) {

        TestResult result = new TestResult();
        TestCase   testA  = new TestSql("testMetaData");
        TestCase   testB  = new TestSql("testDoubleNaN");
        TestCase   testC  = new TestSql("testAny");

        testA.run(result);
        testB.run(result);
        testC.run(result);
        System.out.println("TestSql error count: " + result.failureCount());
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:13,代码来源:TestSql.java

示例3: main

import junit.framework.TestCase; //导入方法依赖的package包/类
public static void main(String[] argv) {

        TestResult result        = new TestResult();
        TestCase   testKeepAlive = new TestHTTPKeepAlive("testKeepAlive");

        testKeepAlive.run(result);
        System.out.println("TestKeepAlive error count: "
                           + result.failureCount());

        Enumeration e = result.failures();

        while (e.hasMoreElements()) {
            System.out.println(e.nextElement());
        }
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:16,代码来源:TestHTTPKeepAlive.java

示例4: main

import junit.framework.TestCase; //导入方法依赖的package包/类
public static void main(String[] argv) {

        TestResult result = new TestResult();
        TestCase   testC  = new TestSqlPersistent("testInsertObject");
        TestCase   testD  = new TestSqlPersistent("testSelectObject");

        testC.run(result);
        testD.run(result);
        System.out.println("TestSqlPersistent error count: "
                           + result.failureCount());
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:12,代码来源:TestSqlPersistent.java

示例5: main

import junit.framework.TestCase; //导入方法依赖的package包/类
public static void main(String[] argv) {

        TestResult result = new TestResult();
        TestCase   testA  = new TestMultiInsert("testMultiInsert");

        testA.run(result);
        System.out.println("TestMultiInsert error count: " + result.failureCount());
        Enumeration e = result.failures();
        while(e.hasMoreElements()) System.out.println(e.nextElement());
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:11,代码来源:TestMultiInsert.java

示例6: testClone

import junit.framework.TestCase; //导入方法依赖的package包/类
/**
 * Test method for 'marf.Storage.Database.clone()'
 *
 * @throws StorageException
 */
public void testClone()
        throws StorageException {
    TestCase oTestDbClone = new DatabaseTest("testClone");
    oTestDbClone.run();
    TestCase oTestWsClone = new WordStatsTest("testClone");
    oTestWsClone.run();
}
 
开发者ID:souhaib100,项目名称:MARF-for-Android,代码行数:13,代码来源:CloneabilityTest.java

示例7: main

import junit.framework.TestCase; //导入方法依赖的package包/类
public static void main(String argv[]) {

        TestResult result = new TestResult();
        TestCase   testA  = new TestSql("testMetaData");
        TestCase   testB  = new TestSql("testDoubleNaN");
        TestCase   testC  = new TestSql("testAny");

        testA.run(result);
        testB.run(result);
        testC.run(result);
        System.out.println("TestSql error count: " + result.failureCount());
    }
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:13,代码来源:TestSql.java

示例8: main

import junit.framework.TestCase; //导入方法依赖的package包/类
public static void main(String argv[]) {

        TestResult result = new TestResult();
        TestCase   testC  = new TestSqlPersistent("testInsertObject");
        TestCase   testD  = new TestSqlPersistent("testSelectObject");

        testC.run(result);
        testD.run(result);
        System.out.println("TestSqlPersistent error count: "
                           + result.failureCount());
    }
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:TestSqlPersistent.java


注:本文中的junit.framework.TestCase.run方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。