Home
last modified time | relevance | path

Searched refs:assertException (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/print/src/android/print/cts/
DClassParametersTest.java38 private void assertException(Runnable r, Class<? extends RuntimeException> expectedClass) { in assertException() method in ClassParametersTest
60 assertException(() -> (new PrintAttributes.Builder()).setColorMode(-1), in testIllegalPrintAttributes()
62 assertException(() -> (new PrintAttributes.Builder()).setColorMode(0), in testIllegalPrintAttributes()
64 assertException(() -> (new PrintAttributes.Builder()).setColorMode( in testIllegalPrintAttributes()
68 assertException(() -> (new PrintAttributes.Builder()).setDuplexMode(-1), in testIllegalPrintAttributes()
70 assertException(() -> (new PrintAttributes.Builder()).setDuplexMode(0), in testIllegalPrintAttributes()
72 assertException(() -> (new PrintAttributes.Builder()).setDuplexMode( in testIllegalPrintAttributes()
76 assertException(() -> new Resolution(null, "label", 10, 10), in testIllegalPrintAttributes()
78 assertException(() -> new Resolution("", "label", 10, 10), in testIllegalPrintAttributes()
80 assertException(() -> new Resolution("id", null, 10, 10), in testIllegalPrintAttributes()
[all …]
DPrinterCapabilitiesTest.java343 private void assertException(Runnable r, Class<? extends RuntimeException> expectedClass) { in assertException() method in PrinterCapabilitiesTest
379 assertException(() -> new PrinterCapabilitiesInfo.Builder(null), in testIllegalPrinterCapabilityInfos()
384 assertException(() -> in testIllegalPrinterCapabilityInfos()
391 assertException(() -> in testIllegalPrinterCapabilityInfos()
397 assertException(() -> in testIllegalPrinterCapabilityInfos()
403 assertException(() -> in testIllegalPrinterCapabilityInfos()
411 assertException(() -> in testIllegalPrinterCapabilityInfos()
420 assertException(() -> in testIllegalPrinterCapabilityInfos()
426 assertException(() -> in testIllegalPrinterCapabilityInfos()
434 assertException(() -> in testIllegalPrinterCapabilityInfos()
[all …]