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


Java TestList类代码示例

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


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

示例1: getExceptions

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name = "exceptions")
public TestList getExceptions() {
    TestList list = new TestList();

    /* Tests without custom map */
    list.add(false, new Exception(), 500, "Internal Server Error");
    list.add(false, new TestException1(), 406, "Not Acceptable");
    list.add(false, new TestException2(), 418, "Magic and Bad Luck");
    list.add(false, new NullPointerException(), 500, "Internal Server Error");

    /* Tests with custom map */
    list.add(true, new Exception(), 500, "Internal Server Error");
    list.add(true, new TestException1(), 406, "Not Acceptable");
    list.add(true, new TestException2(), 418, "Magic and Bad Luck");
    list.add(true, new NullPointerException(), 404, "Not Found");

    return list;
}
 
开发者ID:Comcast,项目名称:drive-thru,代码行数:19,代码来源:ExceptionHandlerTest.java

示例2: getConverters

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name = "converters")
public TestList getConverters() {
    TestList list = new TestList();

    list.add(new JsonCerealHttpMessageConverter());
    list.add(new YamlCerealHttpMessageConverter());

    return list;
}
 
开发者ID:Comcast,项目名称:drive-thru,代码行数:10,代码来源:CerealHttpMessageConvertersTest.java

示例3: getValidPostStatusCodes

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name = "validPostStatusCodes")
public TestList getValidPostStatusCodes() {
    TestList tests = new TestList();

    tests.add(HttpStatus.SC_OK);
    tests.add(HttpStatus.SC_CREATED);
    tests.add(HttpStatus.SC_NO_CONTENT);

    return tests;
}
 
开发者ID:Comcast,项目名称:drive-thru,代码行数:11,代码来源:RestClientTest.java

示例4: getValidPutStatusCodes

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name = "validPutStatusCodes")
public TestList getValidPutStatusCodes() {
    TestList tests = new TestList();

    tests.add(HttpStatus.SC_CREATED, true);
    tests.add(HttpStatus.SC_OK, false);
    tests.add(HttpStatus.SC_NO_CONTENT, false);

    return tests;
}
 
开发者ID:Comcast,项目名称:drive-thru,代码行数:11,代码来源:RestClientTest.java

示例5: getValidDeleteStatusCodes

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name = "validDeleteStatusCodes")
public TestList getValidDeleteStatusCodes() {
    TestList tests = new TestList();

    tests.add(HttpStatus.SC_OK, true);
    tests.add(HttpStatus.SC_ACCEPTED, false);
    tests.add(HttpStatus.SC_NO_CONTENT, false);

    return tests;
}
 
开发者ID:Comcast,项目名称:drive-thru,代码行数:11,代码来源:RestClientTest.java

示例6: getRecorders

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider
public TestList getRecorders() {
    TestList list = new TestList();

    list.add(new MockRestClient(BASE_URL));
    list.add(new MockEasyRestClient<>(CatPhoto.class, BASE_URL));

    return list;
}
 
开发者ID:Comcast,项目名称:drive-thru,代码行数:10,代码来源:RecordingRestClientTest.java

示例7: testCerealizeData

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name="engineData")
public TestList testCerealizeData() {
    TestList tl = new TestList();

    tl.add(new JsonCerealEngine());
    tl.add(new XmlCerealEngine());
    tl.add(new YamlCerealEngine());
    
    return tl;
}
 
开发者ID:Comcast,项目名称:cereal,代码行数:11,代码来源:CerealEngineTest.java

示例8: testConversionData

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name="testConversionData")
public TestList testConversionData() {
	TestList list = new TestList();

	list.add(JsonCerealEngine.class, "/team.json");
	list.add(XmlCerealEngine.class, "/team.xml");
	list.add(YamlCerealEngine.class, "/team.yaml");
	
	return list;
}
 
开发者ID:Comcast,项目名称:cereal,代码行数:11,代码来源:EngineTest.java

示例9: getNames

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name = "names")
public TestList getNames() {
    TestList list = new TestList();

    list.add("Clark", "Malmgren");
    list.add("Apple", "Banana");

    return list;
}
 
开发者ID:Comcast,项目名称:cereal,代码行数:10,代码来源:CerealizableTest.java

示例10: testPrimitiveCastData

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name="testPrimitiveCastData")
public TestList testPrimitiveCastData() {
    TestList tests = new TestList();
    tests.add(4.5, Integer.class, 4);
    tests.add(5, Boolean.class, true);
    tests.add(0, Boolean.class, false);
    tests.add(5, Long.class, 5l);
    tests.add(6l, Short.class, (short) 6);
    tests.add((byte)('k'), Character.class, 'k');
    tests.add(7, Float.class, 7.0f);
    tests.add(8, Double.class, 8.0d);
    tests.add(null, Integer.class, null);
    return tests;
}
 
开发者ID:Comcast,项目名称:cereal,代码行数:15,代码来源:PrimitiveAsStringsTest.java

示例11: getPrimitiveTests

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name = "primitiveTests")
public TestList getPrimitiveTests() {
    TestList tests = new TestList();
    RandomProvider r = new RandomProvider(6854984168548l);

    for (int i = 0; i < 50; i++) {
        tests.add(r.nextBoolean(), (byte) r.nextInt(), (char) r.nextInt(0, 255), (short) r.nextInt(), r.nextInt(),
                r.nextLong(), r.nextFloat(), r.nextDouble());
    }

    return tests;
}
 
开发者ID:Comcast,项目名称:cereal,代码行数:13,代码来源:TypeTest.java

示例12: testDawgVideoOutputData

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name="testDawgVideoOutputData")
public TestList testDawgVideoOutputData() {
    TestList tl = new TestList();

    tl.add("http://10.253.1.2", "2", false);
    tl.add("10.253.1.2", null, false);
    tl.add("[email protected]#$%^&*()", null, true);

    return tl;
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:11,代码来源:DawgVideoOutputTest.java

示例13: testStbViewNoStbData

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name="testStbViewNoStbData")
public TestList testStbViewNoStbData() {
    TestList list = new TestList();

    list.add(true);
    list.add(false);

    return list;
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:10,代码来源:ViewControllerTest.java

示例14: testStbViewData

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name="testStbViewData")
public TestList testStbViewData() {
    TestList list = new TestList();

    list.add("BCM-7437-1", "BCM-7437-1", "true", BrowserSupportTest.SAFARI_IPAD, true, TestUtils.SERIALURL, true);
    list.add("HD-DTA", "XR2", "true", BrowserSupportTest.SAFARI_IPAD, true, TestUtils.SERIALURL, true);
    list.add("COMCAST_XMP", "XMP", "true", BrowserSupportTest.SAFARI_IPAD, true, TestUtils.SERIALURL, true);
    list.add("XR2", "XR2", "true", BrowserSupportTest.SAFARI_IPAD, true, TestUtils.SERIALURL, true);
    list.add("XR2_LEGACY_MOTOROLA", "XR2", "true", BrowserSupportTest.SAFARI_IPAD, true, TestUtils.SERIALURL, true);
    list.add("BAD", "MOTOROLA", null, BrowserSupportTest.SAFARI_IPAD, true, null, false);

    return list;
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:14,代码来源:ViewControllerTest.java

示例15: testPowerData

import com.comcast.pantry.test.TestList; //导入依赖的package包/类
@DataProvider(name="testPowerData")
public TestList testPowerData() {
    TestList list = new TestList();

    list.add("on", false);
    list.add("BAD", true);

    return list;
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:10,代码来源:PowerControllerTest.java


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