From dffef1ef4b941d391a37d74addf303c3d9e3d519 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:46:18 +0300 Subject: [PATCH 01/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 9 +++++++++ .besouro/201510121641484/besouroEpisodes.txt | 2 ++ .besouro/201510121641484/disagreements.txt | 0 .besouro/201510121641484/randomHeuristicEpisodes.txt | 2 ++ .besouro/201510121641484/userComments.txt | 0 .besouro/201510121641484/zorroEpisodes.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 6 +----- 7 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 .besouro/201510121641484/actions.txt create mode 100644 .besouro/201510121641484/besouroEpisodes.txt create mode 100644 .besouro/201510121641484/disagreements.txt create mode 100644 .besouro/201510121641484/randomHeuristicEpisodes.txt create mode 100644 .besouro/201510121641484/userComments.txt create mode 100644 .besouro/201510121641484/zorroEpisodes.txt diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt new file mode 100644 index 0000000..9a23aad --- /dev/null +++ b/.besouro/201510121641484/actions.txt @@ -0,0 +1,9 @@ +FileOpenedAction 1444657308681 Cell.java 964 8 19 0 +UnitTestCaseAction 1444657320274 TestCell.java OK +UnitTestSessionAction 1444657320283 TestCell (1) OK +UnitTestCaseAction 1444657330308 TestGrid.java OK +UnitTestSessionAction 1444657330318 TestGrid (1) OK +RefactoringAction 1444657564253 Cell.java RENAME Cell(int, int)=>Cell() METHOD +RefactoringAction 1444657569789 Cell.java RENAME Cell(String)=>Cell(String, int, int) METHOD +RefactoringAction 1444657573311 Cell.java REMOVE Cell() METHOD +EditAction 1444657578747 Cell.java 943 7 19 0 diff --git a/.besouro/201510121641484/besouroEpisodes.txt b/.besouro/201510121641484/besouroEpisodes.txt new file mode 100644 index 0000000..e09c278 --- /dev/null +++ b/.besouro/201510121641484/besouroEpisodes.txt @@ -0,0 +1,2 @@ +1444657320283 regression 1 11 true +1444657330318 regression 1 0 true diff --git a/.besouro/201510121641484/disagreements.txt b/.besouro/201510121641484/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/201510121641484/randomHeuristicEpisodes.txt b/.besouro/201510121641484/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..ead7880 --- /dev/null +++ b/.besouro/201510121641484/randomHeuristicEpisodes.txt @@ -0,0 +1,2 @@ +1444657320283 regression 1 11 false +1444657330318 regression 1 0 true diff --git a/.besouro/201510121641484/userComments.txt b/.besouro/201510121641484/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/201510121641484/zorroEpisodes.txt b/.besouro/201510121641484/zorroEpisodes.txt new file mode 100644 index 0000000..e46644f --- /dev/null +++ b/.besouro/201510121641484/zorroEpisodes.txt @@ -0,0 +1,2 @@ +1444657320283 regression 1 11 false +1444657330318 regression 1 10 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 08585f2..cfd71ff 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -5,12 +5,8 @@ public class Cell { int x; int y; - public Cell(String initialState) { + public Cell(String initialState, int x, int y) { this.state = initialState; - } - - - public Cell(int x, int y) { this.x = x; this.y = y; } From 00273ad8ab0b7437077fc92abf63f321ae9ebd80 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:54:08 +0300 Subject: [PATCH 02/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 7 +++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 7 +++++-- .../unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 4 ++-- .../unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 10 +++++----- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index 9a23aad..ba935c4 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -7,3 +7,10 @@ RefactoringAction 1444657564253 Cell.java RENAME Cell(int, int)=>Cell() METHOD RefactoringAction 1444657569789 Cell.java RENAME Cell(String)=>Cell(String, int, int) METHOD RefactoringAction 1444657573311 Cell.java REMOVE Cell() METHOD EditAction 1444657578747 Cell.java 943 7 19 0 +CompilationAction 1444657579755 Grid.java +CompilationAction 1444657579755 TestCell.java +CompilationAction 1444657579756 TestGrid.java +CompilationAction 1444657775271 TestGrid.java +CompilationAction 1444657778407 TestCell.java +CompilationAction 1444657848514 Grid.java +EditAction 1444658048231 Grid.java 642 2 6 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index bdb813e..a3de0dc 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -11,14 +11,17 @@ public int getNumNeighbors(Cell cell) { Set neighborhood = new HashSet (); for (int dx=-1; dx<=1; dx ++) { for (int dy=-1; dy<=1; dy ++) { - Cell neighbor = new Cell(cell.x + dx, cell.y + dy); + Cell neighbor = new Cell("Alive",cell.x + dx, cell.y + dy); if (cells.contains(neighbor)) { numNeighbors++; } } } - return numNeighbors-1; + if(cell.getState().equals("Alive")){ + return numNeighbors-1; + } + return numNeighbors; } public void addCell(Cell cell) { cells.add(cell); diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index cfe527a..62c1e3f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -10,7 +10,7 @@ public class TestCell { @Test public void testLiveCellWithNoNeighborsShouldDie() { //arrange - Cell cell = new Cell("Alive"); + Cell cell = new Cell("Alive", 0, 0); // cell.nextIteration(0); //assert @@ -20,7 +20,7 @@ public void testLiveCellWithNoNeighborsShouldDie() { @Test public void testLiveCellWithTwoNeighborsShouldLive() { //arrange - Cell cell = new Cell("Alive"); + Cell cell = new Cell("Alive", 0 ,0); // cell.nextIteration(2); //assert diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index eab5959..aeb3756 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -11,7 +11,7 @@ public class TestGrid { public void testSingleCellOnGridHasNoNeighbors() { //arrange Grid grid = new Grid(); - Cell cell = new Cell(0,0); + Cell cell = new Cell("Alive",0,0); grid.addCell(cell); @@ -24,8 +24,8 @@ public void testSingleCellOnGridHasNoNeighbors() { public void testTwoNeighborCellsShouldHaveOneNeigbor() { //arrange Grid grid = new Grid(); - Cell cell1 = new Cell(0,0); - Cell cell2 = new Cell(0,1); + Cell cell1 = new Cell("Alive",0,0); + Cell cell2 = new Cell("Alive",0,1); grid.addCell(cell1); grid.addCell(cell2); @@ -39,8 +39,8 @@ public void testTwoNeighborCellsShouldHaveOneNeigbor() { public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { //arrange Grid grid = new Grid(); - Cell cell1 = new Cell(0,0); - Cell cell2 = new Cell(1,0); + Cell cell1 = new Cell("Alive",0,0); + Cell cell2 = new Cell("Alive",1,0); grid.addCell(cell1); grid.addCell(cell2); From ac539ff3cf617fad5af66c541ea47ba9782f7aba Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 17:18:26 +0300 Subject: [PATCH 03/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 11 +++++++++++ .besouro/201510121641484/besouroEpisodes.txt | 1 + .besouro/201510121641484/randomHeuristicEpisodes.txt | 1 + .besouro/201510121641484/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 8 ++++++++ 5 files changed, 22 insertions(+) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index ba935c4..4ac11f4 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -14,3 +14,14 @@ CompilationAction 1444657775271 TestGrid.java CompilationAction 1444657778407 TestCell.java CompilationAction 1444657848514 Grid.java EditAction 1444658048231 Grid.java 642 2 6 0 +UnitTestCaseAction 1444658050641 TestGrid.java OK +UnitTestSessionAction 1444658050642 TestGrid (1) OK +RefactoringAction 1444659193694 Cell.java REMOVE hashCode() METHOD +RefactoringAction 1444659193694 Cell.java REMOVE equals(Object) METHOD +RefactoringAction 1444659211232 Cell.java ADD int hashCode() METHOD +RefactoringAction 1444659211236 Cell.java ADD boolean equals(Object) METHOD +FileOpenedAction 1444659368777 TestCell.java 1051 5 10 4 +RefactoringAction 1444659396621 TestCell.java ADD import org.junit.Before IMPORT +RefactoringAction 1444659441280 TestCell.java ADD Cell aliveCell FIELD +RefactoringAction 1444659441280 TestCell.java ADD Cell deadCell FIELD +EditAction 1444659506041 Cell.java 1142 7 21 0 diff --git a/.besouro/201510121641484/besouroEpisodes.txt b/.besouro/201510121641484/besouroEpisodes.txt index e09c278..93b3933 100644 --- a/.besouro/201510121641484/besouroEpisodes.txt +++ b/.besouro/201510121641484/besouroEpisodes.txt @@ -1,2 +1,3 @@ 1444657320283 regression 1 11 true 1444657330318 regression 1 0 true +1444658050642 refactoring 2A 486 true diff --git a/.besouro/201510121641484/randomHeuristicEpisodes.txt b/.besouro/201510121641484/randomHeuristicEpisodes.txt index ead7880..5668f47 100644 --- a/.besouro/201510121641484/randomHeuristicEpisodes.txt +++ b/.besouro/201510121641484/randomHeuristicEpisodes.txt @@ -1,2 +1,3 @@ 1444657320283 regression 1 11 false 1444657330318 regression 1 0 true +1444658050642 refactoring 2A 486 true diff --git a/.besouro/201510121641484/zorroEpisodes.txt b/.besouro/201510121641484/zorroEpisodes.txt index e46644f..a078e21 100644 --- a/.besouro/201510121641484/zorroEpisodes.txt +++ b/.besouro/201510121641484/zorroEpisodes.txt @@ -1,2 +1,3 @@ 1444657320283 regression 1 11 false 1444657330318 regression 1 10 false +1444658050642 refactoring 2A 720 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index cfd71ff..3cea2d5 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -34,6 +34,7 @@ public Object getState() { public int hashCode() { final int prime = 31; int result = 1; + result = prime * result + ((state == null) ? 0 : state.hashCode()); result = prime * result + x; result = prime * result + y; return result; @@ -48,12 +49,19 @@ public boolean equals(Object obj) { if (getClass() != obj.getClass()) return false; Cell other = (Cell) obj; + if (state == null) { + if (other.state != null) + return false; + } else if (!state.equals(other.state)) + return false; if (x != other.x) return false; if (y != other.y) return false; return true; } + + From 6a7b5901ea6e5ca37c1ad77c8ea14ee418cb10ae Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 17:18:29 +0300 Subject: [PATCH 04/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 1 + .../tol/sqatlab/gameoflife/test/TestCell.java | 22 ++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index 4ac11f4..ebf5dde 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -25,3 +25,4 @@ RefactoringAction 1444659396621 TestCell.java ADD import org.junit.Before IMPORT RefactoringAction 1444659441280 TestCell.java ADD Cell aliveCell FIELD RefactoringAction 1444659441280 TestCell.java ADD Cell deadCell FIELD EditAction 1444659506041 Cell.java 1142 7 21 0 +EditAction 1444659509408 TestCell.java 724 3 6 2 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 62c1e3f..af1c6ba 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -2,29 +2,39 @@ import static org.junit.Assert.*; +import org.junit.Before; import org.junit.Test; import org.unioulu.tol.sqatlab.gameoflife.Cell; public class TestCell { + + private Cell aliveCell; + private Cell deadCell; + + @Before + public void setup(){ + aliveCell = new Cell("Alive", 0, 0); + deadCell = new Cell("Dead", 0, 0); + } @Test public void testLiveCellWithNoNeighborsShouldDie() { //arrange - Cell cell = new Cell("Alive", 0, 0); + // - cell.nextIteration(0); + aliveCell.nextIteration(0); //assert - assertEquals("Dead", cell.getState()); + assertEquals("Dead", aliveCell.getState()); } @Test public void testLiveCellWithTwoNeighborsShouldLive() { //arrange - Cell cell = new Cell("Alive", 0 ,0); + // - cell.nextIteration(2); + aliveCell.nextIteration(2); //assert - assertEquals("Alive", cell.getState()); + assertEquals("Alive", aliveCell.getState()); } From 8b042fe646e8d03a2547705f40b87f6ea9161c93 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 17:19:13 +0300 Subject: [PATCH 05/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 4 ++++ .../unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index ebf5dde..a709172 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -26,3 +26,7 @@ RefactoringAction 1444659441280 TestCell.java ADD Cell aliveCell FIELD RefactoringAction 1444659441280 TestCell.java ADD Cell deadCell FIELD EditAction 1444659506041 Cell.java 1142 7 21 0 EditAction 1444659509408 TestCell.java 724 3 6 2 +UnitTestCaseAction 1444659515594 TestGrid.java OK +UnitTestSessionAction 1444659515595 TestGrid (1) OK +RefactoringAction 1444659541184 TestCell.java ADD void testCellUpdateAliveCellWithFourNeighborsShouldDie() METHOD +EditAction 1444659553737 TestCell.java 891 4 8 3 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index af1c6ba..b844c15 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -36,6 +36,13 @@ public void testLiveCellWithTwoNeighborsShouldLive() { //assert assertEquals("Alive", aliveCell.getState()); } - + @Test + public void testCellUpdateAliveCellWithFourNeighborsShouldDie() { + + //act + aliveCell.nextIteration(4); + // + assertEquals("Dead", aliveCell.getState()); + } } From 63c0d5d4aa4722ff8f824cb84b8844eea62368f2 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 17:22:47 +0300 Subject: [PATCH 06/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index a709172..f8191ae 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -30,3 +30,7 @@ UnitTestCaseAction 1444659515594 TestGrid.java OK UnitTestSessionAction 1444659515595 TestGrid (1) OK RefactoringAction 1444659541184 TestCell.java ADD void testCellUpdateAliveCellWithFourNeighborsShouldDie() METHOD EditAction 1444659553737 TestCell.java 891 4 8 3 +UnitTestCaseAction 1444659554774 TestCell.java FAIL +UnitTestSessionAction 1444659554774 TestCell (1) FAIL +FileOpenedAction 1444659564419 Cell.java 555 4 4 0 +EditAction 1444659767369 Cell.java 1210 7 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 3cea2d5..5a8964b 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -22,7 +22,9 @@ public int getY() { public void nextIteration(int numOfLiveCells) { if (state == "Alive" && numOfLiveCells < 2) state = "Dead"; - else + else if(state == "Alive" && numOfLiveCells > 3) + state = "Dead"; + else state = "Alive"; } From 95cf94a86adeef4a4bce1e245a7ec058227b2106 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 17:23:26 +0300 Subject: [PATCH 07/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index f8191ae..b884f85 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -34,3 +34,7 @@ UnitTestCaseAction 1444659554774 TestCell.java FAIL UnitTestSessionAction 1444659554774 TestCell (1) FAIL FileOpenedAction 1444659564419 Cell.java 555 4 4 0 EditAction 1444659767369 Cell.java 1210 7 21 0 +UnitTestCaseAction 1444659768509 TestCell.java OK +UnitTestSessionAction 1444659768510 TestCell (1) OK +RefactoringAction 1444659796168 TestCell.java ADD void testCellUpdateDeadCellWithThreeNeighborsShouldLive() METHOD +EditAction 1444659806895 TestCell.java 1060 5 10 4 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index b844c15..83f8def 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -44,5 +44,13 @@ public void testCellUpdateAliveCellWithFourNeighborsShouldDie() { // assertEquals("Dead", aliveCell.getState()); } + @Test + public void testCellUpdateDeadCellWithThreeNeighborsShouldLive() { + + //act + deadCell.nextIteration(3); + // + assertEquals("Alive", deadCell.getState()); + } } From 1a1d9414bbc80e9e544a1ddc0d18a256e7882f7f Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 17:33:46 +0300 Subject: [PATCH 08/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 1 + 2 files changed, 6 insertions(+) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index b884f85..a95eb46 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -38,3 +38,8 @@ UnitTestCaseAction 1444659768509 TestCell.java OK UnitTestSessionAction 1444659768510 TestCell (1) OK RefactoringAction 1444659796168 TestCell.java ADD void testCellUpdateDeadCellWithThreeNeighborsShouldLive() METHOD EditAction 1444659806895 TestCell.java 1060 5 10 4 +UnitTestCaseAction 1444659808094 TestCell.java OK +UnitTestSessionAction 1444659808094 TestCell (1) OK +RefactoringAction 1444660379096 TestGrid.java ADD void testTwoNeighborCellsShouldHaveOneNeigbor()/2 METHOD +RefactoringAction 1444660394614 TestGrid.java REMOVE testTwoNeighborCellsShouldHaveOneNeigbor()/2 METHOD +EditAction 1444660426503 TestGrid.java 1146 3 19 3 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index aeb3756..ce30389 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -35,6 +35,7 @@ public void testTwoNeighborCellsShouldHaveOneNeigbor() { } + @Test public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { //arrange From b949ec01cf36b11f60fa8366a94d13dec3cb4f18 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 17:34:34 +0300 Subject: [PATCH 09/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index a95eb46..2e219e9 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -43,3 +43,4 @@ UnitTestSessionAction 1444659808094 TestCell (1) OK RefactoringAction 1444660379096 TestGrid.java ADD void testTwoNeighborCellsShouldHaveOneNeigbor()/2 METHOD RefactoringAction 1444660394614 TestGrid.java REMOVE testTwoNeighborCellsShouldHaveOneNeigbor()/2 METHOD EditAction 1444660426503 TestGrid.java 1146 3 19 3 +EditAction 1444660474136 Grid.java 675 2 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index a3de0dc..6b4715e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -17,7 +17,7 @@ public int getNumNeighbors(Cell cell) { } } } - + System.out.println(numNeighbors); if(cell.getState().equals("Alive")){ return numNeighbors-1; } From 4ccb0a9b28b3fa4ef7da0ce91faa12a68b22a305 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 17:35:34 +0300 Subject: [PATCH 10/51] besouro automatic message --- .besouro/201510121641484/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index 2e219e9..7b363df 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -44,3 +44,8 @@ RefactoringAction 1444660379096 TestGrid.java ADD void testTwoNeighborCellsShoul RefactoringAction 1444660394614 TestGrid.java REMOVE testTwoNeighborCellsShouldHaveOneNeigbor()/2 METHOD EditAction 1444660426503 TestGrid.java 1146 3 19 3 EditAction 1444660474136 Grid.java 675 2 7 0 +UnitTestCaseAction 1444660476755 TestCell.java OK +UnitTestSessionAction 1444660476755 TestCell (1) OK +UnitTestCaseAction 1444660516873 TestGrid.java OK +UnitTestSessionAction 1444660516874 TestGrid (1) OK +EditAction 1444660534114 Grid.java 642 2 6 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 6b4715e..a3de0dc 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -17,7 +17,7 @@ public int getNumNeighbors(Cell cell) { } } } - System.out.println(numNeighbors); + if(cell.getState().equals("Alive")){ return numNeighbors-1; } From 39dd0655826b9d4111c7116a19f77a61e310b024 Mon Sep 17 00:00:00 2001 From: Maxaxa Date: Mon, 12 Oct 2015 17:48:33 +0300 Subject: [PATCH 11/51] new Rules implemented --- .besouro/201510121641484/actions.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.besouro/201510121641484/actions.txt b/.besouro/201510121641484/actions.txt index 7b363df..6168e84 100644 --- a/.besouro/201510121641484/actions.txt +++ b/.besouro/201510121641484/actions.txt @@ -49,3 +49,4 @@ UnitTestSessionAction 1444660476755 TestCell (1) OK UnitTestCaseAction 1444660516873 TestGrid.java OK UnitTestSessionAction 1444660516874 TestGrid (1) OK EditAction 1444660534114 Grid.java 642 2 6 0 +FileOpenedAction 1444661271189 GameOfLife.java 74 0 0 0 From bcd0975ef5c8e434509e3cc0bb2e0315afedf56f Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 21:39:01 +0300 Subject: [PATCH 12/51] besouro automatic message --- .besouro/20151012211902907/actions.txt | 35 +++++++++++++++++++ .../20151012211902907/besouroEpisodes.txt | 0 .besouro/20151012211902907/disagreements.txt | 0 .../randomHeuristicEpisodes.txt | 0 .besouro/20151012211902907/userComments.txt | 0 .besouro/20151012211902907/zorroEpisodes.txt | 0 .../tol/sqatlab/gameoflife/GameOfLife.java | 1 + .../tol/sqatlab/gameoflife/test/TestGrid.java | 11 ++++++ 8 files changed, 47 insertions(+) create mode 100644 .besouro/20151012211902907/actions.txt create mode 100644 .besouro/20151012211902907/besouroEpisodes.txt create mode 100644 .besouro/20151012211902907/disagreements.txt create mode 100644 .besouro/20151012211902907/randomHeuristicEpisodes.txt create mode 100644 .besouro/20151012211902907/userComments.txt create mode 100644 .besouro/20151012211902907/zorroEpisodes.txt diff --git a/.besouro/20151012211902907/actions.txt b/.besouro/20151012211902907/actions.txt new file mode 100644 index 0000000..dbf335d --- /dev/null +++ b/.besouro/20151012211902907/actions.txt @@ -0,0 +1,35 @@ +FileOpenedAction 1444673943419 GameOfLife.java 76 0 0 0 +FileOpenedAction 1444673947507 TestGrid.java 1146 3 19 3 +FileOpenedAction 1444673949305 TestCell.java 1060 5 10 4 +RefactoringAction 1444673986379 GameOfLifeTest.java ADD void test() METHOD +RefactoringAction 1444673986391 GameOfLifeTest.java ADD import org.junit.Assert.* IMPORT +RefactoringAction 1444673986410 GameOfLifeTest.java ADD GameOfLifeTest.java CLASS +FileOpenedAction 1444673986664 GameOfLifeTest.java 215 1 1 0 +RefactoringAction 1444674001990 GameOfLifeTest.java REMOVE GameOfLifeTest.java CLASS +RefactoringAction 1444674234411 GameOfLifeTest.java RENAME test()=>void testG() METHOD +RefactoringAction 1444674238427 GameOfLifeTest.java RENAME testG()=>void test() METHOD +RefactoringAction 1444674243460 GameOfLifeTest.java RENAME test()=>void testFill() METHOD +RefactoringAction 1444674248003 GameOfLifeTest.java RENAME testFill()=>void testFillHashMap() METHOD +RefactoringAction 1444674268529 GameOfLifeTest.java RENAME testFillHashMap()=>void testFillHashSet() METHOD +RefactoringAction 1444674301038 GameOfLifeTest.java RENAME testFillHashSet()=>void testFillHashSetR() METHOD +RefactoringAction 1444674302545 GameOfLifeTest.java RENAME testFillHashSetR()=>void testFillHashSetRe() METHOD +RefactoringAction 1444674304055 GameOfLifeTest.java RENAME testFillHashSetRe()=>void testFillHashSet() METHOD +RefactoringAction 1444674306068 GameOfLifeTest.java RENAME testFillHashSet()=>void testFillHashS() METHOD +RefactoringAction 1444674308076 GameOfLifeTest.java RENAME testFillHashS()=>void testFillHash() METHOD +RefactoringAction 1444674312586 GameOfLifeTest.java RENAME testFillHash()=>void testFillHashRe() METHOD +RefactoringAction 1444674314098 GameOfLifeTest.java RENAME testFillHashRe()=>void testFillHashReturn() METHOD +RefactoringAction 1444674316105 GameOfLifeTest.java RENAME testFillHashReturn()=>void testFillHashReturnFalse() METHOD +RefactoringAction 1444674339130 GameOfLifeTest.java RENAME testFillHashReturnFalse()=>void testFillHashR() METHOD +RefactoringAction 1444674349515 GameOfLifeTest.java REMOVE GameOfLifeTest.java CLASS +RefactoringAction 1444674368704 TestGrid.java ADD void test FIELD +RefactoringAction 1444674371216 TestGrid.java RENAME test=>void testFillHash FIELD +RefactoringAction 1444674372739 TestGrid.java RENAME testFillHash=>void testFillHashSet FIELD +RefactoringAction 1444674400482 TestGrid.java RENAME testFillHashSet=>void testFillHashSetWith FIELD +RefactoringAction 1444674406533 TestGrid.java RENAME testFillHashSetWith=>void testFillHashSetWithIsEmpty FIELD +RefactoringAction 1444674413549 TestGrid.java RENAME testFillHashSetWithIsEmpty=>void testFillHashSetWithIsEmpty_ReturnFalse() METHOD +RefactoringAction 1444674636562 TestGrid.java RENAME testFillHashSetWithIsEmpty_ReturnFalse()=>void testFillGridWithIsEmpty_ReturnFalse() METHOD +RefactoringAction 1444675117181 TestGrid.java ADD import java.util.HashSe IMPORT +RefactoringAction 1444675121197 TestGrid.java RENAME import java.util.HashSe=>import java.util.HashSeT IMPORT +RefactoringAction 1444675124739 TestGrid.java RENAME import java.util.HashSeT=>import java.util.HashSet IMPORT +RefactoringAction 1444675138927 TestGrid.java REMOVE import java.util.HashSet IMPORT +EditAction 1444675140938 TestGrid.java 1337 4 23 4 diff --git a/.besouro/20151012211902907/besouroEpisodes.txt b/.besouro/20151012211902907/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151012211902907/disagreements.txt b/.besouro/20151012211902907/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151012211902907/randomHeuristicEpisodes.txt b/.besouro/20151012211902907/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151012211902907/userComments.txt b/.besouro/20151012211902907/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151012211902907/zorroEpisodes.txt b/.besouro/20151012211902907/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index dbd5f88..c8f537f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -2,4 +2,5 @@ public class GameOfLife { + } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index ce30389..3a9fa36 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -5,6 +5,7 @@ import org.unioulu.tol.sqatlab.gameoflife.Cell; import org.unioulu.tol.sqatlab.gameoflife.Grid; + public class TestGrid { @Test @@ -51,5 +52,15 @@ public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { } + @Test + public void testFillGridWithIsEmpty_ReturnFalse(){ + //arrange + Grid grid = new Grid(); + int gridSize = 2; + + grid.fillGrid(gridSize); + + assertEquals(false, grid.isEmpty); + } } From 2a2c52f7216cab888e398718626f73177fa61445 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 21:53:22 +0300 Subject: [PATCH 13/51] besouro automatic message --- .besouro/20151012211902907/actions.txt | 34 +++++++++++++++++++ .classpath | 14 ++++---- .../gameoflife/test/GameOfLifeTest.java | 14 ++++++++ .../tol/sqatlab/gameoflife/test/TestGrid.java | 5 ++- 4 files changed, 59 insertions(+), 8 deletions(-) create mode 100644 src/org/unioulu/tol/sqatlab/gameoflife/test/GameOfLifeTest.java diff --git a/.besouro/20151012211902907/actions.txt b/.besouro/20151012211902907/actions.txt index dbf335d..082b395 100644 --- a/.besouro/20151012211902907/actions.txt +++ b/.besouro/20151012211902907/actions.txt @@ -33,3 +33,37 @@ RefactoringAction 1444675121197 TestGrid.java RENAME import java.util.HashSe=>im RefactoringAction 1444675124739 TestGrid.java RENAME import java.util.HashSeT=>import java.util.HashSet IMPORT RefactoringAction 1444675138927 TestGrid.java REMOVE import java.util.HashSet IMPORT EditAction 1444675140938 TestGrid.java 1337 4 23 4 +CompilationAction 1444675141570 TestGrid.java +CompilationAction 1444675141570 TestGrid.java +FileOpenedAction 1444675185588 SudokuVerifier.java 5508 13 48 0 +RefactoringAction 1444675329063 TestGrid.java ADD import java IMPORT +RefactoringAction 1444675330580 TestGrid.java RENAME import java=>import java.u IMPORT +RefactoringAction 1444675337091 TestGrid.java RENAME import java.u=>import java.util IMPORT +RefactoringAction 1444675338600 TestGrid.java REMOVE import java.util IMPORT +RefactoringAction 1444675340609 TestGrid.java ADD import java.util.h IMPORT +RefactoringAction 1444675342117 TestGrid.java REMOVE import java.util.h IMPORT +RefactoringAction 1444675353151 TestGrid.java ADD import java.util.h IMPORT +RefactoringAction 1444675356670 TestGrid.java RENAME import java.util.h=>import java.util.HashSet IMPORT +CompilationAction 1444675381343 TestGrid.java +CompilationAction 1444675381343 TestGrid.java +RefactoringAction 1444675613145 TestGrid.java ADD import java.util.HashSet/2 IMPORT +RefactoringAction 1444675614655 TestGrid.java RENAME import java.util.HashSet/2=>import java.util.HashSet.is IMPORT +RefactoringAction 1444675616164 TestGrid.java RENAME import java.util.HashSet.is=>import java.util.HashSet.isEmp IMPORT +RefactoringAction 1444675617179 TestGrid.java RENAME import java.util.HashSet.isEmp=>import java.util.HashSet.isEmpty IMPORT +RefactoringAction 1444675687751 TestGrid.java REMOVE import java.util.HashSet.isEmpty IMPORT +RefactoringAction 1444675689770 TestGrid.java ADD import java.util.HashSet.isEmpty IMPORT +RefactoringAction 1444675698298 TestGrid.java REMOVE import java.util.HashSet.isEmpty IMPORT +RefactoringAction 1444675711826 TestGrid.java ADD import java.util.Set IMPORT +RefactoringAction 1444675720846 TestGrid.java RENAME import java.util.Set=>import java.util.HashSet.isEmpty IMPORT +RefactoringAction 1444675722356 TestGrid.java REMOVE import java.util.HashSet.isEmpty IMPORT +RefactoringAction 1444675783832 TestGrid.java ADD import java.util.Set IMPORT +RefactoringAction 1444675892501 TestGrid.java ADD import java.util.Arrays IMPORT +CompilationAction 1444675894513 TestGrid.java +CompilationAction 1444675894514 TestGrid.java +RefactoringAction 1444675901548 TestGrid.java REMOVE import java.util.Arrays IMPORT +CompilationAction 1444675902101 TestGrid.java +CompilationAction 1444675902101 TestGrid.java +CompilationAction 1444675902266 TestGrid.java +CompilationAction 1444675902267 TestGrid.java +RefactoringAction 1444675962525 GameOfLifeTest.java ADD GameOfLifeTest.java CLASS +EditAction 1444676002571 TestGrid.java 1385 4 23 4 diff --git a/.classpath b/.classpath index 3e0fb27..17ceeb1 100644 --- a/.classpath +++ b/.classpath @@ -1,7 +1,7 @@ - - - - - - - + + + + + + + diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/GameOfLifeTest.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/GameOfLifeTest.java new file mode 100644 index 0000000..6e4ed99 --- /dev/null +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/GameOfLifeTest.java @@ -0,0 +1,14 @@ +package org.unioulu.tol.sqatlab.gameoflife.test; + +import static org.junit.Assert.*; + +import org.junit.Test; + +public class GameOfLifeTest { + + @Test + public void testFillHashR() { + + } + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 3a9fa36..d6d8d9a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -5,6 +5,9 @@ import org.unioulu.tol.sqatlab.gameoflife.Cell; import org.unioulu.tol.sqatlab.gameoflife.Grid; +import java.util.HashSet; +import java.util.Set; + public class TestGrid { @@ -60,7 +63,7 @@ public void testFillGridWithIsEmpty_ReturnFalse(){ grid.fillGrid(gridSize); - assertEquals(false, grid.isEmpty); + assertEquals(false, grid.size()); } } From 72eec5501d2a3ebe2826683cfb37595b59e493c6 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 21:59:08 +0300 Subject: [PATCH 14/51] besouro automatic message --- .besouro/20151012211902907/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151012211902907/actions.txt b/.besouro/20151012211902907/actions.txt index 082b395..8668f4a 100644 --- a/.besouro/20151012211902907/actions.txt +++ b/.besouro/20151012211902907/actions.txt @@ -67,3 +67,4 @@ CompilationAction 1444675902266 TestGrid.java CompilationAction 1444675902267 TestGrid.java RefactoringAction 1444675962525 GameOfLifeTest.java ADD GameOfLifeTest.java CLASS EditAction 1444676002571 TestGrid.java 1385 4 23 4 +EditAction 1444676348246 TestGrid.java 1388 4 23 4 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index d6d8d9a..0e6ed71 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -63,7 +63,7 @@ public void testFillGridWithIsEmpty_ReturnFalse(){ grid.fillGrid(gridSize); - assertEquals(false, grid.size()); + assertEquals(false, grid.isEmpty()); } } From cdcb6944f0f336571b49c03daaf0c2e03bebd177 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 22:00:27 +0300 Subject: [PATCH 15/51] besouro automatic message --- .besouro/20151012211902907/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151012211902907/actions.txt b/.besouro/20151012211902907/actions.txt index 8668f4a..22c28ec 100644 --- a/.besouro/20151012211902907/actions.txt +++ b/.besouro/20151012211902907/actions.txt @@ -68,3 +68,4 @@ CompilationAction 1444675902267 TestGrid.java RefactoringAction 1444675962525 GameOfLifeTest.java ADD GameOfLifeTest.java CLASS EditAction 1444676002571 TestGrid.java 1385 4 23 4 EditAction 1444676348246 TestGrid.java 1388 4 23 4 +EditAction 1444676427581 TestGrid.java 1394 4 23 4 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 0e6ed71..b8ec744 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -63,7 +63,7 @@ public void testFillGridWithIsEmpty_ReturnFalse(){ grid.fillGrid(gridSize); - assertEquals(false, grid.isEmpty()); + assertEquals(false, grid.cells.isEmpty()); } } From 83a3497a71851f4b0a34119d249bcfc3b426daf2 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 22:01:27 +0300 Subject: [PATCH 16/51] besouro automatic message --- .besouro/20151012211902907/actions.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.besouro/20151012211902907/actions.txt b/.besouro/20151012211902907/actions.txt index 22c28ec..34f08b8 100644 --- a/.besouro/20151012211902907/actions.txt +++ b/.besouro/20151012211902907/actions.txt @@ -69,3 +69,4 @@ RefactoringAction 1444675962525 GameOfLifeTest.java ADD GameOfLifeTest.java CLAS EditAction 1444676002571 TestGrid.java 1385 4 23 4 EditAction 1444676348246 TestGrid.java 1388 4 23 4 EditAction 1444676427581 TestGrid.java 1394 4 23 4 +EditAction 1444676487639 Grid.java 642 2 6 0 From 2f36cc28ee15943890d5b9b4c8d65f80b12b2017 Mon Sep 17 00:00:00 2001 From: Maxaxa Date: Tue, 13 Oct 2015 00:54:59 +0300 Subject: [PATCH 17/51] Fill grid with cells, check for balance between dead and alive cells, added printmethode --- .classpath | 2 +- .../tol/sqatlab/gameoflife/GameOfLife.java | 20 ++ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 47 +++- .../gameoflife/test/GameOfLifeTest.java | 23 +- .../tol/sqatlab/gameoflife/test/TestGrid.java | 239 +++++++++++++----- 5 files changed, 258 insertions(+), 73 deletions(-) diff --git a/.classpath b/.classpath index 17ceeb1..2d74975 100644 --- a/.classpath +++ b/.classpath @@ -1,6 +1,6 @@ - + diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index c8f537f..81b3c40 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,6 +1,26 @@ package org.unioulu.tol.sqatlab.gameoflife; public class GameOfLife { + + public GameOfLife(){ + + } + + public String printLife(Grid grid) { + String life = ""; + for(int j = 0; j < Math.sqrt(grid.cells.size()); j++){ + for(int i = 0; i < Math.sqrt(grid.cells.size()); i++){ + Cell aliveCell = new Cell("Alive", i, j); + if (grid.cells.contains(aliveCell)) + life = life + "*"; + else life = life + "-"; + } + if (j cells = new HashSet<>(); + public Set cells; + + public Grid(){ + + cells = new HashSet<>(); + } + public int getNumNeighbors(Cell cell) { int numNeighbors = 0; - Set neighborhood = new HashSet (); + for (int dx=-1; dx<=1; dx ++) { for (int dy=-1; dy<=1; dy ++) { Cell neighbor = new Cell("Alive",cell.x + dx, cell.y + dy); @@ -27,4 +33,41 @@ public void addCell(Cell cell) { cells.add(cell); } + + public void fillGrid(int gridSize) { + int counter = 0; + Cell[] cellArray = new Cell[gridSize*gridSize]; + for(int i = 0; i < gridSize; i++){ + for(int j = 0; j < gridSize; j++){ + cellArray[counter] = new Cell("Alive", i, j); + addCell(cellArray[counter]); + counter++; + } + } + if(checkPercentageOfAliveCells()) fillGrid(gridSize); + } + + + public int getNumAliveCells() { + int numAliveCells = 0; + + for(int i = 0; i < cells.size(); i++){ + for(int j = 0; j < cells.size(); j++){ + Cell aliveCell = new Cell("Alive", i, j); + if (cells.contains(aliveCell)) + numAliveCells++; + } + } + return numAliveCells; + } + + + public boolean checkPercentageOfAliveCells() { + double percentageOfAliveCells = 0; + percentageOfAliveCells = getNumAliveCells()*100/cells.size(); + //System.out.println(getNumAliveCells() + " " + cells.size() + " = " + percentageOfAliveCells); + if(percentageOfAliveCells>60 || percentageOfAliveCells<40)return false; + else return true; + } + } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/GameOfLifeTest.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/GameOfLifeTest.java index 6e4ed99..9ce5f36 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/GameOfLifeTest.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/GameOfLifeTest.java @@ -3,12 +3,33 @@ import static org.junit.Assert.*; import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.Cell; +import org.unioulu.tol.sqatlab.gameoflife.GameOfLife; +import org.unioulu.tol.sqatlab.gameoflife.Grid; public class GameOfLifeTest { + + + @Test - public void testFillHashR() { + public void testPrintLife() { + GameOfLife game = new GameOfLife(); + Grid grid = new Grid(); + Cell cell1 = new Cell("Alive",0,0); + Cell cell2 = new Cell("Dead",1,0); + Cell cell3 = new Cell("Alive",0,1); + Cell cell4 = new Cell("Dead",1,1); + + grid.addCell(cell1); + grid.addCell(cell2); + grid.addCell(cell3); + grid.addCell(cell4); + String gridLife = "*-\n*-"; + System.out.println(gridLife); + System.out.println(game.printLife(grid)); + assertEquals(gridLife, game.printLife(grid)); } } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index b8ec744..0a90a1e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -1,69 +1,170 @@ -package org.unioulu.tol.sqatlab.gameoflife.test; - -import static org.junit.Assert.*; -import org.junit.Test; -import org.unioulu.tol.sqatlab.gameoflife.Cell; -import org.unioulu.tol.sqatlab.gameoflife.Grid; - -import java.util.HashSet; -import java.util.Set; - - -public class TestGrid { - - @Test - public void testSingleCellOnGridHasNoNeighbors() { - //arrange - Grid grid = new Grid(); - Cell cell = new Cell("Alive",0,0); - - grid.addCell(cell); - - int numNeighbors = grid.getNumNeighbors(cell); - - assertEquals(0, numNeighbors); - } - - @Test - public void testTwoNeighborCellsShouldHaveOneNeigbor() { - //arrange - Grid grid = new Grid(); - Cell cell1 = new Cell("Alive",0,0); - Cell cell2 = new Cell("Alive",0,1); - - grid.addCell(cell1); - grid.addCell(cell2); - - int numNeighbors = grid.getNumNeighbors(cell1); - assertEquals(1, numNeighbors); - - } - - - @Test - public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { - //arrange - Grid grid = new Grid(); - Cell cell1 = new Cell("Alive",0,0); - Cell cell2 = new Cell("Alive",1,0); - - grid.addCell(cell1); - grid.addCell(cell2); - - int numNeighbors = grid.getNumNeighbors(cell1); - assertEquals(1, numNeighbors); - - } - - @Test - public void testFillGridWithIsEmpty_ReturnFalse(){ - //arrange - Grid grid = new Grid(); - int gridSize = 2; - - grid.fillGrid(gridSize); - - assertEquals(false, grid.cells.isEmpty()); - } - -} +package org.unioulu.tol.sqatlab.gameoflife.test; + +import static org.junit.Assert.*; +import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.Cell; +import org.unioulu.tol.sqatlab.gameoflife.Grid; + + +public class TestGrid { + + @Test + public void testSingleCellOnGridHasNoNeighbors() { + //arrange + Grid grid = new Grid(); + Cell cell = new Cell("Alive",0,0); + + grid.addCell(cell); + + int numNeighbors = grid.getNumNeighbors(cell); + + assertEquals(0, numNeighbors); + } + + @Test + public void testTwoNeighborCellsShouldHaveOneNeigbor() { + //arrange + Grid grid = new Grid(); + Cell cell1 = new Cell("Alive",0,0); + Cell cell2 = new Cell("Alive",0,1); + + grid.addCell(cell1); + grid.addCell(cell2); + + int numNeighbors = grid.getNumNeighbors(cell1); + assertEquals(1, numNeighbors); + + } + + + @Test + public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { + //arrange + Grid grid = new Grid(); + Cell cell1 = new Cell("Alive",0,0); + Cell cell2 = new Cell("Alive",1,0); + + grid.addCell(cell1); + grid.addCell(cell2); + + int numNeighbors = grid.getNumNeighbors(cell1); + assertEquals(1, numNeighbors); + + } + + @Test + public void testFillGridWithIsEmpty_ReturnFalse(){ + //arrange + Grid grid = new Grid(); + int gridSize = 2; + + grid.fillGrid(gridSize); + + assertEquals(false, grid.cells.isEmpty()); + } + + @Test + public void testSizeOfTheWholeGrid_gridSize2_returns4(){ + Grid grid = new Grid(); + int gridSize = 2; + + grid.fillGrid(gridSize); + + assertEquals(4, grid.cells.size()); + } + + @Test + public void testCountAliveCellsinGrid(){ + Grid grid = new Grid(); + Cell cell1 = new Cell("Dead",0,0); + Cell cell2 = new Cell("Alive",1,0); + + grid.addCell(cell1); + grid.addCell(cell2); + + int aliveCells = grid.getNumAliveCells(); + assertEquals(1, aliveCells); + } + @Test + public void testCheckPercentageOfAliveCells_GridWithOnlyAliveCells_returnFalse(){ + Grid grid = new Grid(); + Cell cell1 = new Cell("Alive",0,0); + Cell cell2 = new Cell("Alive",1,0); + Cell cell3 = new Cell("Alive",0,1); + Cell cell4 = new Cell("Alive",1,1); + Cell cell5 = new Cell("Alive",2,0); + Cell cell6 = new Cell("Alive",0,2); + Cell cell7 = new Cell("Alive",1,2); + Cell cell8 = new Cell("Alive",2,1); + Cell cell9 = new Cell("Alive",2,2); + + grid.addCell(cell1); + grid.addCell(cell2); + grid.addCell(cell3); + grid.addCell(cell4); + grid.addCell(cell5); + grid.addCell(cell6); + grid.addCell(cell7); + grid.addCell(cell8); + grid.addCell(cell9); + + + assertEquals(false, grid.checkPercentageOfAliveCells()); + + } + @Test + public void testCheckPercentageOfAliveCells_GridWithOnlyDeadCells_returnFalse(){ + Grid grid = new Grid(); + Cell cell1 = new Cell("Dead",0,0); + Cell cell2 = new Cell("Dead",1,0); + Cell cell3 = new Cell("Dead",0,1); + Cell cell4 = new Cell("Dead",1,1); + Cell cell5 = new Cell("Dead",2,0); + Cell cell6 = new Cell("Dead",0,2); + Cell cell7 = new Cell("Dead",1,2); + Cell cell8 = new Cell("Dead",2,1); + Cell cell9 = new Cell("Dead",2,2); + + grid.addCell(cell1); + grid.addCell(cell2); + grid.addCell(cell3); + grid.addCell(cell4); + grid.addCell(cell5); + grid.addCell(cell6); + grid.addCell(cell7); + grid.addCell(cell8); + grid.addCell(cell9); + + + assertEquals(false, grid.checkPercentageOfAliveCells()); + + } + @Test + public void testCheckPercentageOfAliveCells_GridWith5Dead4AliveCells_returnTrue(){ + Grid grid = new Grid(); + Cell cell1 = new Cell("Dead",0,0); + Cell cell2 = new Cell("Dead",1,0); + Cell cell3 = new Cell("Dead",0,1); + Cell cell4 = new Cell("Dead",1,1); + Cell cell5 = new Cell("Dead",2,0); + Cell cell6 = new Cell("Alive",0,2); + Cell cell7 = new Cell("Alive",1,2); + Cell cell8 = new Cell("Alive",2,1); + Cell cell9 = new Cell("Alive",2,2); + + grid.addCell(cell1); + grid.addCell(cell2); + grid.addCell(cell3); + grid.addCell(cell4); + grid.addCell(cell5); + grid.addCell(cell6); + grid.addCell(cell7); + grid.addCell(cell8); + grid.addCell(cell9); + + + assertEquals(true, grid.checkPercentageOfAliveCells()); + + } + +} From dda3f713725965aede0250f3ace01efc634a24f9 Mon Sep 17 00:00:00 2001 From: Maxaxa Date: Tue, 13 Oct 2015 01:17:03 +0300 Subject: [PATCH 18/51] added the random function, but the balance gets sometimes out of hand --> stack overflow :) --- src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index a792b1a..0424f35 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -39,7 +39,7 @@ public void fillGrid(int gridSize) { Cell[] cellArray = new Cell[gridSize*gridSize]; for(int i = 0; i < gridSize; i++){ for(int j = 0; j < gridSize; j++){ - cellArray[counter] = new Cell("Alive", i, j); + cellArray[counter] = new Cell(randomState(), i, j); addCell(cellArray[counter]); counter++; } @@ -69,5 +69,15 @@ public boolean checkPercentageOfAliveCells() { if(percentageOfAliveCells>60 || percentageOfAliveCells<40)return false; else return true; } + public String randomState(){ + String randomState = ""; + double randomNumber = Math.floor((Math.random() * 100) + 1); + if(randomNumber<50){ + randomState = "Alive"; + }else{ + randomState ="Dead"; + } + return randomState; + } } From b29d347e7884967a0ae8f3025a8f5aa3eda118d5 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 01:21:42 +0300 Subject: [PATCH 19/51] besouro automatic message --- .besouro/20151013011235415/actions.txt | 28 +++++++++++++++++++ .../20151013011235415/besouroEpisodes.txt | 10 +++++++ .besouro/20151013011235415/disagreements.txt | 0 .../randomHeuristicEpisodes.txt | 10 +++++++ .besouro/20151013011235415/userComments.txt | 0 .besouro/20151013011235415/zorroEpisodes.txt | 10 +++++++ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 7 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .besouro/20151013011235415/actions.txt create mode 100644 .besouro/20151013011235415/besouroEpisodes.txt create mode 100644 .besouro/20151013011235415/disagreements.txt create mode 100644 .besouro/20151013011235415/randomHeuristicEpisodes.txt create mode 100644 .besouro/20151013011235415/userComments.txt create mode 100644 .besouro/20151013011235415/zorroEpisodes.txt diff --git a/.besouro/20151013011235415/actions.txt b/.besouro/20151013011235415/actions.txt new file mode 100644 index 0000000..69e758a --- /dev/null +++ b/.besouro/20151013011235415/actions.txt @@ -0,0 +1,28 @@ +FileOpenedAction 1444687955903 GameOfLife.java 539 2 3 0 +UnitTestCaseAction 1444687959975 TestGrid.java OK +UnitTestSessionAction 1444687959977 TestGrid (1) OK +UnitTestCaseAction 1444687964909 TestGrid.java OK +UnitTestSessionAction 1444687964909 TestGrid (1) OK +UnitTestCaseAction 1444687971664 TestGrid.java FAIL +UnitTestSessionAction 1444687971665 TestGrid (1) FAIL +UnitTestCaseAction 1444687978271 TestGrid.java OK +UnitTestSessionAction 1444687978272 TestGrid (1) OK +UnitTestCaseAction 1444687979687 TestGrid.java OK +UnitTestSessionAction 1444687979688 TestGrid (1) OK +UnitTestCaseAction 1444687981433 TestGrid.java FAIL +UnitTestSessionAction 1444687981433 TestGrid (1) FAIL +UnitTestCaseAction 1444688003776 GameOfLifeTest.java OK +UnitTestSessionAction 1444688003777 GameOfLifeTest OK +UnitTestCaseAction 1444688007854 TestCell.java OK +UnitTestSessionAction 1444688007854 TestCell (1) OK +UnitTestCaseAction 1444688010936 TestCell.java OK +UnitTestSessionAction 1444688010937 TestCell (1) OK +UnitTestCaseAction 1444688012185 TestCell.java OK +UnitTestSessionAction 1444688012186 TestCell (1) OK +UnitTestCaseAction 1444688015477 GameOfLifeTest.java OK +UnitTestSessionAction 1444688015478 GameOfLifeTest OK +UnitTestCaseAction 1444688016783 GameOfLifeTest.java OK +UnitTestSessionAction 1444688016784 GameOfLifeTest OK +UnitTestCaseAction 1444688048230 TestGrid.java FAIL +UnitTestSessionAction 1444688048231 TestGrid (1) FAIL +EditAction 1444688501950 Grid.java 1843 7 20 0 diff --git a/.besouro/20151013011235415/besouroEpisodes.txt b/.besouro/20151013011235415/besouroEpisodes.txt new file mode 100644 index 0000000..9a17b07 --- /dev/null +++ b/.besouro/20151013011235415/besouroEpisodes.txt @@ -0,0 +1,10 @@ +1444687959977 regression 1 4 true +1444687964909 regression 1 0 true +1444687978272 regression 2 6 true +1444687979688 regression 1 0 true +1444688003777 regression 2 22 true +1444688007854 regression 1 0 true +1444688010937 regression 1 0 true +1444688012186 regression 1 0 true +1444688015478 regression 1 0 true +1444688016784 regression 1 0 true diff --git a/.besouro/20151013011235415/disagreements.txt b/.besouro/20151013011235415/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151013011235415/randomHeuristicEpisodes.txt b/.besouro/20151013011235415/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..81c1da1 --- /dev/null +++ b/.besouro/20151013011235415/randomHeuristicEpisodes.txt @@ -0,0 +1,10 @@ +1444687959977 regression 1 4 true +1444687964909 regression 1 0 false +1444687978272 regression 2 6 true +1444687979688 regression 1 0 false +1444688003777 regression 2 22 false +1444688007854 regression 1 0 false +1444688010937 regression 1 0 true +1444688012186 regression 1 0 true +1444688015478 regression 1 0 true +1444688016784 regression 1 0 true diff --git a/.besouro/20151013011235415/userComments.txt b/.besouro/20151013011235415/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151013011235415/zorroEpisodes.txt b/.besouro/20151013011235415/zorroEpisodes.txt new file mode 100644 index 0000000..fa8b372 --- /dev/null +++ b/.besouro/20151013011235415/zorroEpisodes.txt @@ -0,0 +1,10 @@ +1444687959977 regression 1 4 false +1444687964909 regression 1 4 false +1444687978272 regression 2 13 false +1444687979688 regression 1 1 false +1444688003777 regression 2 24 false +1444688007854 regression 1 4 false +1444688010937 regression 1 3 false +1444688012186 regression 1 1 false +1444688015478 regression 1 3 false +1444688016784 regression 1 1 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 0424f35..ba3062c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -66,7 +66,7 @@ public boolean checkPercentageOfAliveCells() { double percentageOfAliveCells = 0; percentageOfAliveCells = getNumAliveCells()*100/cells.size(); //System.out.println(getNumAliveCells() + " " + cells.size() + " = " + percentageOfAliveCells); - if(percentageOfAliveCells>60 || percentageOfAliveCells<40)return false; + if(percentageOfAliveCells>70 || percentageOfAliveCells<30)return false; else return true; } public String randomState(){ From ac14f27d980bfdc56a5d6f733b8e434b8710cc92 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:25:57 +0300 Subject: [PATCH 20/51] besouro automatic message --- .besouro/20151013011235415/actions.txt | 8 ++++++++ .besouro/20151013011235415/besouroEpisodes.txt | 1 + .besouro/20151013011235415/randomHeuristicEpisodes.txt | 1 + .besouro/20151013011235415/zorroEpisodes.txt | 1 + .besouro/2015101310222917/actions.txt | 4 ++++ .besouro/2015101310222917/besouroEpisodes.txt | 0 .besouro/2015101310222917/disagreements.txt | 0 .besouro/2015101310222917/randomHeuristicEpisodes.txt | 0 .besouro/2015101310222917/userComments.txt | 0 .besouro/2015101310222917/zorroEpisodes.txt | 0 src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 5 ++++- 11 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .besouro/2015101310222917/actions.txt create mode 100644 .besouro/2015101310222917/besouroEpisodes.txt create mode 100644 .besouro/2015101310222917/disagreements.txt create mode 100644 .besouro/2015101310222917/randomHeuristicEpisodes.txt create mode 100644 .besouro/2015101310222917/userComments.txt create mode 100644 .besouro/2015101310222917/zorroEpisodes.txt diff --git a/.besouro/20151013011235415/actions.txt b/.besouro/20151013011235415/actions.txt index 69e758a..fa79615 100644 --- a/.besouro/20151013011235415/actions.txt +++ b/.besouro/20151013011235415/actions.txt @@ -26,3 +26,11 @@ UnitTestSessionAction 1444688016784 GameOfLifeTest OK UnitTestCaseAction 1444688048230 TestGrid.java FAIL UnitTestSessionAction 1444688048231 TestGrid (1) FAIL EditAction 1444688501950 Grid.java 1843 7 20 0 +UnitTestCaseAction 1444688504947 TestGrid.java FAIL +UnitTestSessionAction 1444688504947 TestGrid (1) FAIL +UnitTestCaseAction 1444688510065 TestGrid.java OK +UnitTestSessionAction 1444688510066 TestGrid (1) OK +UnitTestCaseAction 1444688512601 TestGrid.java FAIL +UnitTestSessionAction 1444688512602 TestGrid (1) FAIL +UnitTestCaseAction 1444688514356 TestGrid.java FAIL +UnitTestSessionAction 1444688514357 TestGrid (1) FAIL diff --git a/.besouro/20151013011235415/besouroEpisodes.txt b/.besouro/20151013011235415/besouroEpisodes.txt index 9a17b07..3fdd247 100644 --- a/.besouro/20151013011235415/besouroEpisodes.txt +++ b/.besouro/20151013011235415/besouroEpisodes.txt @@ -8,3 +8,4 @@ 1444688012186 regression 1 0 true 1444688015478 regression 1 0 true 1444688016784 regression 1 0 true +1444688510066 regression 2 461 true diff --git a/.besouro/20151013011235415/randomHeuristicEpisodes.txt b/.besouro/20151013011235415/randomHeuristicEpisodes.txt index 81c1da1..08b2dce 100644 --- a/.besouro/20151013011235415/randomHeuristicEpisodes.txt +++ b/.besouro/20151013011235415/randomHeuristicEpisodes.txt @@ -8,3 +8,4 @@ 1444688012186 regression 1 0 true 1444688015478 regression 1 0 true 1444688016784 regression 1 0 true +1444688510066 regression 2 461 false diff --git a/.besouro/20151013011235415/zorroEpisodes.txt b/.besouro/20151013011235415/zorroEpisodes.txt index fa8b372..ec75670 100644 --- a/.besouro/20151013011235415/zorroEpisodes.txt +++ b/.besouro/20151013011235415/zorroEpisodes.txt @@ -8,3 +8,4 @@ 1444688012186 regression 1 1 false 1444688015478 regression 1 3 false 1444688016784 regression 1 1 false +1444688510066 regression 2 493 false diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt new file mode 100644 index 0000000..7453d4f --- /dev/null +++ b/.besouro/2015101310222917/actions.txt @@ -0,0 +1,4 @@ +FileOpenedAction 1444720949477 TestCell.java 1060 5 10 4 +FileOpenedAction 1444720957268 GameOfLife.java 539 2 3 0 +FileOpenedAction 1444720977614 Grid.java 1843 7 20 0 +EditAction 1444721157634 Grid.java 1951 7 23 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101310222917/disagreements.txt b/.besouro/2015101310222917/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101310222917/userComments.txt b/.besouro/2015101310222917/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index ba3062c..10e7884 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -44,7 +44,10 @@ public void fillGrid(int gridSize) { counter++; } } - if(checkPercentageOfAliveCells()) fillGrid(gridSize); + int tries =1; + if(checkPercentageOfAliveCells()&&tries<10) fillGrid(gridSize); + if(tries>=10)System.out.println("Initial grid might be unbalanced"); + tries++; } From 85745a17660bfea227b755ab9bcdadfe62d14b66 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:26:54 +0300 Subject: [PATCH 21/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 14 ++++++++++++++ .besouro/2015101310222917/besouroEpisodes.txt | 5 +++++ .../2015101310222917/randomHeuristicEpisodes.txt | 5 +++++ .besouro/2015101310222917/zorroEpisodes.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 3 +-- 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 7453d4f..7db1904 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -2,3 +2,17 @@ FileOpenedAction 1444720949477 TestCell.java 1060 5 10 4 FileOpenedAction 1444720957268 GameOfLife.java 539 2 3 0 FileOpenedAction 1444720977614 Grid.java 1843 7 20 0 EditAction 1444721157634 Grid.java 1951 7 23 0 +UnitTestCaseAction 1444721164627 TestGrid.java OK +UnitTestSessionAction 1444721164635 TestGrid (1) OK +UnitTestCaseAction 1444721169299 TestGrid.java OK +UnitTestSessionAction 1444721169300 TestGrid (1) OK +UnitTestCaseAction 1444721170700 TestGrid.java OK +UnitTestSessionAction 1444721170701 TestGrid (1) OK +UnitTestCaseAction 1444721171809 TestGrid.java OK +UnitTestSessionAction 1444721171810 TestGrid (1) OK +UnitTestCaseAction 1444721179116 TestGrid.java OK +UnitTestSessionAction 1444721179117 TestGrid (1) OK +UnitTestCaseAction 1444721180632 TestGrid.java FAIL +UnitTestSessionAction 1444721180632 TestGrid (1) FAIL +RefactoringAction 1444721210301 Grid.java ADD int tries FIELD +EditAction 1444721214559 Grid.java 1949 7 22 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index e69de29..5e3f9de 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -0,0 +1,5 @@ +1444721164635 production 1 215 false +1444721169300 regression 1 0 true +1444721170701 regression 1 0 true +1444721171810 regression 1 0 true +1444721179117 regression 1 0 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index e69de29..1e587e7 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -0,0 +1,5 @@ +1444721164635 production 1 215 true +1444721169300 regression 1 0 true +1444721170701 regression 1 0 true +1444721171810 regression 1 0 false +1444721179117 regression 1 0 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index e69de29..59ec36f 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -0,0 +1,5 @@ +1444721164635 production 1 215 false +1444721169300 regression 1 4 false +1444721170701 regression 1 1 false +1444721171810 regression 1 1 false +1444721179117 regression 1 7 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 10e7884..614c656 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -10,7 +10,7 @@ public Grid(){ cells = new HashSet<>(); } - + int tries =1; public int getNumNeighbors(Cell cell) { int numNeighbors = 0; @@ -44,7 +44,6 @@ public void fillGrid(int gridSize) { counter++; } } - int tries =1; if(checkPercentageOfAliveCells()&&tries<10) fillGrid(gridSize); if(tries>=10)System.out.println("Initial grid might be unbalanced"); tries++; From 0552193ee3cef24ef6659b8e71a148163746adfb Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:27:35 +0300 Subject: [PATCH 22/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 9 +++++++++ .besouro/2015101310222917/besouroEpisodes.txt | 2 ++ .besouro/2015101310222917/randomHeuristicEpisodes.txt | 2 ++ .besouro/2015101310222917/zorroEpisodes.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 7db1904..ceef9c3 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -16,3 +16,12 @@ UnitTestCaseAction 1444721180632 TestGrid.java FAIL UnitTestSessionAction 1444721180632 TestGrid (1) FAIL RefactoringAction 1444721210301 Grid.java ADD int tries FIELD EditAction 1444721214559 Grid.java 1949 7 22 0 +UnitTestCaseAction 1444721217076 TestGrid.java FAIL +UnitTestSessionAction 1444721217077 TestGrid (1) FAIL +UnitTestCaseAction 1444721221372 TestGrid.java OK +UnitTestSessionAction 1444721221373 TestGrid (1) OK +UnitTestCaseAction 1444721224009 TestGrid.java OK +UnitTestSessionAction 1444721224010 TestGrid (1) OK +UnitTestCaseAction 1444721225463 TestGrid.java FAIL +UnitTestSessionAction 1444721225464 TestGrid (1) FAIL +EditAction 1444721255273 Grid.java 1951 7 22 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 5e3f9de..06a382e 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -3,3 +3,5 @@ 1444721170701 regression 1 0 true 1444721171810 regression 1 0 true 1444721179117 regression 1 0 true +1444721221373 refactoring 2A 40 true +1444721224010 regression 1 0 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 1e587e7..794c127 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -3,3 +3,5 @@ 1444721170701 regression 1 0 true 1444721171810 regression 1 0 false 1444721179117 regression 1 0 true +1444721221373 refactoring 2A 40 false +1444721224010 regression 1 0 false diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 59ec36f..7f8aa30 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -3,3 +3,5 @@ 1444721170701 regression 1 1 false 1444721171810 regression 1 1 false 1444721179117 regression 1 7 false +1444721221373 refactoring 2A 42 false +1444721224010 regression 1 2 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 614c656..3151987 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -44,7 +44,7 @@ public void fillGrid(int gridSize) { counter++; } } - if(checkPercentageOfAliveCells()&&tries<10) fillGrid(gridSize); + if(checkPercentageOfAliveCells() && tries<10) fillGrid(gridSize); if(tries>=10)System.out.println("Initial grid might be unbalanced"); tries++; } From 33e11db309d159e4bf3424bd0663e0633129f3f2 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:28:11 +0300 Subject: [PATCH 23/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index ceef9c3..e6054a0 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -25,3 +25,6 @@ UnitTestSessionAction 1444721224010 TestGrid (1) OK UnitTestCaseAction 1444721225463 TestGrid.java FAIL UnitTestSessionAction 1444721225464 TestGrid (1) FAIL EditAction 1444721255273 Grid.java 1951 7 22 0 +UnitTestCaseAction 1444721262594 TestGrid.java FAIL +UnitTestSessionAction 1444721262595 TestGrid (1) FAIL +EditAction 1444721290982 Grid.java 1980 7 23 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 3151987..4c3654a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -45,6 +45,7 @@ public void fillGrid(int gridSize) { } } if(checkPercentageOfAliveCells() && tries<10) fillGrid(gridSize); + System.out.println(tries); if(tries>=10)System.out.println("Initial grid might be unbalanced"); tries++; } From 4452e7469b7424fe6bdce271166985d2d9ba175c Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:29:17 +0300 Subject: [PATCH 24/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index e6054a0..f01364b 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -28,3 +28,6 @@ EditAction 1444721255273 Grid.java 1951 7 22 0 UnitTestCaseAction 1444721262594 TestGrid.java FAIL UnitTestSessionAction 1444721262595 TestGrid (1) FAIL EditAction 1444721290982 Grid.java 1980 7 23 0 +UnitTestCaseAction 1444721293596 TestGrid.java FAIL +UnitTestSessionAction 1444721293596 TestGrid (1) FAIL +EditAction 1444721357142 Grid.java 1989 7 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 4c3654a..0a8d49e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -44,10 +44,12 @@ public void fillGrid(int gridSize) { counter++; } } - if(checkPercentageOfAliveCells() && tries<10) fillGrid(gridSize); - System.out.println(tries); if(tries>=10)System.out.println("Initial grid might be unbalanced"); - tries++; + if(checkPercentageOfAliveCells() && tries<10){ + tries++; + fillGrid(gridSize); + } + System.out.println(tries); } From 8c4fca13a8f4f4cacc16009a40e19f0347f31aef Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:31:28 +0300 Subject: [PATCH 25/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 20 +++++++++++++++++++ .besouro/2015101310222917/besouroEpisodes.txt | 5 +++++ .../randomHeuristicEpisodes.txt | 4 ++++ .besouro/2015101310222917/zorroEpisodes.txt | 4 ++++ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 10 +++++----- 5 files changed, 38 insertions(+), 5 deletions(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index f01364b..5f22c0b 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -31,3 +31,23 @@ EditAction 1444721290982 Grid.java 1980 7 23 0 UnitTestCaseAction 1444721293596 TestGrid.java FAIL UnitTestSessionAction 1444721293596 TestGrid (1) FAIL EditAction 1444721357142 Grid.java 1989 7 22 0 +UnitTestCaseAction 1444721361609 TestGrid.java OK +UnitTestSessionAction 1444721361609 TestGrid (1) OK +UnitTestCaseAction 1444721369690 TestGrid.java OK +UnitTestSessionAction 1444721369690 TestGrid (1) OK +UnitTestCaseAction 1444721376568 TestGrid.java OK +UnitTestSessionAction 1444721376569 TestGrid (1) OK +UnitTestCaseAction 1444721378966 TestGrid.java FAIL +UnitTestSessionAction 1444721378966 TestGrid (1) FAIL +UnitTestCaseAction 1444721409093 TestGrid.java FAIL +UnitTestSessionAction 1444721409094 TestGrid (1) FAIL +UnitTestCaseAction 1444721411131 TestGrid.java OK +UnitTestSessionAction 1444721411132 TestGrid (1) OK +UnitTestCaseAction 1444721412843 TestGrid.java FAIL +UnitTestSessionAction 1444721412843 TestGrid (1) FAIL +RefactoringAction 1444721456140 Grid.java RENAME tries=>int triesto FIELD +RefactoringAction 1444721459162 Grid.java RENAME triesto=>int triesToGet FIELD +RefactoringAction 1444721462187 Grid.java RENAME triesToGet=>int triesToGetBalanced FIELD +RefactoringAction 1444721465206 Grid.java RENAME triesToGetBalanced=>int triesToGetBalancedGrid FIELD +RefactoringAction 1444721470228 Grid.java RENAME triesToGetBalancedGrid=>int triesToGetBalancedInitialGrid FIELD +EditAction 1444721488582 Grid.java 2109 7 22 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 06a382e..393ee67 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -5,3 +5,8 @@ 1444721179117 regression 1 0 true 1444721221373 refactoring 2A 40 true 1444721224010 regression 1 0 true +1444721361609 refactoring 2A 136 true +1444721361610 production 1 136 false +1444721369690 regression 1 0 true +1444721376569 regression 1 0 true +1444721411132 regression 2 32 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 794c127..97d9c96 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -5,3 +5,7 @@ 1444721179117 regression 1 0 true 1444721221373 refactoring 2A 40 false 1444721224010 regression 1 0 false +1444721361609 refactoring 2A 136 false +1444721369690 regression 1 0 true +1444721376569 regression 1 0 true +1444721411132 regression 2 32 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 7f8aa30..7781a71 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -5,3 +5,7 @@ 1444721179117 regression 1 7 false 1444721221373 refactoring 2A 42 false 1444721224010 regression 1 2 false +1444721361609 refactoring 2A 137 false +1444721369690 regression 1 8 false +1444721376569 regression 1 6 false +1444721411132 regression 2 34 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 0a8d49e..39d86a1 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -10,7 +10,7 @@ public Grid(){ cells = new HashSet<>(); } - int tries =1; + int triesToGetBalancedInitialGrid =1; public int getNumNeighbors(Cell cell) { int numNeighbors = 0; @@ -44,12 +44,12 @@ public void fillGrid(int gridSize) { counter++; } } - if(tries>=10)System.out.println("Initial grid might be unbalanced"); - if(checkPercentageOfAliveCells() && tries<10){ - tries++; + if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); + if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ + triesToGetBalancedInitialGrid++; fillGrid(gridSize); } - System.out.println(tries); + System.out.println(triesToGetBalancedInitialGrid); } From 89114c997480ab0edd7fdde32580ce123cd986b3 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:31:40 +0300 Subject: [PATCH 26/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 3 +++ .besouro/2015101310222917/besouroEpisodes.txt | 1 + .besouro/2015101310222917/randomHeuristicEpisodes.txt | 1 + .besouro/2015101310222917/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 5f22c0b..d849fe0 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -51,3 +51,6 @@ RefactoringAction 1444721462187 Grid.java RENAME triesToGet=>int triesToGetBalan RefactoringAction 1444721465206 Grid.java RENAME triesToGetBalanced=>int triesToGetBalancedGrid FIELD RefactoringAction 1444721470228 Grid.java RENAME triesToGetBalancedGrid=>int triesToGetBalancedInitialGrid FIELD EditAction 1444721488582 Grid.java 2109 7 22 0 +UnitTestCaseAction 1444721491923 TestGrid.java OK +UnitTestSessionAction 1444721491923 TestGrid (1) OK +EditAction 1444721500745 Grid.java 2059 7 21 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 393ee67..4cf380d 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -10,3 +10,4 @@ 1444721369690 regression 1 0 true 1444721376569 regression 1 0 true 1444721411132 regression 2 32 true +1444721491923 refactoring 2A 79 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 97d9c96..a0dc53f 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -9,3 +9,4 @@ 1444721369690 regression 1 0 true 1444721376569 regression 1 0 true 1444721411132 regression 2 32 true +1444721491923 refactoring 2A 79 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 7781a71..0e263db 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -9,3 +9,4 @@ 1444721369690 regression 1 8 false 1444721376569 regression 1 6 false 1444721411132 regression 2 34 false +1444721491923 refactoring 2A 80 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 39d86a1..f9ba429 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -49,7 +49,7 @@ public void fillGrid(int gridSize) { triesToGetBalancedInitialGrid++; fillGrid(gridSize); } - System.out.println(triesToGetBalancedInitialGrid); + } From 9d2831e00fa59ec885fbb9adb6137d49f29071f0 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:32:53 +0300 Subject: [PATCH 27/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 7 +++++++ .besouro/2015101310222917/besouroEpisodes.txt | 2 ++ .besouro/2015101310222917/randomHeuristicEpisodes.txt | 2 ++ .besouro/2015101310222917/zorroEpisodes.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 5 files changed, 14 insertions(+) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index d849fe0..e039742 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -54,3 +54,10 @@ EditAction 1444721488582 Grid.java 2109 7 22 0 UnitTestCaseAction 1444721491923 TestGrid.java OK UnitTestSessionAction 1444721491923 TestGrid (1) OK EditAction 1444721500745 Grid.java 2059 7 21 0 +UnitTestCaseAction 1444721503168 TestGrid.java OK +UnitTestSessionAction 1444721503168 TestGrid (1) OK +UnitTestCaseAction 1444721504511 TestGrid.java OK +UnitTestSessionAction 1444721504512 TestGrid (1) OK +UnitTestCaseAction 1444721505631 TestGrid.java FAIL +UnitTestSessionAction 1444721505631 TestGrid (1) FAIL +EditAction 1444721573792 Grid.java 2091 7 22 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 4cf380d..ecc6263 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -11,3 +11,5 @@ 1444721376569 regression 1 0 true 1444721411132 regression 2 32 true 1444721491923 refactoring 2A 79 true +1444721503168 refactoring 2A 2 true +1444721504512 regression 1 0 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index a0dc53f..98f23c0 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -10,3 +10,5 @@ 1444721376569 regression 1 0 true 1444721411132 regression 2 32 true 1444721491923 refactoring 2A 79 true +1444721503168 refactoring 2A 2 true +1444721504512 regression 1 0 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 0e263db..489c74b 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -10,3 +10,5 @@ 1444721376569 regression 1 6 false 1444721411132 regression 2 34 false 1444721491923 refactoring 2A 80 false +1444721503168 refactoring 2A 11 false +1444721504512 regression 1 1 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index f9ba429..b4d3460 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -44,6 +44,7 @@ public void fillGrid(int gridSize) { counter++; } } + System.out.println(gridSize); if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; From 453640fef9ebe47ad9b9f7f3d5f9e7b6a0c67024 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:33:38 +0300 Subject: [PATCH 28/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 6 ++++++ .besouro/2015101310222917/besouroEpisodes.txt | 1 + .besouro/2015101310222917/randomHeuristicEpisodes.txt | 1 + .besouro/2015101310222917/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index e039742..56bcf2a 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -61,3 +61,9 @@ UnitTestSessionAction 1444721504512 TestGrid (1) OK UnitTestCaseAction 1444721505631 TestGrid.java FAIL UnitTestSessionAction 1444721505631 TestGrid (1) FAIL EditAction 1444721573792 Grid.java 2091 7 22 0 +UnitTestCaseAction 1444721577207 TestGrid.java OK +UnitTestSessionAction 1444721577207 TestGrid (1) OK +UnitTestCaseAction 1444721581617 TestGrid.java FAIL +UnitTestSessionAction 1444721581618 TestGrid (1) FAIL +FileOpenedAction 1444721607471 TestGrid.java 4189 9 94 9 +EditAction 1444721618068 TestGrid.java 4189 9 94 9 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index ecc6263..b0bd112 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -13,3 +13,4 @@ 1444721491923 refactoring 2A 79 true 1444721503168 refactoring 2A 2 true 1444721504512 regression 1 0 true +1444721577207 production 1 71 false diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 98f23c0..5bf4b10 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -12,3 +12,4 @@ 1444721491923 refactoring 2A 79 true 1444721503168 refactoring 2A 2 true 1444721504512 regression 1 0 true +1444721577207 production 1 71 false diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 489c74b..36fbfb6 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -12,3 +12,4 @@ 1444721491923 refactoring 2A 80 false 1444721503168 refactoring 2A 11 false 1444721504512 regression 1 1 false +1444721577207 production 1 72 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 0a90a1e..598b5d8 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -66,7 +66,7 @@ public void testFillGridWithIsEmpty_ReturnFalse(){ @Test public void testSizeOfTheWholeGrid_gridSize2_returns4(){ Grid grid = new Grid(); - int gridSize = 2; + int gridSize = 3; grid.fillGrid(gridSize); From b24ad73f62def4bcac9bb53747a11ac9d6d1c284 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:34:36 +0300 Subject: [PATCH 29/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 7 +++++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 56bcf2a..ad3c576 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -67,3 +67,10 @@ UnitTestCaseAction 1444721581617 TestGrid.java FAIL UnitTestSessionAction 1444721581618 TestGrid (1) FAIL FileOpenedAction 1444721607471 TestGrid.java 4189 9 94 9 EditAction 1444721618068 TestGrid.java 4189 9 94 9 +UnitTestCaseAction 1444721620921 TestGrid.java FAIL +UnitTestSessionAction 1444721620922 TestGrid (1) FAIL +UnitTestCaseAction 1444721624757 TestGrid.java FAIL +UnitTestSessionAction 1444721624758 TestGrid (1) FAIL +UnitTestCaseAction 1444721626452 TestGrid.java FAIL +UnitTestSessionAction 1444721626452 TestGrid (1) FAIL +EditAction 1444721675984 TestGrid.java 4218 9 95 9 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 598b5d8..0e3c457 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -66,10 +66,10 @@ public void testFillGridWithIsEmpty_ReturnFalse(){ @Test public void testSizeOfTheWholeGrid_gridSize2_returns4(){ Grid grid = new Grid(); - int gridSize = 3; + int gridSize = 2; grid.fillGrid(gridSize); - + System.out.println(gridSize); assertEquals(4, grid.cells.size()); } From cab5cd7bb73eaace6a04c73167da5d2f0d9db557 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:34:39 +0300 Subject: [PATCH 30/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index ad3c576..bc23377 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -74,3 +74,4 @@ UnitTestSessionAction 1444721624758 TestGrid (1) FAIL UnitTestCaseAction 1444721626452 TestGrid.java FAIL UnitTestSessionAction 1444721626452 TestGrid (1) FAIL EditAction 1444721675984 TestGrid.java 4218 9 95 9 +EditAction 1444721678944 Grid.java 2062 7 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index b4d3460..1dad340 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -44,7 +44,7 @@ public void fillGrid(int gridSize) { counter++; } } - System.out.println(gridSize); + if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; From 012deb09dd43fb41db553928e4b2fa3e048ba006 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:36:40 +0300 Subject: [PATCH 31/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 15 +++++++++++++++ .besouro/2015101310222917/besouroEpisodes.txt | 4 ++++ .../2015101310222917/randomHeuristicEpisodes.txt | 4 ++++ .besouro/2015101310222917/zorroEpisodes.txt | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 5 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index bc23377..3a07b95 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -75,3 +75,18 @@ UnitTestCaseAction 1444721626452 TestGrid.java FAIL UnitTestSessionAction 1444721626452 TestGrid (1) FAIL EditAction 1444721675984 TestGrid.java 4218 9 95 9 EditAction 1444721678944 Grid.java 2062 7 21 0 +UnitTestCaseAction 1444721679995 TestGrid.java OK +UnitTestSessionAction 1444721679995 TestGrid (1) OK +UnitTestCaseAction 1444721693602 TestGrid.java OK +UnitTestSessionAction 1444721693602 TestGrid (1) OK +UnitTestCaseAction 1444721695368 TestGrid.java OK +UnitTestSessionAction 1444721695368 TestGrid (1) OK +UnitTestCaseAction 1444721696980 TestGrid.java FAIL +UnitTestSessionAction 1444721696981 TestGrid (1) FAIL +UnitTestCaseAction 1444721738478 TestGrid.java OK +UnitTestSessionAction 1444721738478 TestGrid (1) OK +UnitTestCaseAction 1444721739852 TestGrid.java FAIL +UnitTestSessionAction 1444721739852 TestGrid (1) FAIL +UnitTestCaseAction 1444721747960 TestGrid.java FAIL +UnitTestSessionAction 1444721747961 TestGrid (1) FAIL +EditAction 1444721800842 Grid.java 2067 7 20 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index b0bd112..b8c9fa7 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -14,3 +14,7 @@ 1444721503168 refactoring 2A 2 true 1444721504512 regression 1 0 true 1444721577207 production 1 71 false +1444721679995 refactoring 3 98 true +1444721693602 regression 1 0 true +1444721695368 regression 1 0 true +1444721738478 regression 2 41 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 5bf4b10..df70c6f 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -13,3 +13,7 @@ 1444721503168 refactoring 2A 2 true 1444721504512 regression 1 0 true 1444721577207 production 1 71 false +1444721679995 refactoring 3 98 true +1444721693602 regression 1 0 false +1444721695368 regression 1 0 false +1444721738478 regression 2 41 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 36fbfb6..53556e5 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -13,3 +13,7 @@ 1444721503168 refactoring 2A 11 false 1444721504512 regression 1 1 false 1444721577207 production 1 72 false +1444721679995 refactoring 3 102 false +1444721693602 regression 1 13 false +1444721695368 regression 1 1 false +1444721738478 regression 2 43 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 1dad340..e556910 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -46,7 +46,7 @@ public void fillGrid(int gridSize) { } if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); - if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ + else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); } From e0fad5e40be80959604556bda71e2a8c7041ab84 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:37:26 +0300 Subject: [PATCH 32/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 13 +++++++++++++ .besouro/2015101310222917/besouroEpisodes.txt | 3 +++ .../2015101310222917/randomHeuristicEpisodes.txt | 3 +++ .besouro/2015101310222917/zorroEpisodes.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 5 files changed, 23 insertions(+) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 3a07b95..0dc4f23 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -90,3 +90,16 @@ UnitTestSessionAction 1444721739852 TestGrid (1) FAIL UnitTestCaseAction 1444721747960 TestGrid.java FAIL UnitTestSessionAction 1444721747961 TestGrid (1) FAIL EditAction 1444721800842 Grid.java 2067 7 20 0 +UnitTestCaseAction 1444721801848 TestGrid.java OK +UnitTestSessionAction 1444721801849 TestGrid (1) OK +UnitTestCaseAction 1444721805515 TestGrid.java OK +UnitTestSessionAction 1444721805516 TestGrid (1) OK +UnitTestCaseAction 1444721807027 TestGrid.java FAIL +UnitTestSessionAction 1444721807028 TestGrid (1) FAIL +UnitTestCaseAction 1444721809197 TestGrid.java FAIL +UnitTestSessionAction 1444721809198 TestGrid (1) FAIL +UnitTestCaseAction 1444721810984 TestGrid.java OK +UnitTestSessionAction 1444721810985 TestGrid (1) OK +UnitTestCaseAction 1444721812257 TestGrid.java FAIL +UnitTestSessionAction 1444721812258 TestGrid (1) FAIL +EditAction 1444721845877 Grid.java 2099 7 16 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index b8c9fa7..0324a48 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -18,3 +18,6 @@ 1444721693602 regression 1 0 true 1444721695368 regression 1 0 true 1444721738478 regression 2 41 true +1444721801849 refactoring 2A 61 true +1444721805516 regression 1 0 true +1444721810985 regression 2 3 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index df70c6f..8b8727b 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -17,3 +17,6 @@ 1444721693602 regression 1 0 false 1444721695368 regression 1 0 false 1444721738478 regression 2 41 true +1444721801849 refactoring 2A 61 false +1444721805516 regression 1 0 true +1444721810985 regression 2 3 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 53556e5..82eb9f4 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -17,3 +17,6 @@ 1444721693602 regression 1 13 false 1444721695368 regression 1 1 false 1444721738478 regression 2 43 false +1444721801849 refactoring 2A 63 false +1444721805516 regression 1 3 false +1444721810985 regression 2 5 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index e556910..b70ec80 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -46,6 +46,7 @@ public void fillGrid(int gridSize) { } if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); + System.out.println(gridSize); else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); From ee116eda322499ae80022d3468d2c98782705660 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:37:48 +0300 Subject: [PATCH 33/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 0dc4f23..b5d3920 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -103,3 +103,5 @@ UnitTestSessionAction 1444721810985 TestGrid (1) OK UnitTestCaseAction 1444721812257 TestGrid.java FAIL UnitTestSessionAction 1444721812258 TestGrid (1) FAIL EditAction 1444721845877 Grid.java 2099 7 16 0 +CompilationAction 1444721846388 Grid.java +EditAction 1444721868508 Grid.java 2099 7 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index b70ec80..ab52136 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -45,8 +45,8 @@ public void fillGrid(int gridSize) { } } - if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); System.out.println(gridSize); + if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); From 0a9390d952f4de6c87242716f12d29da45f8bb7d Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:38:26 +0300 Subject: [PATCH 34/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index b5d3920..e5e280a 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -105,3 +105,6 @@ UnitTestSessionAction 1444721812258 TestGrid (1) FAIL EditAction 1444721845877 Grid.java 2099 7 16 0 CompilationAction 1444721846388 Grid.java EditAction 1444721868508 Grid.java 2099 7 21 0 +UnitTestCaseAction 1444721870965 TestGrid.java FAIL +UnitTestSessionAction 1444721870965 TestGrid (1) FAIL +EditAction 1444721906749 Grid.java 2120 7 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index ab52136..3af0659 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -45,7 +45,7 @@ public void fillGrid(int gridSize) { } } - System.out.println(gridSize); + System.out.println(triesToGetBalancedInitialGrid); if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; From 435c3b6b7d0517280dcbccfa8c7714085b032137 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:39:17 +0300 Subject: [PATCH 35/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 3 +++ .besouro/2015101310222917/besouroEpisodes.txt | 2 ++ .besouro/2015101310222917/randomHeuristicEpisodes.txt | 1 + .besouro/2015101310222917/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index e5e280a..4367d9d 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -108,3 +108,6 @@ EditAction 1444721868508 Grid.java 2099 7 21 0 UnitTestCaseAction 1444721870965 TestGrid.java FAIL UnitTestSessionAction 1444721870965 TestGrid (1) FAIL EditAction 1444721906749 Grid.java 2120 7 21 0 +UnitTestCaseAction 1444721909108 TestGrid.java OK +UnitTestSessionAction 1444721909109 TestGrid (1) OK +EditAction 1444721957195 TestGrid.java 4220 9 94 9 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 0324a48..2056b16 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -21,3 +21,5 @@ 1444721801849 refactoring 2A 61 true 1444721805516 regression 1 0 true 1444721810985 regression 2 3 true +1444721909109 production 1 96 false +1444721909110 refactoring 2A 96 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 8b8727b..decffd6 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -20,3 +20,4 @@ 1444721801849 refactoring 2A 61 false 1444721805516 regression 1 0 true 1444721810985 regression 2 3 true +1444721909109 production 1 96 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 82eb9f4..63e9e45 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -20,3 +20,4 @@ 1444721801849 refactoring 2A 63 false 1444721805516 regression 1 3 false 1444721810985 regression 2 5 false +1444721909109 production 1 98 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 0e3c457..7f82e14 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -69,7 +69,7 @@ public void testSizeOfTheWholeGrid_gridSize2_returns4(){ int gridSize = 2; grid.fillGrid(gridSize); - System.out.println(gridSize); + //System.out.println(gridSize); assertEquals(4, grid.cells.size()); } From a51e071c58c3cb913f88d241b8505c9ef1c2ed75 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:40:47 +0300 Subject: [PATCH 36/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 7 +++++++ .besouro/2015101310222917/besouroEpisodes.txt | 1 + .besouro/2015101310222917/randomHeuristicEpisodes.txt | 1 + .besouro/2015101310222917/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 4367d9d..39884de 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -111,3 +111,10 @@ EditAction 1444721906749 Grid.java 2120 7 21 0 UnitTestCaseAction 1444721909108 TestGrid.java OK UnitTestSessionAction 1444721909109 TestGrid (1) OK EditAction 1444721957195 TestGrid.java 4220 9 94 9 +UnitTestCaseAction 1444721963627 TestGrid.java FAIL +UnitTestSessionAction 1444721963627 TestGrid (1) FAIL +UnitTestCaseAction 1444722005711 TestGrid.java OK +UnitTestSessionAction 1444722005712 Rerun org.unioulu.tol.sqatlab.gameoflife.test.TestGrid.testSizeOfTheWholeGrid_gridSize2_returns4 OK +UnitTestCaseAction 1444722008598 TestGrid.java FAIL +UnitTestSessionAction 1444722008599 TestGrid (1) FAIL +EditAction 1444722047035 Grid.java 2084 7 21 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 2056b16..33dde0d 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -23,3 +23,4 @@ 1444721810985 regression 2 3 true 1444721909109 production 1 96 false 1444721909110 refactoring 2A 96 true +1444722005712 refactoring 1A 48 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index decffd6..34173c3 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -21,3 +21,4 @@ 1444721805516 regression 1 0 true 1444721810985 regression 2 3 true 1444721909109 production 1 96 true +1444722005712 refactoring 1A 48 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 63e9e45..bbc2357 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -21,3 +21,4 @@ 1444721805516 regression 1 3 false 1444721810985 regression 2 5 false 1444721909109 production 1 98 false +1444722005712 refactoring 1A 96 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 3af0659..1a610ea 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -47,7 +47,7 @@ public void fillGrid(int gridSize) { System.out.println(triesToGetBalancedInitialGrid); if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); - else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ + else if(checkPercentageOfAliveCells()){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); } From 90f6b54cde2967bbeb3b085505e117cacb2bbff9 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:41:29 +0300 Subject: [PATCH 37/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 39884de..156b5f3 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -118,3 +118,6 @@ UnitTestSessionAction 1444722005712 Rerun org.unioulu.tol.sqatlab.gameoflife.tes UnitTestCaseAction 1444722008598 TestGrid.java FAIL UnitTestSessionAction 1444722008599 TestGrid (1) FAIL EditAction 1444722047035 Grid.java 2084 7 21 0 +UnitTestCaseAction 1444722050787 TestGrid.java FAIL +UnitTestSessionAction 1444722050788 TestGrid (1) FAIL +EditAction 1444722088886 Grid.java 2089 7 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 1a610ea..1d0c0dc 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -47,10 +47,11 @@ public void fillGrid(int gridSize) { System.out.println(triesToGetBalancedInitialGrid); if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); - else if(checkPercentageOfAliveCells()){ + else{ if(checkPercentageOfAliveCells()){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); } + } } From 4485eefbb307949bfc4e021650caa291d22ab328 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:42:07 +0300 Subject: [PATCH 38/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 7 +++++++ .besouro/2015101310222917/besouroEpisodes.txt | 2 ++ .besouro/2015101310222917/randomHeuristicEpisodes.txt | 2 ++ .besouro/2015101310222917/zorroEpisodes.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 156b5f3..4a05039 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -121,3 +121,10 @@ EditAction 1444722047035 Grid.java 2084 7 21 0 UnitTestCaseAction 1444722050787 TestGrid.java FAIL UnitTestSessionAction 1444722050788 TestGrid (1) FAIL EditAction 1444722088886 Grid.java 2089 7 21 0 +UnitTestCaseAction 1444722090113 TestGrid.java OK +UnitTestSessionAction 1444722090114 TestGrid (1) OK +UnitTestCaseAction 1444722093502 TestGrid.java OK +UnitTestSessionAction 1444722093502 TestGrid (1) OK +UnitTestCaseAction 1444722097902 TestGrid.java FAIL +UnitTestSessionAction 1444722097903 TestGrid (1) FAIL +EditAction 1444722126879 Grid.java 2088 7 21 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 33dde0d..701e9b2 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -24,3 +24,5 @@ 1444721909109 production 1 96 false 1444721909110 refactoring 2A 96 true 1444722005712 refactoring 1A 48 true +1444722090114 refactoring 2A 81 true +1444722093502 regression 1 0 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 34173c3..5096f44 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -22,3 +22,5 @@ 1444721810985 regression 2 3 true 1444721909109 production 1 96 true 1444722005712 refactoring 1A 48 true +1444722090114 refactoring 2A 81 false +1444722093502 regression 1 0 false diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index bbc2357..3ac3540 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -22,3 +22,5 @@ 1444721810985 regression 2 5 false 1444721909109 production 1 98 false 1444722005712 refactoring 1A 96 false +1444722090114 refactoring 2A 84 false +1444722093502 regression 1 3 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 1d0c0dc..997a383 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -46,7 +46,7 @@ public void fillGrid(int gridSize) { } System.out.println(triesToGetBalancedInitialGrid); - if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); + if(triesToGetBalancedInitialGrid>=2)System.out.println("Initial grid might be unbalanced"); else{ if(checkPercentageOfAliveCells()){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); From 623736cd5a36c201cbbe21b1f2c0c19f78468fb3 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:42:41 +0300 Subject: [PATCH 39/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 5 +++++ .besouro/2015101310222917/besouroEpisodes.txt | 1 + .besouro/2015101310222917/randomHeuristicEpisodes.txt | 1 + .besouro/2015101310222917/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 5 ++--- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 4a05039..4d76846 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -128,3 +128,8 @@ UnitTestSessionAction 1444722093502 TestGrid (1) OK UnitTestCaseAction 1444722097902 TestGrid.java FAIL UnitTestSessionAction 1444722097903 TestGrid (1) FAIL EditAction 1444722126879 Grid.java 2088 7 21 0 +UnitTestCaseAction 1444722127882 TestGrid.java OK +UnitTestSessionAction 1444722127883 TestGrid (1) OK +UnitTestCaseAction 1444722131321 TestGrid.java FAIL +UnitTestSessionAction 1444722131322 TestGrid (1) FAIL +EditAction 1444722161141 Grid.java 2120 7 21 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 701e9b2..644dc9e 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -26,3 +26,4 @@ 1444722005712 refactoring 1A 48 true 1444722090114 refactoring 2A 81 true 1444722093502 regression 1 0 true +1444722127883 refactoring 2A 29 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 5096f44..3d05590 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -24,3 +24,4 @@ 1444722005712 refactoring 1A 48 true 1444722090114 refactoring 2A 81 false 1444722093502 regression 1 0 false +1444722127883 refactoring 2A 29 false diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 3ac3540..8a7c249 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -24,3 +24,4 @@ 1444722005712 refactoring 1A 96 false 1444722090114 refactoring 2A 84 false 1444722093502 regression 1 3 false +1444722127883 refactoring 2A 34 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 997a383..3af0659 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -46,12 +46,11 @@ public void fillGrid(int gridSize) { } System.out.println(triesToGetBalancedInitialGrid); - if(triesToGetBalancedInitialGrid>=2)System.out.println("Initial grid might be unbalanced"); - else{ if(checkPercentageOfAliveCells()){ + if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); + else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); } - } } From a49780e92913cf40d6d9433010e61c2ab0b89be0 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:45:06 +0300 Subject: [PATCH 40/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 5 +++++ .besouro/2015101310222917/besouroEpisodes.txt | 1 + .besouro/2015101310222917/randomHeuristicEpisodes.txt | 1 + .besouro/2015101310222917/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 5 ++++- 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 4d76846..9701f65 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -133,3 +133,8 @@ UnitTestSessionAction 1444722127883 TestGrid (1) OK UnitTestCaseAction 1444722131321 TestGrid.java FAIL UnitTestSessionAction 1444722131322 TestGrid (1) FAIL EditAction 1444722161141 Grid.java 2120 7 21 0 +UnitTestCaseAction 1444722166408 TestGrid.java OK +UnitTestSessionAction 1444722166408 TestGrid (1) OK +UnitTestCaseAction 1444722248560 TestGrid.java FAIL +UnitTestSessionAction 1444722248561 TestGrid (1) FAIL +EditAction 1444722306030 Grid.java 2140 7 21 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 644dc9e..47b7b84 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -27,3 +27,4 @@ 1444722090114 refactoring 2A 81 true 1444722093502 regression 1 0 true 1444722127883 refactoring 2A 29 true +1444722166408 refactoring 2A 35 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 3d05590..7c76d17 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -25,3 +25,4 @@ 1444722090114 refactoring 2A 81 false 1444722093502 regression 1 0 false 1444722127883 refactoring 2A 29 false +1444722166408 refactoring 2A 35 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 8a7c249..6ddeea5 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -25,3 +25,4 @@ 1444722090114 refactoring 2A 84 false 1444722093502 regression 1 3 false 1444722127883 refactoring 2A 34 false +1444722166408 refactoring 2A 38 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 3af0659..05438dd 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -46,7 +46,10 @@ public void fillGrid(int gridSize) { } System.out.println(triesToGetBalancedInitialGrid); - if(triesToGetBalancedInitialGrid>=10)System.out.println("Initial grid might be unbalanced"); + if(triesToGetBalancedInitialGrid>=10){ + System.out.println("Initial grid might be unbalanced"); + return; + } else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); From 27ec3ce60d65d3c5e886a7084bb6246d518bd169 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:45:27 +0300 Subject: [PATCH 41/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 9701f65..c1392ab 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -138,3 +138,6 @@ UnitTestSessionAction 1444722166408 TestGrid (1) OK UnitTestCaseAction 1444722248560 TestGrid.java FAIL UnitTestSessionAction 1444722248561 TestGrid (1) FAIL EditAction 1444722306030 Grid.java 2140 7 21 0 +UnitTestCaseAction 1444722309074 TestGrid.java FAIL +UnitTestSessionAction 1444722309074 TestGrid (1) FAIL +EditAction 1444722326934 Grid.java 2139 7 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 05438dd..c1ad48f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -48,7 +48,7 @@ public void fillGrid(int gridSize) { System.out.println(triesToGetBalancedInitialGrid); if(triesToGetBalancedInitialGrid>=10){ System.out.println("Initial grid might be unbalanced"); - return; + break; } else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; From 08a9d70e5f3603396374d1af95cda348a1d98e3d Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:46:44 +0300 Subject: [PATCH 42/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index c1392ab..3b54727 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -141,3 +141,6 @@ EditAction 1444722306030 Grid.java 2140 7 21 0 UnitTestCaseAction 1444722309074 TestGrid.java FAIL UnitTestSessionAction 1444722309074 TestGrid (1) FAIL EditAction 1444722326934 Grid.java 2139 7 21 0 +CompilationAction 1444722327414 Grid.java +CompilationAction 1444722330500 Grid.java +EditAction 1444722403919 Grid.java 2191 7 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index c1ad48f..5053eda 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -48,11 +48,12 @@ public void fillGrid(int gridSize) { System.out.println(triesToGetBalancedInitialGrid); if(triesToGetBalancedInitialGrid>=10){ System.out.println("Initial grid might be unbalanced"); - break; + System.out.println("eins"); } else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); + System.out.println("zwei"); } } From 06b9b07fe5d99d0e149c9a10cae88c9ad5442545 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:47:21 +0300 Subject: [PATCH 43/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 5 +++++ .besouro/2015101310222917/besouroEpisodes.txt | 1 + .besouro/2015101310222917/randomHeuristicEpisodes.txt | 1 + .besouro/2015101310222917/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 3b54727..52f20f2 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -144,3 +144,8 @@ EditAction 1444722326934 Grid.java 2139 7 21 0 CompilationAction 1444722327414 Grid.java CompilationAction 1444722330500 Grid.java EditAction 1444722403919 Grid.java 2191 7 21 0 +UnitTestCaseAction 1444722407832 TestGrid.java OK +UnitTestSessionAction 1444722407832 TestGrid (1) OK +UnitTestCaseAction 1444722414870 TestGrid.java FAIL +UnitTestSessionAction 1444722414871 TestGrid (1) FAIL +EditAction 1444722441234 Grid.java 2224 7 22 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 47b7b84..5241379 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -28,3 +28,4 @@ 1444722093502 regression 1 0 true 1444722127883 refactoring 2A 29 true 1444722166408 refactoring 2A 35 true +1444722407832 refactoring 2A 159 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 7c76d17..93159fe 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -26,3 +26,4 @@ 1444722093502 regression 1 0 false 1444722127883 refactoring 2A 29 false 1444722166408 refactoring 2A 35 true +1444722407832 refactoring 2A 159 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 6ddeea5..68adb25 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -26,3 +26,4 @@ 1444722093502 regression 1 3 false 1444722127883 refactoring 2A 34 false 1444722166408 refactoring 2A 38 false +1444722407832 refactoring 2A 241 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 5053eda..a79da8e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -55,7 +55,7 @@ else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ fillGrid(gridSize); System.out.println("zwei"); } - + System.out.println("end method"); } From 167c831d20803202bf76d7d039847410ea55913e Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:50:26 +0300 Subject: [PATCH 44/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 11 +++++++++++ .besouro/2015101310222917/besouroEpisodes.txt | 4 ++++ .besouro/2015101310222917/randomHeuristicEpisodes.txt | 4 ++++ .besouro/2015101310222917/zorroEpisodes.txt | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 3 ++- 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 52f20f2..7aad5d5 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -149,3 +149,14 @@ UnitTestSessionAction 1444722407832 TestGrid (1) OK UnitTestCaseAction 1444722414870 TestGrid.java FAIL UnitTestSessionAction 1444722414871 TestGrid (1) FAIL EditAction 1444722441234 Grid.java 2224 7 22 0 +UnitTestCaseAction 1444722445012 TestGrid.java OK +UnitTestSessionAction 1444722445014 TestGrid (1) OK +UnitTestCaseAction 1444722447556 TestGrid.java OK +UnitTestSessionAction 1444722447556 TestGrid (1) OK +UnitTestCaseAction 1444722456460 TestGrid.java OK +UnitTestSessionAction 1444722456460 TestGrid (1) OK +UnitTestCaseAction 1444722458544 TestGrid.java OK +UnitTestSessionAction 1444722458545 TestGrid (1) OK +UnitTestCaseAction 1444722460107 TestGrid.java FAIL +UnitTestSessionAction 1444722460108 TestGrid (1) FAIL +EditAction 1444722626159 Grid.java 2246 7 23 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 5241379..9668b2d 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -29,3 +29,7 @@ 1444722127883 refactoring 2A 29 true 1444722166408 refactoring 2A 35 true 1444722407832 refactoring 2A 159 true +1444722445014 production 1 30 false +1444722447556 regression 1 0 true +1444722456460 regression 1 0 true +1444722458545 regression 1 0 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 93159fe..fabd32e 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -27,3 +27,7 @@ 1444722127883 refactoring 2A 29 false 1444722166408 refactoring 2A 35 true 1444722407832 refactoring 2A 159 true +1444722445014 production 1 30 false +1444722447556 regression 1 0 true +1444722456460 regression 1 0 false +1444722458545 regression 1 0 false diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 68adb25..ee4e500 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -27,3 +27,7 @@ 1444722127883 refactoring 2A 34 false 1444722166408 refactoring 2A 38 false 1444722407832 refactoring 2A 241 false +1444722445014 production 1 37 false +1444722447556 regression 1 2 false +1444722456460 regression 1 8 false +1444722458545 regression 1 2 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index a79da8e..16821f2 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -34,7 +34,7 @@ public void addCell(Cell cell) { } - public void fillGrid(int gridSize) { + public Cell[] fillGrid(int gridSize) { int counter = 0; Cell[] cellArray = new Cell[gridSize*gridSize]; for(int i = 0; i < gridSize; i++){ @@ -56,6 +56,7 @@ else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ System.out.println("zwei"); } System.out.println("end method"); + return cellArray; } From aa5eb6bf1f20f23c663e1b5cfe68941a9c27a92f Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:51:25 +0300 Subject: [PATCH 45/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 7aad5d5..2ae6235 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -160,3 +160,4 @@ UnitTestSessionAction 1444722458545 TestGrid (1) OK UnitTestCaseAction 1444722460107 TestGrid.java FAIL UnitTestSessionAction 1444722460108 TestGrid (1) FAIL EditAction 1444722626159 Grid.java 2246 7 23 0 +EditAction 1444722685849 Grid.java 2224 7 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 16821f2..a79da8e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -34,7 +34,7 @@ public void addCell(Cell cell) { } - public Cell[] fillGrid(int gridSize) { + public void fillGrid(int gridSize) { int counter = 0; Cell[] cellArray = new Cell[gridSize*gridSize]; for(int i = 0; i < gridSize; i++){ @@ -56,7 +56,6 @@ else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ System.out.println("zwei"); } System.out.println("end method"); - return cellArray; } From ac1c75f22db00044d0dafba4ba6ee60ef833da01 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:55:10 +0300 Subject: [PATCH 46/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 2ae6235..5eb9380 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -161,3 +161,4 @@ UnitTestCaseAction 1444722460107 TestGrid.java FAIL UnitTestSessionAction 1444722460108 TestGrid (1) FAIL EditAction 1444722626159 Grid.java 2246 7 23 0 EditAction 1444722685849 Grid.java 2224 7 22 0 +EditAction 1444722910296 Grid.java 2224 7 22 0 From 7774976572c1afa10ed781dbe7c7f38061a87f74 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:56:29 +0300 Subject: [PATCH 47/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 2 files changed, 2 insertions(+) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 5eb9380..5a26592 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -162,3 +162,4 @@ UnitTestSessionAction 1444722460108 TestGrid (1) FAIL EditAction 1444722626159 Grid.java 2246 7 23 0 EditAction 1444722685849 Grid.java 2224 7 22 0 EditAction 1444722910296 Grid.java 2224 7 22 0 +EditAction 1444722989667 Grid.java 2241 7 23 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index a79da8e..aadf733 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -36,6 +36,7 @@ public void addCell(Cell cell) { public void fillGrid(int gridSize) { int counter = 0; + cells.clear(); Cell[] cellArray = new Cell[gridSize*gridSize]; for(int i = 0; i < gridSize; i++){ for(int j = 0; j < gridSize; j++){ From b9dd03a43b2e2508ef405906290a62c4d2fc7eb3 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:57:09 +0300 Subject: [PATCH 48/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 35 +++++++++++++++++++ .besouro/2015101310222917/besouroEpisodes.txt | 18 ++++++++++ .../randomHeuristicEpisodes.txt | 17 +++++++++ .besouro/2015101310222917/zorroEpisodes.txt | 17 +++++++++ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 5 files changed, 88 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 5a26592..ca60310 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -163,3 +163,38 @@ EditAction 1444722626159 Grid.java 2246 7 23 0 EditAction 1444722685849 Grid.java 2224 7 22 0 EditAction 1444722910296 Grid.java 2224 7 22 0 EditAction 1444722989667 Grid.java 2241 7 23 0 +UnitTestCaseAction 1444722990951 TestGrid.java OK +UnitTestSessionAction 1444722990952 TestGrid (1) OK +UnitTestCaseAction 1444722993877 TestGrid.java OK +UnitTestSessionAction 1444722993878 TestGrid (1) OK +UnitTestCaseAction 1444722995428 TestGrid.java OK +UnitTestSessionAction 1444722995429 TestGrid (1) OK +UnitTestCaseAction 1444722996600 TestGrid.java OK +UnitTestSessionAction 1444722996600 TestGrid (1) OK +UnitTestCaseAction 1444722997698 TestGrid.java OK +UnitTestSessionAction 1444722997699 TestGrid (1) OK +UnitTestCaseAction 1444722998803 TestGrid.java OK +UnitTestSessionAction 1444722998804 TestGrid (1) OK +UnitTestCaseAction 1444722999753 TestGrid.java OK +UnitTestSessionAction 1444722999754 TestGrid (1) OK +UnitTestCaseAction 1444723000759 TestGrid.java OK +UnitTestSessionAction 1444723000759 TestGrid (1) OK +UnitTestCaseAction 1444723001746 TestGrid.java OK +UnitTestSessionAction 1444723001747 TestGrid (1) OK +UnitTestCaseAction 1444723002908 TestGrid.java OK +UnitTestSessionAction 1444723002909 TestGrid (1) OK +UnitTestCaseAction 1444723003953 TestGrid.java OK +UnitTestSessionAction 1444723003954 TestGrid (1) OK +UnitTestCaseAction 1444723005112 TestGrid.java OK +UnitTestSessionAction 1444723005112 TestGrid (1) OK +UnitTestCaseAction 1444723006170 TestGrid.java OK +UnitTestSessionAction 1444723006171 TestGrid (1) OK +UnitTestCaseAction 1444723007127 TestGrid.java OK +UnitTestSessionAction 1444723007127 TestGrid (1) OK +UnitTestCaseAction 1444723008533 TestGrid.java OK +UnitTestSessionAction 1444723008534 TestGrid (1) OK +UnitTestCaseAction 1444723009447 TestGrid.java OK +UnitTestSessionAction 1444723009447 TestGrid (1) OK +UnitTestCaseAction 1444723010677 TestGrid.java OK +UnitTestSessionAction 1444723010677 TestGrid (1) OK +EditAction 1444723029357 Grid.java 2241 7 23 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 9668b2d..6bbe962 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -33,3 +33,21 @@ 1444722447556 regression 1 0 true 1444722456460 regression 1 0 true 1444722458545 regression 1 0 true +1444722990952 production 1 530 false +1444722990953 refactoring 2A 530 true +1444722993878 regression 1 0 true +1444722995429 regression 1 0 true +1444722996600 regression 1 0 true +1444722997699 regression 1 0 true +1444722998804 regression 1 0 true +1444722999754 regression 1 0 true +1444723000759 regression 1 0 true +1444723001747 regression 1 0 true +1444723002909 regression 1 0 true +1444723003954 regression 1 0 true +1444723005112 regression 1 0 true +1444723006171 regression 1 0 true +1444723007127 regression 1 0 true +1444723008534 regression 1 0 true +1444723009447 regression 1 0 true +1444723010677 regression 1 0 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index fabd32e..0b5294d 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -31,3 +31,20 @@ 1444722447556 regression 1 0 true 1444722456460 regression 1 0 false 1444722458545 regression 1 0 false +1444722990952 production 1 530 true +1444722993878 regression 1 0 false +1444722995429 regression 1 0 true +1444722996600 regression 1 0 true +1444722997699 regression 1 0 true +1444722998804 regression 1 0 true +1444722999754 regression 1 0 true +1444723000759 regression 1 0 true +1444723001747 regression 1 0 true +1444723002909 regression 1 0 true +1444723003954 regression 1 0 false +1444723005112 regression 1 0 true +1444723006171 regression 1 0 false +1444723007127 regression 1 0 false +1444723008534 regression 1 0 false +1444723009447 regression 1 0 true +1444723010677 regression 1 0 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index ee4e500..86986c2 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -31,3 +31,20 @@ 1444722447556 regression 1 2 false 1444722456460 regression 1 8 false 1444722458545 regression 1 2 false +1444722990952 production 1 532 false +1444722993878 regression 1 2 false +1444722995429 regression 1 1 false +1444722996600 regression 1 1 false +1444722997699 regression 1 1 false +1444722998804 regression 1 1 false +1444722999754 regression 1 0 false +1444723000759 regression 1 1 false +1444723001747 regression 1 0 false +1444723002909 regression 1 1 false +1444723003954 regression 1 1 false +1444723005112 regression 1 1 false +1444723006171 regression 1 1 false +1444723007127 regression 1 0 false +1444723008534 regression 1 1 false +1444723009447 regression 1 0 false +1444723010677 regression 1 1 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index aadf733..1a1a385 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -78,7 +78,7 @@ public boolean checkPercentageOfAliveCells() { double percentageOfAliveCells = 0; percentageOfAliveCells = getNumAliveCells()*100/cells.size(); //System.out.println(getNumAliveCells() + " " + cells.size() + " = " + percentageOfAliveCells); - if(percentageOfAliveCells>70 || percentageOfAliveCells<30)return false; + if(percentageOfAliveCells>60 || percentageOfAliveCells<40)return false; else return true; } public String randomState(){ From 9de0811a9b5b4e69eafcef1f438517e9d658d3e6 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:57:22 +0300 Subject: [PATCH 49/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index ca60310..1f05abc 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -198,3 +198,4 @@ UnitTestSessionAction 1444723009447 TestGrid (1) OK UnitTestCaseAction 1444723010677 TestGrid.java OK UnitTestSessionAction 1444723010677 TestGrid (1) OK EditAction 1444723029357 Grid.java 2241 7 23 0 +EditAction 1444723042793 Grid.java 2247 7 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 1a1a385..955e2e7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -49,14 +49,14 @@ public void fillGrid(int gridSize) { System.out.println(triesToGetBalancedInitialGrid); if(triesToGetBalancedInitialGrid>=10){ System.out.println("Initial grid might be unbalanced"); - System.out.println("eins"); + //System.out.println("eins"); } else if(checkPercentageOfAliveCells() && triesToGetBalancedInitialGrid<10){ triesToGetBalancedInitialGrid++; fillGrid(gridSize); - System.out.println("zwei"); + //System.out.println("zwei"); } - System.out.println("end method"); + //System.out.println("end method"); } From f82ab31121d7b708c4d6d8db87d4f673a45c5258 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 10:58:13 +0300 Subject: [PATCH 50/51] besouro automatic message --- .besouro/2015101310222917/actions.txt | 31 +++++++++++++++++++ .besouro/2015101310222917/besouroEpisodes.txt | 15 +++++++++ .../randomHeuristicEpisodes.txt | 15 +++++++++ .besouro/2015101310222917/zorroEpisodes.txt | 15 +++++++++ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 5 files changed, 77 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 1f05abc..52f8527 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -199,3 +199,34 @@ UnitTestCaseAction 1444723010677 TestGrid.java OK UnitTestSessionAction 1444723010677 TestGrid (1) OK EditAction 1444723029357 Grid.java 2241 7 23 0 EditAction 1444723042793 Grid.java 2247 7 22 0 +UnitTestCaseAction 1444723045561 TestGrid.java OK +UnitTestSessionAction 1444723045562 TestGrid (1) OK +UnitTestCaseAction 1444723048384 TestGrid.java OK +UnitTestSessionAction 1444723048384 TestGrid (1) OK +UnitTestCaseAction 1444723050000 TestGrid.java OK +UnitTestSessionAction 1444723050001 TestGrid (1) OK +UnitTestCaseAction 1444723052192 TestGrid.java OK +UnitTestSessionAction 1444723052192 TestGrid (1) OK +UnitTestCaseAction 1444723053403 TestGrid.java OK +UnitTestSessionAction 1444723053404 TestGrid (1) OK +UnitTestCaseAction 1444723054533 TestGrid.java OK +UnitTestSessionAction 1444723054533 TestGrid (1) OK +UnitTestCaseAction 1444723055555 TestGrid.java OK +UnitTestSessionAction 1444723055556 TestGrid (1) OK +UnitTestCaseAction 1444723056590 TestGrid.java OK +UnitTestSessionAction 1444723056591 TestGrid (1) OK +UnitTestCaseAction 1444723057618 TestGrid.java OK +UnitTestSessionAction 1444723057619 TestGrid (1) OK +UnitTestCaseAction 1444723058731 TestGrid.java OK +UnitTestSessionAction 1444723058732 TestGrid (1) OK +UnitTestCaseAction 1444723059914 TestGrid.java OK +UnitTestSessionAction 1444723059914 TestGrid (1) OK +UnitTestCaseAction 1444723061019 TestGrid.java OK +UnitTestSessionAction 1444723061019 TestGrid (1) OK +UnitTestCaseAction 1444723062121 TestGrid.java OK +UnitTestSessionAction 1444723062122 TestGrid (1) OK +UnitTestCaseAction 1444723063188 TestGrid.java OK +UnitTestSessionAction 1444723063189 TestGrid (1) OK +UnitTestCaseAction 1444723064283 TestGrid.java OK +UnitTestSessionAction 1444723064283 TestGrid (1) OK +EditAction 1444723093833 Grid.java 2249 7 21 0 diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 6bbe962..27b29bf 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -51,3 +51,18 @@ 1444723008534 regression 1 0 true 1444723009447 regression 1 0 true 1444723010677 regression 1 0 true +1444723045562 refactoring 2A 16 true +1444723048384 regression 1 0 true +1444723050001 regression 1 0 true +1444723052192 regression 1 0 true +1444723053404 regression 1 0 true +1444723054533 regression 1 0 true +1444723055556 regression 1 0 true +1444723056591 regression 1 0 true +1444723057619 regression 1 0 true +1444723058732 regression 1 0 true +1444723059914 regression 1 0 true +1444723061019 regression 1 0 true +1444723062122 regression 1 0 true +1444723063189 regression 1 0 true +1444723064283 regression 1 0 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 0b5294d..41f9835 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -48,3 +48,18 @@ 1444723008534 regression 1 0 false 1444723009447 regression 1 0 true 1444723010677 regression 1 0 true +1444723045562 refactoring 2A 16 true +1444723048384 regression 1 0 true +1444723050001 regression 1 0 true +1444723052192 regression 1 0 true +1444723053404 regression 1 0 false +1444723054533 regression 1 0 true +1444723055556 regression 1 0 true +1444723056591 regression 1 0 false +1444723057619 regression 1 0 false +1444723058732 regression 1 0 true +1444723059914 regression 1 0 false +1444723061019 regression 1 0 true +1444723062122 regression 1 0 false +1444723063189 regression 1 0 false +1444723064283 regression 1 0 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 86986c2..931bfcf 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -48,3 +48,18 @@ 1444723008534 regression 1 1 false 1444723009447 regression 1 0 false 1444723010677 regression 1 1 false +1444723045562 refactoring 2A 34 false +1444723048384 regression 1 2 false +1444723050001 regression 1 1 false +1444723052192 regression 1 2 false +1444723053404 regression 1 1 false +1444723054533 regression 1 1 false +1444723055556 regression 1 1 false +1444723056591 regression 1 1 false +1444723057619 regression 1 1 false +1444723058732 regression 1 1 false +1444723059914 regression 1 1 false +1444723061019 regression 1 1 false +1444723062122 regression 1 1 false +1444723063189 regression 1 1 false +1444723064283 regression 1 1 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 955e2e7..ff87d4c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -46,7 +46,7 @@ public void fillGrid(int gridSize) { } } - System.out.println(triesToGetBalancedInitialGrid); + //System.out.println(triesToGetBalancedInitialGrid); if(triesToGetBalancedInitialGrid>=10){ System.out.println("Initial grid might be unbalanced"); //System.out.println("eins"); From 3eb7476471aa0935f2550101a6d188b3af431830 Mon Sep 17 00:00:00 2001 From: Maxaxa Date: Tue, 13 Oct 2015 10:59:30 +0300 Subject: [PATCH 51/51] fixed the bug which produced the overflow error and made the function terminate after 10 tries --- .besouro/2015101310222917/actions.txt | 16 ++++++++++++++++ .besouro/2015101310222917/besouroEpisodes.txt | 8 ++++++++ .../2015101310222917/randomHeuristicEpisodes.txt | 8 ++++++++ .besouro/2015101310222917/zorroEpisodes.txt | 8 ++++++++ 4 files changed, 40 insertions(+) diff --git a/.besouro/2015101310222917/actions.txt b/.besouro/2015101310222917/actions.txt index 52f8527..e2c814c 100644 --- a/.besouro/2015101310222917/actions.txt +++ b/.besouro/2015101310222917/actions.txt @@ -230,3 +230,19 @@ UnitTestSessionAction 1444723063189 TestGrid (1) OK UnitTestCaseAction 1444723064283 TestGrid.java OK UnitTestSessionAction 1444723064283 TestGrid (1) OK EditAction 1444723093833 Grid.java 2249 7 21 0 +UnitTestCaseAction 1444723096290 TestGrid.java OK +UnitTestSessionAction 1444723096291 TestGrid (1) OK +UnitTestCaseAction 1444723097677 TestGrid.java OK +UnitTestSessionAction 1444723097678 TestGrid (1) OK +UnitTestCaseAction 1444723099257 TestGrid.java OK +UnitTestSessionAction 1444723099258 TestGrid (1) OK +UnitTestCaseAction 1444723100130 TestGrid.java OK +UnitTestSessionAction 1444723100131 TestGrid (1) OK +UnitTestCaseAction 1444723101837 TestGrid.java OK +UnitTestSessionAction 1444723101838 TestGrid (1) OK +UnitTestCaseAction 1444723102763 TestGrid.java OK +UnitTestSessionAction 1444723102764 TestGrid (1) OK +UnitTestCaseAction 1444723103935 TestGrid.java OK +UnitTestSessionAction 1444723103935 TestGrid (1) OK +UnitTestCaseAction 1444723105043 TestGrid.java OK +UnitTestSessionAction 1444723105043 TestGrid (1) OK diff --git a/.besouro/2015101310222917/besouroEpisodes.txt b/.besouro/2015101310222917/besouroEpisodes.txt index 27b29bf..27f89d8 100644 --- a/.besouro/2015101310222917/besouroEpisodes.txt +++ b/.besouro/2015101310222917/besouroEpisodes.txt @@ -66,3 +66,11 @@ 1444723062122 regression 1 0 true 1444723063189 regression 1 0 true 1444723064283 regression 1 0 true +1444723096291 refactoring 2A 2 true +1444723097678 regression 1 0 true +1444723099258 regression 1 0 true +1444723100131 regression 1 0 true +1444723101838 regression 1 0 true +1444723102764 regression 1 0 true +1444723103935 regression 1 0 true +1444723105043 regression 1 0 true diff --git a/.besouro/2015101310222917/randomHeuristicEpisodes.txt b/.besouro/2015101310222917/randomHeuristicEpisodes.txt index 41f9835..efc262a 100644 --- a/.besouro/2015101310222917/randomHeuristicEpisodes.txt +++ b/.besouro/2015101310222917/randomHeuristicEpisodes.txt @@ -63,3 +63,11 @@ 1444723062122 regression 1 0 false 1444723063189 regression 1 0 false 1444723064283 regression 1 0 true +1444723096291 refactoring 2A 2 true +1444723097678 regression 1 0 false +1444723099258 regression 1 0 false +1444723100131 regression 1 0 false +1444723101838 regression 1 0 true +1444723102764 regression 1 0 false +1444723103935 regression 1 0 false +1444723105043 regression 1 0 true diff --git a/.besouro/2015101310222917/zorroEpisodes.txt b/.besouro/2015101310222917/zorroEpisodes.txt index 931bfcf..7ac399e 100644 --- a/.besouro/2015101310222917/zorroEpisodes.txt +++ b/.besouro/2015101310222917/zorroEpisodes.txt @@ -63,3 +63,11 @@ 1444723062122 regression 1 1 false 1444723063189 regression 1 1 false 1444723064283 regression 1 1 false +1444723096291 refactoring 2A 32 false +1444723097678 regression 1 1 false +1444723099258 regression 1 1 false +1444723100131 regression 1 0 false +1444723101838 regression 1 1 false +1444723102764 regression 1 0 false +1444723103935 regression 1 1 false +1444723105043 regression 1 1 false