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


Java GWTTestSuite类代码示例

本文整理汇总了Java中com.google.gwt.junit.tools.GWTTestSuite的典型用法代码示例。如果您正苦于以下问题:Java GWTTestSuite类的具体用法?Java GWTTestSuite怎么用?Java GWTTestSuite使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


GWTTestSuite类属于com.google.gwt.junit.tools包,在下文中一共展示了GWTTestSuite类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addClass

import com.google.gwt.junit.tools.GWTTestSuite; //导入依赖的package包/类
public void addClass(Class<?> clazz) {
    if (!finished.add(clazz.getName())) {
        return;
    }
    addGwtModules(clazz);
    if (EntryPoint.class.isAssignableFrom(clazz)) {
        try {
            addMethod(clazz.getMethod("onModuleLoad"));
        } catch (Exception e) {
            X_Log.error(GwtcProjectGenerator.class, "Could not extract onModuleLoad method from ", clazz, e);
        }
    } else if (GWTTestCase.class.isAssignableFrom(clazz)) {
        addGwtTestCase(clazz.asSubclass(GWTTestCase.class));
    } else if (GWTTestSuite.class.isAssignableFrom(clazz)) {
        addGwtTestSuite(clazz.asSubclass(GWTTestSuite.class));
    } else if (RunAsyncCallback.class.isAssignableFrom(clazz)) {
        addAsyncBlock(clazz.asSubclass(RunAsyncCallback.class));
    } else {
        // Check if this class has methods annotated w/ junit @Test
        for (Method m : clazz.getMethods()) {
            if (m.getAnnotation(Test.class) != null) {
                finished.remove(clazz.getName());
                addJUnitClass(clazz);
                return;
            }
        }
        try {
            addMethod(clazz.getMethod("main", String[].class));
        } catch (Exception ignored){
            X_Log.warn(getClass(), "Class",clazz," was added to Gwtc, "
                + "but that class was not a subclass of EntryPoint, RunAsync,"
                + " GWTTestCase, GWTTestSuite, nor did it have a main method, or"
                + " any JUnit 4 annotated @Test method.");
        }
    }
}
 
开发者ID:WeTheInternet,项目名称:xapi,代码行数:37,代码来源:GwtcProjectGeneratorDefault.java

示例2: appendMtBeanValidatorTests

