本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}