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


Java TestList.add方法代码示例

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


在下文中一共展示了TestList.add方法的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: testGroupData

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

    String deviceId = testStb.getId();
    tl.add(false, false, new String[] {deviceId}, null);
    tl.add(true, false, null, new String[] {deviceId});

    /** Not */
    tl.add(false, true, null, new String[] {deviceId});
    tl.add(true, true, new String[] {deviceId}, null);

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

示例3: testChangeModelNameData

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

    testList.add("", null, null, false, false);
    testList.add("SA3000", "VOD", "MAC_S", true, false);
    testList.add("SA4250HDC", "HD, DVR, NOT68K, VOD, ASTB", "MAC_S", true, false);
    testList.add("SA4250HDC", "TestCap1, TestCap2", "TestFamily", true, true);
    testList.add("InvalidModelName", "TestCap1, TestCap2", "TestFamily", false, true);
    testList.add("InvalidModelName", null, null, false, false);

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

示例4: testChangeValueData

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

    tl.add(true, "nameChange", true);
    tl.add(false, MetaStbBuilder.NAME, false);

    return tl;
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:10,代码来源:EditDeviceUIIT.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: testDelButtonData

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

    tl.add(false);
    tl.add(true);

    return tl;
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:10,代码来源:AdvanceFilterUIIT.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: testAddPropertyNonSetData

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

    tl.add("myVal");
    tl.add("");
    tl.add("\"?<>[email protected]#$%^&*(){}+_:.,;'[]=-`~'|\\");

    return tl;
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:11,代码来源:EditDeviceUIIT.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: testSingleFilterData

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

    String defDid = defaultStb.getId();
    String testDid = testStb.getId();
    String[] defDidArr = new String[] {defDid};
    String[] testDidArr = new String[] {testDid};
    tl.add("Id", "equals", testDid, false, testDidArr, defDidArr);
    tl.add("Model", "matches", "Test.*", false, testDidArr, defDidArr);
    tl.add("Make", "contains", "Test", false, testDidArr, defDidArr);
    tl.add("Rack Name", "contains", "Test", false, testDidArr, defDidArr);
    tl.add("Controller Ip Address", "contains", "TestIp", false, testDidArr, defDidArr);
    tl.add("Slot Name", "contains", "TestSlotName", false, testDidArr, defDidArr);
    tl.add("IR Blaster Type", "contains", "TestIrBlasterType", false, testDidArr, defDidArr);
    tl.add("Hardware Revision", "contains", "TestHardwareRevision", false, testDidArr, defDidArr);
    tl.add("Capabilities", "contains", "TestCap", false, testDidArr, defDidArr);
    tl.add("Capabilities", "contains", "SomeOtherCapability", false, null, new String[] {defDid, testDid}); // matches none

    tl.add("Id", "equals", testDid, true, defDidArr, testDidArr);
    tl.add("Model", "matches", "Test.*", true, defDidArr, testDidArr);
    tl.add("Make", "contains", "Test", true, defDidArr, testDidArr);
    tl.add("Rack Name", "contains", "Test", true, defDidArr, testDidArr);
    tl.add("Controller Ip Address", "contains", "TestIp", true, defDidArr, testDidArr);
    tl.add("Slot Name", "contains", "TestSlotName", true, defDidArr, testDidArr);
    tl.add("IR Blaster Type", "contains", "TestIrBlasterType", true, defDidArr, testDidArr);
    tl.add("Hardware Revision", "contains", "TestHardwareRevision", true, defDidArr, testDidArr);
    tl.add("Capabilities", "contains", "TestCap", true, defDidArr, testDidArr);
    tl.add("Capabilities", "contains", "SomeOtherCapability", true, new String[] {defDid, testDid}, null);

    return tl;
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:33,代码来源:AdvanceFilterUIIT.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.add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。