< prev index next >
test/java/awt/image/multiresolution/BaseMultiResolutionImageTest.java
Print this page
*** 189,198 ****
--- 189,209 ----
}
if (!passed) {
throw new RuntimeException("Resolution variants list is modifiable!");
}
+
+ passed = false;
+ try {
+ mrImage.getGraphics();
+ } catch (UnsupportedOperationException e) {
+ passed = true;
+ }
+
+ if (!passed) {
+ throw new RuntimeException("getGraphics() method shouldn't be supported!");
+ }
}
private static int getSize(int i) {
return 8 * (i + 1);
}
< prev index next >