4141
4242import org .junit .BeforeClass ;
4343import org .junit .Test ;
44+ import org .junit .experimental .categories .Category ;
4445
4546import xdev .io .IOUtils ;
47+ import xdev .test .UITest ;
4648
4749
4850/**
@@ -123,6 +125,7 @@ public void testGetInternalFrameDragMode()
123125 * @throws IOException
124126 */
125127 @ Test
128+ @ Category (UITest .class )
126129 public void testLoadImagePlainString () throws IOException
127130 {
128131 final Image img = GraphicUtils .loadImagePlain (this .ROOT_PATH_RELATIVE );
@@ -165,6 +168,7 @@ public void testLoadImagePlainStringComponent() throws IOException
165168 * @throws IOException
166169 */
167170 @ Test
171+ @ Category (UITest .class )
168172 public void testLoadImageString () throws IOException
169173 {
170174 final BufferedImage bimg = GraphicUtils .loadImage (this .ROOT_PATH_RELATIVE );
@@ -178,6 +182,7 @@ public void testLoadImageString() throws IOException
178182 * @throws IOException
179183 */
180184 @ Test (expected = IOException .class )
185+ @ Category (UITest .class )
181186 public void testLoadImageStringIOException () throws IOException
182187 {
183188 GraphicUtils .loadImage (this .ROOT_PATH_RELATIVE + "1" );
@@ -191,6 +196,7 @@ public void testLoadImageStringIOException() throws IOException
191196 * @throws IOException
192197 */
193198 @ Test
199+ @ Category (UITest .class )
194200 public void testLoadImageStringComponent () throws IOException
195201 {
196202 final XdevButton b = new XdevButton ();
@@ -205,6 +211,7 @@ public void testLoadImageStringComponent() throws IOException
205211 * @throws IOException
206212 */
207213 @ Test
214+ @ Category (UITest .class )
208215 public void testLoadIcon () throws IOException
209216 {
210217 final Icon i = GraphicUtils .loadIcon (this .ROOT_PATH_RELATIVE );
@@ -217,6 +224,7 @@ public void testLoadIcon() throws IOException
217224 * @throws IOException
218225 */
219226 @ Test (expected = IOException .class )
227+ @ Category (UITest .class )
220228 public void testLoadIconIOException () throws IOException
221229 {
222230 GraphicUtils .loadIcon (this .ROOT_PATH_RELATIVE + "1" );
@@ -227,6 +235,7 @@ public void testLoadIconIOException() throws IOException
227235 * {@link xdev.ui.GraphicUtils#createBufferedImage(java.awt.Image)}.
228236 */
229237 @ Test
238+ @ Category (UITest .class )
230239 public void testCreateBufferedImageImage ()
231240 {
232241 final BufferedImage biTranslucent = GraphicUtils .createBufferedImage (this .ORIGINAL_IMAGEICON .getImage ());
@@ -239,6 +248,7 @@ public void testCreateBufferedImageImage()
239248 * .
240249 */
241250 @ Test
251+ @ Category (UITest .class )
242252 public void testCreateBufferedImageImageBoolean ()
243253 {
244254 final BufferedImage biTranslucent = GraphicUtils .createBufferedImage (
@@ -266,49 +276,6 @@ public void testCreateImageFromIcon()
266276 assertEquals (this .ORIGINAL_IMAGEICON .getImage (), actual );
267277 }
268278
269- /**
270- * Test method for
271- * {@link xdev.ui.GraphicUtils#createImageURL(java.lang.String)}.
272- */
273- @ Test
274- public void testCreateImageURL ()
275- {
276- // TODO (FHAE) implements test for createImageURL, javadoc is not
277- // available
278- }
279-
280- /**
281- * Test method for {@link xdev.ui.GraphicUtils#loadImage(java.net.URL)}.
282- */
283- @ Test
284- public void testLoadImageURL ()
285- {
286- // TODO (FHAE) implements test for createImageURL, javadoc is not
287- // available
288- }
289-
290- /**
291- * Test method for
292- * {@link xdev.ui.GraphicUtils#loadImage(java.net.URL, java.awt.Component)}.
293- */
294- @ Test
295- public void testLoadImageURLComponent ()
296- {
297- // TODO (FHAE) implements test for createImageURL, javadoc is not
298- // available
299- }
300-
301- /**
302- * Test method for
303- * {@link xdev.ui.GraphicUtils#loadResIcon(java.lang.String)}.
304- */
305- @ Test
306- public void testLoadResIconString ()
307- {
308- // TODO (FHAE) implements test for loadResIcon, javadoc is not
309- // available
310- }
311-
312279 /**
313280 * Test method for
314281 * {@link xdev.ui.GraphicUtils#resize(java.awt.Image, int, int)}.
@@ -351,13 +318,4 @@ public void testResizeProportional()
351318 assertEquals (484 , img .getWidth (null ) + 100 );
352319 }
353320
354- /**
355- * Test method for {@link xdev.ui.GraphicUtils#waitFor(java.awt.Image)}.
356- */
357- @ Test
358- public void testWaitFor ()
359- {
360- // Not implemented
361- }
362-
363321}
0 commit comments