Refactoring Consolidation Service
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / dao / utils / ImageResizeUtilTest.java
1 package org.openecomp.sdc.be.dao.utils;
2
3 import java.awt.image.BufferedImage;
4
5 import org.junit.Test;
6
7 import mockit.Deencapsulation;
8
9 public class ImageResizeUtilTest {
10
11         @Test
12         public void testResizeImage() throws Exception {
13                 BufferedImage originalImage = new BufferedImage(1, 1, 1);
14                 int width = 1;
15                 int height = 1;
16                 boolean preserveDimensions = false;
17                 BufferedImage result;
18
19                 // default test
20                 result = ImageResizeUtil.resizeImage(originalImage, width, height, preserveDimensions);
21         }
22
23         @Test
24         public void testResizeImageWithHint() throws Exception {
25                 BufferedImage originalImage = new BufferedImage(1, 1, 1);
26                 int width = 1;
27                 int height = 1;
28                 boolean preserveDimensions = false;
29                 BufferedImage result;
30
31                 // default test
32                 result = ImageResizeUtil.resizeImageWithHint(originalImage, width, height, preserveDimensions);
33         }
34
35         @Test
36         public void testResizeImage_1() throws Exception {
37                 BufferedImage originalImage = new BufferedImage(1, 1, 1);
38                 int width = 1;
39                 int height = 1;
40                 boolean preserveDimensions = true;
41                 boolean enableHighQuality = false;
42                 BufferedImage result;
43
44                 // default test
45                 result = Deencapsulation.invoke(ImageResizeUtil.class, "resizeImage",
46                                 originalImage, width, height, preserveDimensions, enableHighQuality);
47         }
48
49         @Test
50         public void testComputeDimensions() throws Exception {
51                 int width = 0;
52                 int height = 0;
53                 int originalWidth = 0;
54                 int originalHeight = 0;
55                 int[] result;
56
57                 // default test
58                 result = ImageResizeUtil.computeDimensions(width, height, originalWidth, originalHeight);
59         }
60 }