SHARE
TWEET

Untitled

a guest Jan 17th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Extra Tests
  2.   @Test
  3.   public void invertWhite() throws IOException {
  4.     assertEquals(Utils.loadPicture("images/black64x64.png"),
  5.             runMain(tmpFolder, "invert", "images/white64x64.png"));
  6.   }
  7.  
  8.   @Test
  9.   public void flipHBlue() throws IOException {
  10.     assertEquals(Utils.loadPicture("images/blueFH64x32doc.png"),
  11.             runMain(tmpFolder, "flip", "H", "images/blue64x32doc.png"));
  12.   }
  13.  
  14.   @Test
  15.   public void flipVBlue() throws IOException {
  16.     assertEquals(Utils.loadPicture("images/blueFV64x32doc.png"),
  17.             runMain(tmpFolder, "flip", "V", "images/blue64x32doc.png"));
  18.   }
  19.  
  20.   @Test
  21.   public void rotate90Blue() throws IOException {
  22.     assertEquals(Utils.loadPicture("images/blueR9064x32doc.png"),
  23.             runMain(tmpFolder, "rotate", "90", "images/blue64x32doc.png"));
  24.   }
  25.  
  26.   @Test
  27.   public void rotate180Blue() throws IOException {
  28.     assertEquals(Utils.loadPicture("images/blueR18064x32doc.png"),
  29.             runMain(tmpFolder, "rotate", "180", "images/blue64x32doc.png"));
  30.   }
  31.  
  32.   @Test
  33.   public void rotate270Blue() throws IOException {
  34.     assertEquals(Utils.loadPicture("images/blueR27064x32doc.png"),
  35.             runMain(tmpFolder, "rotate", "270", "images/blue64x32doc.png"));
  36.   }
  37.  
  38.   @Test
  39.   public void grayscaleRainbow() throws IOException {
  40.     assertEquals(Utils.loadPicture("images/rainbowGS64x64doc.png"),
  41.             runMain(tmpFolder, "grayscale", "images/rainbow64x64doc.png"));
  42.   }
  43.  
  44.   @Test
  45.   public void invertRainbow() throws IOException {
  46.     assertEquals(Utils.loadPicture("images/rainbowI64x64doc.png"),
  47.             runMain(tmpFolder, "invert", "images/rainbow64x64doc.png"));
  48.   }
  49.  
  50.   @Test
  51.   public void blurSunset() throws IOException {
  52.     assertEquals(Utils.loadPicture("images/sunsetBlur64x32.png"),
  53.             runMain(tmpFolder, "blur", "images/sunset64x32.png"));
  54.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top