From e25492f5f71b4ad4e09e485fe46b5dd60a568994 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 29 Feb 2016 17:37:56 +0100 Subject: Remove redundant explicit type declaration --- test/ch/epfl/xblast/server/BoardTest.java | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'test/ch') diff --git a/test/ch/epfl/xblast/server/BoardTest.java b/test/ch/epfl/xblast/server/BoardTest.java index e40769b..673ab3b 100644 --- a/test/ch/epfl/xblast/server/BoardTest.java +++ b/test/ch/epfl/xblast/server/BoardTest.java @@ -14,14 +14,14 @@ import static org.junit.Assert.*; public class BoardTest { @Test(expected=IllegalArgumentException.class) public void isBoardBuilderEmptyInputThrowingException() { - List> blocks = new ArrayList>(); + List> blocks = new ArrayList<>(); new Board(blocks); } @Test(expected=IllegalArgumentException.class) public void isBoardBuilderIllegalInputThrowingException() { - List> blocks = new ArrayList>(); + List> blocks = new ArrayList<>(); for (int i = 0;i<8;i++) { blocks.add(Sq.constant(Block.FREE)); @@ -33,14 +33,14 @@ public class BoardTest { @Test(expected=IllegalArgumentException.class) public void isOfRowsEmptyInputMatrixThrowingException() { - List> rowsList = new ArrayList>(); + List> rowsList = new ArrayList<>(); Board.ofRows(rowsList); } @Test(expected=IllegalArgumentException.class) public void isOfRowsIllegalInputThrowingException() { - List> rowsList = new ArrayList>(); - List sampleRow = new ArrayList(); + List> rowsList = new ArrayList<>(); + List sampleRow = new ArrayList<>(); for (int i = 0;i < 8 ;i++) { sampleRow.add(Block.FREE); @@ -52,10 +52,10 @@ public class BoardTest { @Test public void buildBoardFromRowsMatrix() { - List> rowsList = new ArrayList>() ; + List> rowsList = new ArrayList<>() ; for (int i = 0; i < 13; i++) { - List sampleRow = new ArrayList(); + List sampleRow = new ArrayList<>(); for (int j = 0; j < 15; j++) { sampleRow.add(Block.FREE); } @@ -67,14 +67,14 @@ public class BoardTest { @Test(expected=IllegalArgumentException.class) public void isOfInnerBlocksWalledEmptyInputMatrixThrowingException() { - List> rowsList = new ArrayList>(); + List> rowsList = new ArrayList<>(); Board.ofInnerBlocksWalled(rowsList); } @Test(expected=IllegalArgumentException.class) public void isOfInnerBlocksWalledIllegalInputThrowingException() { - List> rowsList = new ArrayList>(); - List sampleRow = new ArrayList(); + List> rowsList = new ArrayList<>(); + List sampleRow = new ArrayList<>(); for (int i = 0;i < 8 ;i++) { sampleRow.add(Block.FREE); @@ -86,10 +86,10 @@ public class BoardTest { @Test public void buildBoardFromInnerBlocks() { - List> rowsList = new ArrayList>() ; + List> rowsList = new ArrayList<>() ; for (int i = 0; i < 11; i++) { - List sampleRow = new ArrayList(); + List sampleRow = new ArrayList<>(); for (int j = 0; j < 13; j++) { sampleRow.add(Block.FREE); } @@ -101,14 +101,14 @@ public class BoardTest { @Test(expected=IllegalArgumentException.class) public void isBuildWithEmptyQuadrantThrowingException() { - List> rowsList = new ArrayList>(); + List> rowsList = new ArrayList<>(); Board.ofQuadrantNWBlocksWalled(rowsList); } @Test(expected=IllegalArgumentException.class) public void isBuildWithIllegalQuadrantThrowingException() { - List> rowsList = new ArrayList>(); - List sampleRow = new ArrayList(); + List> rowsList = new ArrayList<>(); + List sampleRow = new ArrayList<>(); for (int i = 0;i < 8 ;i++) { sampleRow.add(Block.FREE); @@ -120,10 +120,10 @@ public class BoardTest { @Test public void buildBoardFromNWQuadrant() { - List> rowsList = new ArrayList>() ; + List> rowsList = new ArrayList<>() ; for (int i = 0; i < 6; i++) { - List sampleRow = new ArrayList(); + List sampleRow = new ArrayList<>(); for (int j = 0; j < 7; j++) { sampleRow.add(Block.FREE); } -- cgit v1.2.3