Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-02-01 15:48:42 +0000
committerAlexander Kurtakov2018-02-01 15:50:01 +0000
commit427f3cc7254a2846874a0edda7e626b16b81a874 (patch)
treebd608f50705b9fd8f485b23ef52089ad68a05e92 /tests
parent5ea94e70056200426b2124f82323195709f99dc0 (diff)
downloadeclipse.platform.swt-427f3cc7254a2846874a0edda7e626b16b81a874.tar.gz
eclipse.platform.swt-427f3cc7254a2846874a0edda7e626b16b81a874.tar.xz
eclipse.platform.swt-427f3cc7254a2846874a0edda7e626b16b81a874.zip
Suppress deprecation warnings.
For tests of deprecated methods. Change-Id: I58cd788ea798671d7d935480eb492886005e1384 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
index 3a068fb2fa..0c38c4bbf2 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2016 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -706,6 +706,7 @@ public void test_getBounds() {
assertEquals(":c:", bounds, bounds1);
}
+@SuppressWarnings("deprecation")
@Test
public void test_getBoundsInPixels() {
Rectangle bounds = new Rectangle(0, 0, 10, 20);
@@ -746,6 +747,7 @@ public void test_getBoundsInPixels() {
assertEquals(":d: Image.getBoundsInPixels method doesn't return bounds in Pixel values.", boundsInPixels, DPIUtil.autoScaleUp(bounds));
}
+@SuppressWarnings("deprecation")
@Test
public void test_getImageDataCurrentZoom() {
Rectangle bounds = new Rectangle(0, 0, 10, 20);

Back to the top