import com.google.gwt.junit.tools.GWTTestSuite; //导入依赖的package包/类
private static void appendMtBeanValidatorTests(final GWTTestSuite psuite) {
  psuite.addTestSuite(GwtTstAgeLimitCheck.class);
  psuite.addTestSuite(GwtTstAlternateSize.class);
  psuite.addTestSuite(GwtTstBankCountry.class);
  psuite.addTestSuite(GwtTstBic.class);
  psuite.addTestSuite(GwtTstBicValue.class);
  psuite.addTestSuite(GwtTstBicWithSpaces.class);
  psuite.addTestSuite(GwtTstCreditCardNumber.class);
  psuite.addTestSuite(GwtTstEmail.class);
  psuite.addTestSuite(GwtTstEmailMustHaveSameDomain.class);
  psuite.addTestSuite(GwtTstEmptyIfOtherHasValue.class);
  psuite.addTestSuite(GwtTstEmptyIfOtherIsEmpty.class);
  psuite.addTestSuite(GwtTstEmptyIfOtherIsNotEmpty.class);
  psuite.addTestSuite(GwtTstGln.class);
  psuite.addTestSuite(GwtTstGtin13.class);
  psuite.addTestSuite(GwtTstGtin8.class);
  psuite.addTestSuite(GwtTstGtin.class);
  psuite.addTestSuite(GwtTstIbanFormated.class);
  psuite.addTestSuite(GwtTstIban.class);
  psuite.addTestSuite(GwtTstIbanWithSpaces.class);
  psuite.addTestSuite(GwtTstIsbn10Formated.class);
  psuite.addTestSuite(GwtTstIsbn10.class);
  psuite.addTestSuite(GwtTstIsbn10WithSeparators.class);
  psuite.addTestSuite(GwtTstIsbn13Formated.class);
  psuite.addTestSuite(GwtTstIsbn13.class);
  psuite.addTestSuite(GwtTstIsbn13WithSeparators.class);
  psuite.addTestSuite(GwtTstIsbnFormated.class);
  psuite.addTestSuite(GwtTstIsbn.class);
  psuite.addTestSuite(GwtTstIsbnWithSeparators.class);
  psuite.addTestSuite(GwtTstIsin.class);
  psuite.addTestSuite(GwtTstLimitCharset.class);
  psuite.addTestSuite(GwtTstLevenshteinDistance.class);
  psuite.addTestSuite(GwtTstMustBeEqual.class);
  psuite.addTestSuite(GwtTstMustNotBeEqual.class);
  psuite.addTestSuite(GwtTstMustBeBiggerDate.class);
  psuite.addTestSuite(GwtTstMustBeBiggerInteger.class);
  psuite.addTestSuite(GwtTstMustBeBiggerOrEqualDate.class);
  psuite.addTestSuite(GwtTstMustBeBiggerOrEqualInteger.class);
  psuite.addTestSuite(GwtTstMustBeSmallerDate.class);
  psuite.addTestSuite(GwtTstMustBeSmallerInteger.class);
  psuite.addTestSuite(GwtTstMustBeSmallerOrEqualDate.class);
  psuite.addTestSuite(GwtTstMustBeSmallerOrEqualInteger.class);
  psuite.addTestSuite(GwtTstNotEmptyAfterStrip.class);
  psuite.addTestSuite(GwtTstNotEmptyAlternateIfOtherHasValue.class);
  psuite.addTestSuite(GwtTstNotEmptyAlternateIfOtherIsEmpty.class);
  psuite.addTestSuite(GwtTstNotEmptyAlternateIfOtherIsNotEmpty.class);
  psuite.addTestSuite(GwtTstNotEmptyIfOtherHasValue.class);
  psuite.addTestSuite(GwtTstNotEmptyIfOtherIsEmpty.class);
  psuite.addTestSuite(GwtTstNotEmptyIfOtherIsNotEmpty.class);
  psuite.addTestSuite(GwtTstPassword.class);
  psuite.addTestSuite(GwtTstPhoneNumber.class);
  psuite.addTestSuite(GwtTstPhoneNumberValue.class);
  psuite.addTestSuite(GwtTstPostalCode.class);
  psuite.addTestSuite(GwtTstRegularExpression.class);
  psuite.addTestSuite(GwtTstSizeWithoutSeparators.class);
  psuite.addTestSuite(GwtTstTaxNumber.class);
  psuite.addTestSuite(GwtTstTin.class);
  psuite.addTestSuite(GwtTstUrl.class);
  psuite.addTestSuite(GwtTstVatId.class);
  psuite.addTestSuite(GwtTstIbanUtil.class);
  psuite.addTestSuite(GwtTstIsbnUtil.class);
  psuite.addTestSuite(GwtTstPhoneNumberUtil.class);
  psuite.addTestSuite(GwtTstRegExUtil.class);
  psuite.addTestSuite(GwtTstListOfEmails.class);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators,代码行数:66,代码来源:GwtTestBeanValidatorsSuite.java

示例3: appendHibernateBeanValidatorTests

import com.google.gwt.junit.tools.GWTTestSuite; //导入依赖的package包/类
private static void appendHibernateBeanValidatorTests(final GWTTestSuite psuite) {
  psuite.addTestSuite(GwtTstHibernateAssertFalse.class);
  psuite.addTestSuite(GwtTstHibernateAssertTrue.class);
  psuite.addTestSuite(GwtTstHibernateCodePointLength.class);
  psuite.addTestSuite(GwtTstHibernateDecimalMinMax.class);
  psuite.addTestSuite(GwtTstHibernateDigits.class);
  psuite.addTestSuite(GwtTstHibernateEmail.class);
  psuite.addTestSuite(GwtTstHibernateLuhnCheck.class);
  psuite.addTestSuite(GwtTstHibernateMinMax.class);
  psuite.addTestSuite(GwtTstHibernateMod10Check.class);
  psuite.addTestSuite(GwtTstHibernateMod11Check.class);
  psuite.addTestSuite(GwtTstHibernateNegative.class);
  psuite.addTestSuite(GwtTstHibernateNegativeOrZero.class);
  psuite.addTestSuite(GwtTstHibernateNotNull.class);
  psuite.addTestSuite(GwtTstHibernateNotBlank.class);
  psuite.addTestSuite(GwtTstHibernateNotEmpty.class);
  psuite.addTestSuite(GwtTstHibernateNull.class);
  psuite.addTestSuite(GwtTstHibernatePattern.class);
  psuite.addTestSuite(GwtTstHibernatePositive.class);
  psuite.addTestSuite(GwtTstHibernatePositiveOrZero.class);
  psuite.addTestSuite(GwtTstHibernateSize.class);
  psuite.addTestSuite(GwtTstHibernateSizeArray.class);
  psuite.addTestSuite(GwtTstHibernateSizeCollection.class);
  psuite.addTestSuite(GwtTstHibernateFuture.class);
  psuite.addTestSuite(GwtTstHibernateFutureOrPresent.class);
  psuite.addTestSuite(GwtTstHibernatePast.class);
  psuite.addTestSuite(GwtTstHibernatePastOrPresent.class);
  psuite.addTestSuite(GwtTstHibernateEan8.class);
  psuite.addTestSuite(GwtTstHibernateEan13.class);
  psuite.addTestSuite(GwtTstHibernateIsbn10.class);
  psuite.addTestSuite(GwtTstHibernateIsbn13.class);
  psuite.addTestSuite(GwtTstHibernateLength.class);
  psuite.addTestSuite(GwtTstHibernateCreditCardNumber.class);
  psuite.addTestSuite(GwtTstHibernateUrl.class);
  psuite.addTestSuite(GwtTstHibernateCnpj.class);
  psuite.addTestSuite(GwtTstHibernateCpf.class);
  psuite.addTestSuite(GwtTstHibernateNip.class);
  psuite.addTestSuite(GwtTstHibernatePesel.class);
  psuite.addTestSuite(GwtTstHibernateRange.class);
  psuite.addTestSuite(GwtTstHibernateRegon.class);
  psuite.addTestSuite(GwtTstHibernateUniqueElements.class);
  psuite.addTestSuite(GwtTstHibernateTituloEleitoral.class);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators,代码行数:44,代码来源:GwtTestBeanValidatorsSuite.java

示例4: appendOtherBeanValidatorTests

import com.google.gwt.junit.tools.GWTTestSuite; //导入依赖的package包/类
private static void appendOtherBeanValidatorTests(final GWTTestSuite psuite) {
  psuite.addTestSuite(GwtTstFoo.class);
  psuite.addTestSuite(GwtTstFooFoo.class);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators,代码行数:5,代码来源:GwtTestBeanValidatorsSuite.java

示例5: addGwtTestSuite

import com.google.gwt.junit.tools.GWTTestSuite; //导入依赖的package包/类
@Override
public void addGwtTestSuite(Class<? extends GWTTestSuite> asSubclass) {
    // TODO: setup a run config for this GWTTestSuite
    throw new NotYetImplemented("GwtTestSuite not yet implemented");
}
 
开发者ID:WeTheInternet,项目名称:xapi,代码行数:6,代码来源:GwtcProjectGeneratorDefault.java

示例6: addGwtTestSuite

import com.google.gwt.junit.tools.GWTTestSuite; //导入依赖的package包/类
void addGwtTestSuite(Class<? extends GWTTestSuite> asSubclass); 
开发者ID:WeTheInternet,项目名称:xapi,代码行数:2,代码来源:GwtcProjectGenerator.java


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