Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Extra Tests
- @Test
- public void invertWhite() throws IOException {
- assertEquals(Utils.loadPicture("images/black64x64.png"),
- runMain(tmpFolder, "invert", "images/white64x64.png"));
- }
- @Test
- public void flipHBlue() throws IOException {
- assertEquals(Utils.loadPicture("images/blueFH64x32doc.png"),
- runMain(tmpFolder, "flip", "H", "images/blue64x32doc.png"));
- }
- @Test
- public void flipVBlue() throws IOException {
- assertEquals(Utils.loadPicture("images/blueFV64x32doc.png"),
- runMain(tmpFolder, "flip", "V", "images/blue64x32doc.png"));
- }
- @Test
- public void rotate90Blue() throws IOException {
- assertEquals(Utils.loadPicture("images/blueR9064x32doc.png"),
- runMain(tmpFolder, "rotate", "90", "images/blue64x32doc.png"));
- }
- @Test
- public void rotate180Blue() throws IOException {
- assertEquals(Utils.loadPicture("images/blueR18064x32doc.png"),
- runMain(tmpFolder, "rotate", "180", "images/blue64x32doc.png"));
- }
- @Test
- public void rotate270Blue() throws IOException {
- assertEquals(Utils.loadPicture("images/blueR27064x32doc.png"),
- runMain(tmpFolder, "rotate", "270", "images/blue64x32doc.png"));
- }
- @Test
- public void grayscaleRainbow() throws IOException {
- assertEquals(Utils.loadPicture("images/rainbowGS64x64doc.png"),
- runMain(tmpFolder, "grayscale", "images/rainbow64x64doc.png"));
- }
- @Test
- public void invertRainbow() throws IOException {
- assertEquals(Utils.loadPicture("images/rainbowI64x64doc.png"),
- runMain(tmpFolder, "invert", "images/rainbow64x64doc.png"));
- }
- @Test
- public void blurSunset() throws IOException {
- assertEquals(Utils.loadPicture("images/sunsetBlur64x32.png"),
- runMain(tmpFolder, "blur", "images/sunset64x32.png"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement