From e80fc8044f9628c4d8d246eb764cb83a64f8d5dc Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 1 Mar 2016 18:36:32 +0100 Subject: Automatic code cleanup --- test/ch/epfl/xblast/server/BoardTest.java | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'test/ch') diff --git a/test/ch/epfl/xblast/server/BoardTest.java b/test/ch/epfl/xblast/server/BoardTest.java index 5cf2aef..014bd17 100644 --- a/test/ch/epfl/xblast/server/BoardTest.java +++ b/test/ch/epfl/xblast/server/BoardTest.java @@ -26,9 +26,8 @@ public class BoardTest { public void isBoardBuilderIllegalInputThrowingException() { List> blocks = new ArrayList<>(); - for (int i = 0; i < 8; i++) { + for (int i = 0; i < 8; i++) blocks.add(Sq.constant(Block.FREE)); - } new Board(blocks); } @@ -44,9 +43,9 @@ public class BoardTest { List> rowsList = new ArrayList<>(); List sampleRow = new ArrayList<>(); - for (int i = 0; i < 8; i++) { + for (int i = 0; i < 8; i++) sampleRow.add(Block.FREE); - } + rowsList.add(sampleRow); assertTrue(Board.ofRows(rowsList) instanceof Board); @@ -58,9 +57,9 @@ public class BoardTest { for (int i = 0; i < 13; i++) { List sampleRow = new ArrayList<>(); - for (int j = 0; j < 15; j++) { + for (int j = 0; j < 15; j++) sampleRow.add(Block.FREE); - } + rowsList.add(sampleRow); } @@ -78,9 +77,9 @@ public class BoardTest { List> rowsList = new ArrayList<>(); List sampleRow = new ArrayList<>(); - for (int i = 0; i < 8; i++) { + for (int i = 0; i < 8; i++) sampleRow.add(Block.FREE); - } + rowsList.add(sampleRow); assertTrue(Board.ofInnerBlocksWalled(rowsList) instanceof Board); @@ -92,9 +91,9 @@ public class BoardTest { for (int i = 0; i < 11; i++) { List sampleRow = new ArrayList<>(); - for (int j = 0; j < 13; j++) { + for (int j = 0; j < 13; j++) sampleRow.add(Block.FREE); - } + rowsList.add(sampleRow); } @@ -112,9 +111,9 @@ public class BoardTest { List> rowsList = new ArrayList<>(); List sampleRow = new ArrayList<>(); - for (int i = 0; i < 8; i++) { + for (int i = 0; i < 8; i++) sampleRow.add(Block.FREE); - } + rowsList.add(sampleRow); assertTrue(Board.ofQuadrantNWBlocksWalled(rowsList) instanceof Board); @@ -126,9 +125,9 @@ public class BoardTest { for (int i = 0; i < 6; i++) { List sampleRow = new ArrayList<>(); - for (int j = 0; j < 7; j++) { + for (int j = 0; j < 7; j++) sampleRow.add(Block.FREE); - } + rowsList.add(sampleRow); } @@ -143,9 +142,9 @@ public class BoardTest { List> blocksList = new ArrayList<>(); blocksList.add(Sq.constant(Block.INDESTRUCTIBLE_WALL)); - for (int i = 0; i < 194; i++) { + for (int i = 0; i < 194; i++) blocksList.add(Sq.constant(Block.FREE)); - } + Board sampleBoard = new Board(blocksList); assertTrue(sampleBoard.blockAt(sampleCell) == Block.INDESTRUCTIBLE_WALL); -- cgit v1.2.3