From 584517a73b9ecf88ef36a428006724d178e5bcbe Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:14:47 +0300 Subject: [PATCH 001/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 13 +++++++++++++ .besouro/2015101216064590/besouroEpisodes.txt | 0 .besouro/2015101216064590/disagreements.txt | 0 .../randomHeuristicEpisodes.txt | 0 .besouro/2015101216064590/userComments.txt | 0 .besouro/2015101216064590/zorroEpisodes.txt | 0 .../sqatlab/gameoflife/test/TestGameOfLife.java | 14 ++++++++++++++ .../tol/sqatlab/gameoflife/test/TestGrid.java | 17 ++++++++++++++++- 8 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .besouro/2015101216064590/actions.txt create mode 100644 .besouro/2015101216064590/besouroEpisodes.txt create mode 100644 .besouro/2015101216064590/disagreements.txt create mode 100644 .besouro/2015101216064590/randomHeuristicEpisodes.txt create mode 100644 .besouro/2015101216064590/userComments.txt create mode 100644 .besouro/2015101216064590/zorroEpisodes.txt create mode 100644 src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt new file mode 100644 index 0000000..8a9b51c --- /dev/null +++ b/.besouro/2015101216064590/actions.txt @@ -0,0 +1,13 @@ +FileOpenedAction 1444655205548 GameOfLife.java 74 0 0 0 +RefactoringAction 1444655298343 TestGameOfLife.java ADD void test() METHOD +RefactoringAction 1444655298366 TestGameOfLife.java ADD import org.junit.Assert.* IMPORT +FileOpenedAction 1444655298637 TestGameOfLife.java 219 1 1 0 +RefactoringAction 1444655308098 TestGameOfLife.java REMOVE TestGameOfLife.java CLASS +UnitTestCaseAction 1444655317242 TestGameOfLife.java FAIL +UnitTestSessionAction 1444655317251 TestGameOfLife FAIL +FileOpenedAction 1444655355974 Grid.java 567 2 5 0 +RefactoringAction 1444655645064 TestGrid.java ADD void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor()/2 METHOD +RefactoringAction 1444655670121 TestGrid.java REMOVE testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor()/2 METHOD +RefactoringAction 1444655676232 TestGrid.java ADD void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor()/2 METHOD +RefactoringAction 1444655684356 TestGrid.java REMOVE testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor()/2 METHOD +EditAction 1444655687030 TestGrid.java 1429 3 19 3 diff --git a/.besouro/2015101216064590/besouroEpisodes.txt b/.besouro/2015101216064590/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101216064590/disagreements.txt b/.besouro/2015101216064590/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101216064590/randomHeuristicEpisodes.txt b/.besouro/2015101216064590/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101216064590/userComments.txt b/.besouro/2015101216064590/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101216064590/zorroEpisodes.txt b/.besouro/2015101216064590/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java new file mode 100644 index 0000000..cf58bac --- /dev/null +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -0,0 +1,14 @@ +package org.unioulu.tol.sqatlab.gameoflife.test; + +import static org.junit.Assert.*; + +import org.junit.Test; + +public class TestGameOfLife { + + @Test + public void test() { + fail("Not yet implemented"); + } + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index eab5959..15aef75 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -49,6 +49,21 @@ public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { assertEquals(1, numNeighbors); } - + /* + @Test + public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { + //arrange + Grid grid = new Grid(); + Cell cell1 = new Cell(0,0); + Cell cell2 = new Cell(1,0); + + grid.addCell(cell1); + grid.addCell(cell2); + + int numNeighbors = grid.getNumNeighbors(cell1); + assertEquals(1, numNeighbors); + + } + */ } From cd2c49abce0f4bb57cd2f19d8255be646e699a98 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:15:41 +0300 Subject: [PATCH 002/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index 8a9b51c..3b70e17 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -11,3 +11,6 @@ RefactoringAction 1444655670121 TestGrid.java REMOVE testTwoNeighborCellsOnDiffe RefactoringAction 1444655676232 TestGrid.java ADD void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor()/2 METHOD RefactoringAction 1444655684356 TestGrid.java REMOVE testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor()/2 METHOD EditAction 1444655687030 TestGrid.java 1429 3 19 3 +RefactoringAction 1444655737587 Cell.java RENAME Cell(String)=>Cell(String, int, int) METHOD +RefactoringAction 1444655740624 Cell.java REMOVE Cell(int, int) METHOD +EditAction 1444655741350 Cell.java 943 7 19 0 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 4bea15fee9607a47b2acc5a04f158c3447412fc7 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:20:31 +0300 Subject: [PATCH 003/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 6 ++++++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index 3b70e17..c615c29 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -14,3 +14,9 @@ EditAction 1444655687030 TestGrid.java 1429 3 19 3 RefactoringAction 1444655737587 Cell.java RENAME Cell(String)=>Cell(String, int, int) METHOD RefactoringAction 1444655740624 Cell.java REMOVE Cell(int, int) METHOD EditAction 1444655741350 Cell.java 943 7 19 0 +CompilationAction 1444655741778 Grid.java +CompilationAction 1444655741779 TestCell.java +CompilationAction 1444655741780 TestGrid.java +RefactoringAction 1444656024914 Cell.java ADD Cell(int, int) METHOD +RefactoringAction 1444656026494 Cell.java RENAME Cell(String, int, int)=>Cell(String) METHOD +EditAction 1444656031505 Cell.java 964 8 19 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index cfd71ff..08585f2 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -5,8 +5,12 @@ public class Cell { int x; int y; - public Cell(String initialState, int x, int y) { + public Cell(String initialState) { this.state = initialState; + } + + + public Cell(int x, int y) { this.x = x; this.y = y; } From 5372bfa4842c92a64a118ed0bbf25a2020cc8955 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:23:41 +0300 Subject: [PATCH 004/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 8 ++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index c615c29..df8d96c 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -20,3 +20,6 @@ CompilationAction 1444655741780 TestGrid.java RefactoringAction 1444656024914 Cell.java ADD Cell(int, int) METHOD RefactoringAction 1444656026494 Cell.java RENAME Cell(String, int, int)=>Cell(String) METHOD EditAction 1444656031505 Cell.java 964 8 19 0 +RefactoringAction 1444656211403 Cell.java RENAME Cell(int, int)=>Cell(int, int, String) METHOD +RefactoringAction 1444656220979 Cell.java REMOVE Cell(String) METHOD +EditAction 1444656221467 Cell.java 943 7 19 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 08585f2..9cf5bf0 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -5,14 +5,10 @@ public class Cell { int x; int y; - public Cell(String initialState) { - this.state = initialState; - } - - - public Cell(int x, int y) { + public Cell(int x, int y, String initialState) { this.x = x; this.y = y; + this.state = initialState; } public int getX() { From 5ef0ebe138618f72afa83a27bcdc6fa35092114d Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:24:49 +0300 Subject: [PATCH 005/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 7 +++++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 4 ++-- src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index df8d96c..b47176e 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -23,3 +23,10 @@ EditAction 1444656031505 Cell.java 964 8 19 0 RefactoringAction 1444656211403 Cell.java RENAME Cell(int, int)=>Cell(int, int, String) METHOD RefactoringAction 1444656220979 Cell.java REMOVE Cell(String) METHOD EditAction 1444656221467 Cell.java 943 7 19 0 +CompilationAction 1444656221759 Grid.java +CompilationAction 1444656221759 TestCell.java +CompilationAction 1444656221760 TestGrid.java +CompilationAction 1444656248804 TestCell.java +CompilationAction 1444656285764 TestGrid.java +CompilationAction 1444656285948 TestGrid.java +EditAction 1444656289815 TestGrid.java 1449 3 19 3 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index cfe527a..4e6d26c 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(0, 0, "Alive"); // 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(0, 0, "Alive"); // 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 15aef75..dd9b678 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -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(0, 0, "Alive"); + Cell cell2 = new Cell(1, 0, "Alive"); grid.addCell(cell1); grid.addCell(cell2); From 1b5d08efb387a3a19f263db5143549d06669e0a8 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:26:42 +0300 Subject: [PATCH 006/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 6 ++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 8 ++++++-- src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 6 +++--- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index b47176e..4db171d 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -30,3 +30,9 @@ CompilationAction 1444656248804 TestCell.java CompilationAction 1444656285764 TestGrid.java CompilationAction 1444656285948 TestGrid.java EditAction 1444656289815 TestGrid.java 1449 3 19 3 +CompilationAction 1444656290195 TestGrid.java +CompilationAction 1444656301792 TestGrid.java +CompilationAction 1444656301986 TestGrid.java +CompilationAction 1444656310456 TestGrid.java +CompilationAction 1444656333143 Grid.java +EditAction 1444656402868 Grid.java 639 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..2290b22 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -11,14 +11,18 @@ 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(cell.x + dx, cell.y + dy, "Alive"); if (cells.contains(neighbor)) { numNeighbors++; } } } + if(cell.getState().equals("Alive")) + { + numNeighbors--; + } - return numNeighbors-1; + return numNeighbors; } public void addCell(Cell cell) { cells.add(cell); diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index dd9b678..814965b 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(0, 0, "Alive"); 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(0,0, "Alive"); + Cell cell2 = new Cell(0,1, "Alive"); grid.addCell(cell1); grid.addCell(cell2); From 1be65d55828a055acc5e6aaeb1712f750861b7c0 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:28:58 +0300 Subject: [PATCH 007/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 19 +++++++++++++++++++ .../gameoflife/test/TestGameOfLife.java | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index 4db171d..9ee0ffa 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -36,3 +36,22 @@ CompilationAction 1444656301986 TestGrid.java CompilationAction 1444656310456 TestGrid.java CompilationAction 1444656333143 Grid.java EditAction 1444656402868 Grid.java 639 2 6 0 +RefactoringAction 1444656418928 TestGrid.java ADD void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor()/2 METHOD +RefactoringAction 1444656442375 TestGrid.java RENAME testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor()/2=>void testCell() METHOD +RefactoringAction 1444656443899 TestGrid.java RENAME testCell()=>void testCellZero() METHOD +RefactoringAction 1444656445422 TestGrid.java RENAME testCellZero()=>void testCellZeroZero() METHOD +RefactoringAction 1444656449977 TestGrid.java RENAME testCellZeroZero()=>void testCellZeroZeroShould() METHOD +RefactoringAction 1444656451505 TestGrid.java RENAME testCellZeroZeroShould()=>void testCellZeroZeroShouldHave() METHOD +RefactoringAction 1444656459559 TestGrid.java RENAME testCellZeroZeroShouldHave()=>void testCellZeroZeroShouldHaveThree() METHOD +RefactoringAction 1444656462593 TestGrid.java RENAME testCellZeroZeroShouldHaveThree()=>void testCellZeroZeroShouldHaveThreeAlave() METHOD +RefactoringAction 1444656470640 TestGrid.java RENAME testCellZeroZeroShouldHaveThreeAlave()=>void testCellZeroZeroShouldHaveThreeAliveNeighbours_() METHOD +RefactoringAction 1444656472172 TestGrid.java RENAME testCellZeroZeroShouldHaveThreeAliveNeighbours_()=>void testCellZeroZeroShouldHaveThreeAliveNeighbours_All() METHOD +RefactoringAction 1444656476701 TestGrid.java RENAME testCellZeroZeroShouldHaveThreeAliveNeighbours_All()=>void testCellZeroZero() METHOD +RefactoringAction 1444656478230 TestGrid.java RENAME testCellZeroZero()=>void testCellZeroZero_() METHOD +RefactoringAction 1444656482773 TestGrid.java RENAME testCellZeroZero_()=>void testCellZeroZero() METHOD +RefactoringAction 1444656486312 TestGrid.java RENAME testCellZeroZero()=>void testCellZeroZero_F() METHOD +RefactoringAction 1444656488862 TestGrid.java RENAME testCellZeroZero_F()=>void testCellZeroZero_Four() METHOD +RefactoringAction 1444656502985 TestGrid.java RENAME testCellZeroZero_Four()=>void testgetNumNeighborsCellZeroZero_Four() METHOD +RefactoringAction 1444656505010 TestGrid.java RENAME testgetNumNeighborsCellZeroZero_Four()=>void testGetNumNeighborsCellZeroZero_Four() METHOD +RefactoringAction 1444656535019 TestGameOfLife.java REMOVE test() METHOD +EditAction 1444656538445 TestGameOfLife.java 228 0 0 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index cf58bac..a21b839 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -6,9 +6,10 @@ public class TestGameOfLife { + /* @Test public void test() { fail("Not yet implemented"); } - + */ } From 09c392562fca9ef7d670bdbfd9541d179b08623f Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:29:04 +0300 Subject: [PATCH 008/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index 9ee0ffa..a0dee0d 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -55,3 +55,4 @@ RefactoringAction 1444656502985 TestGrid.java RENAME testCellZeroZero_Four()=>vo RefactoringAction 1444656505010 TestGrid.java RENAME testgetNumNeighborsCellZeroZero_Four()=>void testGetNumNeighborsCellZeroZero_Four() METHOD RefactoringAction 1444656535019 TestGameOfLife.java REMOVE test() METHOD EditAction 1444656538445 TestGameOfLife.java 228 0 0 0 +EditAction 1444656544557 TestGrid.java 1456 4 26 4 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 814965b..b0da040 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -49,9 +49,9 @@ public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { assertEquals(1, numNeighbors); } - /* + @Test - public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { + public void testGetNumNeighborsCellZeroZero_Four() { //arrange Grid grid = new Grid(); Cell cell1 = new Cell(0,0); From 725bb386ff0b27cd06054726f12581dba9cbaf0b Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:30:55 +0300 Subject: [PATCH 009/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 14 ++++++++++++++ .../tol/sqatlab/gameoflife/test/TestGrid.java | 12 ++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index a0dee0d..e8596ba 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -56,3 +56,17 @@ RefactoringAction 1444656505010 TestGrid.java RENAME testgetNumNeighborsCellZero RefactoringAction 1444656535019 TestGameOfLife.java REMOVE test() METHOD EditAction 1444656538445 TestGameOfLife.java 228 0 0 0 EditAction 1444656544557 TestGrid.java 1456 4 26 4 +CompilationAction 1444656544802 TestGrid.java +CompilationAction 1444656544802 TestGrid.java +CompilationAction 1444656544802 TestGrid.java +RefactoringAction 1444656553150 TestGrid.java RENAME testGetNumNeighborsCellZeroZero_Four()=>void testGetNumNeighborsCellZeroZero_() METHOD +RefactoringAction 1444656555684 TestGrid.java RENAME testGetNumNeighborsCellZeroZero_()=>void testGetNumNeighborsCellZeroZero_FourAlive() METHOD +RefactoringAction 1444656557206 TestGrid.java RENAME testGetNumNeighborsCellZeroZero_FourAlive()=>void testGetNumNeighborsCellZeroZero_FourAliveCells() METHOD +RefactoringAction 1444656576481 TestGrid.java RENAME testGetNumNeighborsCellZeroZero_FourAliveCells()=>void testGetNumNeighborsCellZeroZero_FourAliveCells_Return() METHOD +RefactoringAction 1444656580012 TestGrid.java RENAME testGetNumNeighborsCellZeroZero_FourAliveCells_Return()=>void testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree() METHOD +CompilationAction 1444656632457 TestGrid.java +CompilationAction 1444656632457 TestGrid.java +CompilationAction 1444656632458 TestGrid.java +CompilationAction 1444656632643 TestGrid.java +CompilationAction 1444656632644 TestGrid.java +EditAction 1444656655709 TestGrid.java 1620 4 30 4 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index b0da040..ec0230f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -51,17 +51,21 @@ public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { } @Test - public void testGetNumNeighborsCellZeroZero_Four() { + public void testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree() { //arrange Grid grid = new Grid(); - Cell cell1 = new Cell(0,0); - Cell cell2 = new Cell(1,0); + Cell cell1 = new Cell(0,0, "Alive"); + Cell cell2 = new Cell(0,1, "Alive"); + Cell cell3 = new Cell(1,0, "Alive"); + Cell cell4 = new Cell(1,1, "Alive"); grid.addCell(cell1); grid.addCell(cell2); + grid.addCell(cell3); + grid.addCell(cell4); int numNeighbors = grid.getNumNeighbors(cell1); - assertEquals(1, numNeighbors); + assertEquals(3, numNeighbors); } */ From 6fcf22503223a9983bcf92e73848e59eb96b5b99 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:31:21 +0300 Subject: [PATCH 010/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index e8596ba..4a0ad66 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -70,3 +70,6 @@ CompilationAction 1444656632458 TestGrid.java CompilationAction 1444656632643 TestGrid.java CompilationAction 1444656632644 TestGrid.java EditAction 1444656655709 TestGrid.java 1620 4 30 4 +CompilationAction 1444656656049 TestGrid.java +CompilationAction 1444656656049 TestGrid.java +EditAction 1444656681153 TestGrid.java 1613 4 30 4 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index ec0230f..c731360 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -65,9 +65,6 @@ public void testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree() { grid.addCell(cell4); int numNeighbors = grid.getNumNeighbors(cell1); - assertEquals(3, numNeighbors); - + assertEquals(3, numNeighbors); } - */ - } From f83ab21c316c00adb804371822aff34a3b682cb5 Mon Sep 17 00:00:00 2001 From: somename Date: Mon, 12 Oct 2015 16:34:46 +0300 Subject: [PATCH 011/101] besouro automatic message --- .besouro/2015101216064590/actions.txt | 7 +++++ .besouro/2015101216064590/besouroEpisodes.txt | 26 +++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/2015101216064590/zorroEpisodes.txt | 1 + .../tol/sqatlab/gameoflife/GameOfLife.java | 6 ++++- 5 files changed, 40 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101216064590/actions.txt b/.besouro/2015101216064590/actions.txt index 4a0ad66..204ea9c 100644 --- a/.besouro/2015101216064590/actions.txt +++ b/.besouro/2015101216064590/actions.txt @@ -73,3 +73,10 @@ EditAction 1444656655709 TestGrid.java 1620 4 30 4 CompilationAction 1444656656049 TestGrid.java CompilationAction 1444656656049 TestGrid.java EditAction 1444656681153 TestGrid.java 1613 4 30 4 +UnitTestCaseAction 1444656683229 TestGrid.java OK +UnitTestSessionAction 1444656683237 TestGrid (1) OK +RefactoringAction 1444656714724 GameOfLife.java ADD GameOfLife() METHOD +RefactoringAction 1444656873147 GameOfLife.java ADD int numberOf FIELD +RefactoringAction 1444656876659 GameOfLife.java RENAME numberOf=>int numberOfCells FIELD +RefactoringAction 1444656884180 GameOfLife.java RENAME GameOfLife()=>GameOfLife(int) METHOD +EditAction 1444656886101 GameOfLife.java 140 1 0 0 diff --git a/.besouro/2015101216064590/besouroEpisodes.txt b/.besouro/2015101216064590/besouroEpisodes.txt index e69de29..2cf282b 100644 --- a/.besouro/2015101216064590/besouroEpisodes.txt +++ b/.besouro/2015101216064590/besouroEpisodes.txt @@ -0,0 +1,26 @@ +1444656683237 test-first 2 1477 true +1444656683238 test-first 2 1477 true +1444656683239 test-first 2 1477 true +1444656683240 test-first 2 1477 true +1444656683241 test-first 2 1477 true +1444656683242 test-first 2 1477 true +1444656683243 test-first 2 1477 true +1444656683244 test-first 2 1477 true +1444656683245 test-first 2 1477 true +1444656683246 test-first 2 1477 true +1444656683247 test-first 2 1477 true +1444656683248 test-last 1 1477 false +1444656683249 test-last 1 1477 false +1444656683250 test-last 1 1477 false +1444656683251 test-last 1 1477 false +1444656683252 test-first 2 1477 true +1444656683253 test-last 1 1477 false +1444656683254 test-first 2 1477 true +1444656683255 test-last 1 1477 false +1444656683256 test-first 2 1477 true +1444656683257 test-first 2 1477 true +1444656683258 test-first 2 1477 true +1444656683259 test-first 2 1477 true +1444656683260 test-first 2 1477 true +1444656683261 test-first 2 1477 true +1444656683262 test-first 2 1477 true diff --git a/.besouro/2015101216064590/randomHeuristicEpisodes.txt b/.besouro/2015101216064590/randomHeuristicEpisodes.txt index e69de29..d1dfcbb 100644 --- a/.besouro/2015101216064590/randomHeuristicEpisodes.txt +++ b/.besouro/2015101216064590/randomHeuristicEpisodes.txt @@ -0,0 +1 @@ +1444656683237 test-first 2 1477 true diff --git a/.besouro/2015101216064590/zorroEpisodes.txt b/.besouro/2015101216064590/zorroEpisodes.txt index e69de29..d1dfcbb 100644 --- a/.besouro/2015101216064590/zorroEpisodes.txt +++ b/.besouro/2015101216064590/zorroEpisodes.txt @@ -0,0 +1 @@ +1444656683237 test-first 2 1477 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index dbd5f88..0108e45 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,5 +1,9 @@ package org.unioulu.tol.sqatlab.gameoflife; public class GameOfLife { - + int numberOfCells; + + public GameOfLife(int numberOfCells){ + + } } From 071e6a271eb0a0a371799d8580870bc6790da548 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:20:10 +0300 Subject: [PATCH 012/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 2 + .besouro/2015101320174354/besouroEpisodes.txt | 0 .besouro/2015101320174354/disagreements.txt | 0 .../randomHeuristicEpisodes.txt | 0 .besouro/2015101320174354/userComments.txt | 0 .besouro/2015101320174354/zorroEpisodes.txt | 0 .../unioulu/tol/sqatlab/gameoflife/Cell.java | 17 +++++-- .../tol/sqatlab/gameoflife/GameOfLife.java | 5 +- .../unioulu/tol/sqatlab/gameoflife/Grid.java | 18 +++++-- .../tol/sqatlab/gameoflife/test/TestCell.java | 48 +++++++++++++++++++ .../gameoflife/test/TestGameOfLife.java | 4 +- .../tol/sqatlab/gameoflife/test/TestGrid.java | 8 ++-- 12 files changed, 85 insertions(+), 17 deletions(-) create mode 100644 .besouro/2015101320174354/actions.txt create mode 100644 .besouro/2015101320174354/besouroEpisodes.txt create mode 100644 .besouro/2015101320174354/disagreements.txt create mode 100644 .besouro/2015101320174354/randomHeuristicEpisodes.txt create mode 100644 .besouro/2015101320174354/userComments.txt create mode 100644 .besouro/2015101320174354/zorroEpisodes.txt diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt new file mode 100644 index 0000000..10ac372 --- /dev/null +++ b/.besouro/2015101320174354/actions.txt @@ -0,0 +1,2 @@ +FileOpenedAction 1444756663443 TestGameOfLife.java 224 1 1 0 +EditAction 1444756810243 Grid.java 773 3 7 0 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101320174354/disagreements.txt b/.besouro/2015101320174354/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101320174354/userComments.txt b/.besouro/2015101320174354/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 9cf5bf0..77f7614 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -20,10 +20,18 @@ public int getY() { } public void nextIteration(int numOfLiveCells) { - if (state == "Alive" && numOfLiveCells < 2) + // Rule 1. + if (state == "Alive" && numOfLiveCells < 2){ state = "Dead"; - else + } + // Rule 3. + else if(state == "Alive" && numOfLiveCells > 3){ + state = "Dead"; + } + // Rule 4. + else if(state == "Dead" && numOfLiveCells == 3){ state = "Alive"; + } } public Object getState() { @@ -52,9 +60,8 @@ public boolean equals(Object obj) { return false; if (y != other.y) return false; + if(!state.equals(other.state)) + return false; return true; } - - - } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 0108e45..1e34320 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -2,8 +2,11 @@ public class GameOfLife { int numberOfCells; + int squareLength; - public GameOfLife(int numberOfCells){ + public GameOfLife(int squareLength){ + this.squareLength = squareLength; + numberOfCells = squareLength * squareLength; } } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 2290b22..19b6d73 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -4,17 +4,25 @@ import java.util.Set; public class Grid { - private Set cells = new HashSet<>(); + private Set cells; + int squareLength; + + public Grid(int squareLength){ + cells = new HashSet<>(); + this.squareLength = squareLength; + } + 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(cell.x + dx, cell.y + dy, "Alive"); - if (cells.contains(neighbor)) { - numNeighbors++; - } + if( dx >= 0 && dx < squareLength && dy >= 0 && dy < squareLength){ + if (cells.contains(neighbor)) { + numNeighbors++; + } + } } } if(cell.getState().equals("Alive")) diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 4e6d26c..1079ae0 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -27,5 +27,53 @@ public void testLiveCellWithTwoNeighborsShouldLive() { assertEquals("Alive", cell.getState()); } + @Test + public void testLiveCellWithFourNeighborsShouldDie() { + //arrange + Cell cell = new Cell(0, 0, "Alive"); + // + cell.nextIteration(4); + //assert + assertEquals("Dead", cell.getState()); + } + + @Test + public void testDeadCellWithThreeNeighborsShouldLive() { + //arrange + Cell cell = new Cell(0, 0, "Dead"); + // + cell.nextIteration(3); + //assert + assertEquals("Alive", cell.getState()); + } + @Test + public void testEqualsLiveCellAndSameCell_ReturnTrue() { + //arrange + Cell cell1 = new Cell(0, 0, "Alive"); + Cell cell2 = new Cell(0, 0, "Alive"); + + //assert + assertEquals(true, cell1.equals(cell2)); + } + + @Test + public void testEqualsLiveCellAndDeadCell_ReturnFalse() { + //arrange + Cell cell1 = new Cell(0, 0, "Alive"); + Cell cell2 = new Cell(0, 0, "Dead"); + + //assert + assertEquals(false, cell1.equals(cell2)); + } + + @Test + public void testEqualsDifferentCoordinates_ReturnFalse() { + //arrange + Cell cell1 = new Cell(0, 0, "Alive"); + Cell cell2 = new Cell(0, 1, "Dead"); + + //assert + assertEquals(false, cell1.equals(cell2)); + } } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index a21b839..aa93d44 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -6,10 +6,10 @@ public class TestGameOfLife { - /* + @Test public void test() { fail("Not yet implemented"); } - */ + } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index c731360..757ea3b 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -10,7 +10,7 @@ public class TestGrid { @Test public void testSingleCellOnGridHasNoNeighbors() { //arrange - Grid grid = new Grid(); + Grid grid = new Grid(2); Cell cell = new Cell(0, 0, "Alive"); grid.addCell(cell); @@ -23,7 +23,7 @@ public void testSingleCellOnGridHasNoNeighbors() { @Test public void testTwoNeighborCellsShouldHaveOneNeigbor() { //arrange - Grid grid = new Grid(); + Grid grid = new Grid(2); Cell cell1 = new Cell(0,0, "Alive"); Cell cell2 = new Cell(0,1, "Alive"); @@ -38,7 +38,7 @@ public void testTwoNeighborCellsShouldHaveOneNeigbor() { @Test public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { //arrange - Grid grid = new Grid(); + Grid grid = new Grid(2); Cell cell1 = new Cell(0, 0, "Alive"); Cell cell2 = new Cell(1, 0, "Alive"); @@ -53,7 +53,7 @@ public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { @Test public void testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree() { //arrange - Grid grid = new Grid(); + Grid grid = new Grid(2); Cell cell1 = new Cell(0,0, "Alive"); Cell cell2 = new Cell(0,1, "Alive"); Cell cell3 = new Cell(1,0, "Alive"); From ffc15232ac7d991e26249098d04b1fc09710cd5b Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:21:23 +0300 Subject: [PATCH 013/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 10ac372..3c7ec7a 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -1,2 +1,3 @@ FileOpenedAction 1444756663443 TestGameOfLife.java 224 1 1 0 EditAction 1444756810243 Grid.java 773 3 7 0 +EditAction 1444756883382 Grid.java 693 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 19b6d73..31f8dba 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -18,11 +18,9 @@ public int getNumNeighbors(Cell cell) { for (int dx=-1; dx<=1; dx ++) { for (int dy=-1; dy<=1; dy ++) { Cell neighbor = new Cell(cell.x + dx, cell.y + dy, "Alive"); - if( dx >= 0 && dx < squareLength && dy >= 0 && dy < squareLength){ - if (cells.contains(neighbor)) { - numNeighbors++; - } - } + if (cells.contains(neighbor)) { + numNeighbors++; + } } } if(cell.getState().equals("Alive")) From 757414ee202e8ffcb7d3c354ec3cef6a8c537cbd Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:22:42 +0300 Subject: [PATCH 014/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 3c7ec7a..a3c8cb1 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -1,3 +1,4 @@ FileOpenedAction 1444756663443 TestGameOfLife.java 224 1 1 0 EditAction 1444756810243 Grid.java 773 3 7 0 EditAction 1444756883382 Grid.java 693 3 7 0 +EditAction 1444756962524 Grid.java 769 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 31f8dba..f3976d4 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -19,6 +19,8 @@ public int getNumNeighbors(Cell cell) { for (int dy=-1; dy<=1; dy ++) { Cell neighbor = new Cell(cell.x + dx, cell.y + dy, "Alive"); if (cells.contains(neighbor)) { + if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength) + numNeighbors++; } } From 7f095e82049fcf388599a36eabc799ef943a9886 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:25:54 +0300 Subject: [PATCH 015/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index a3c8cb1..588810f 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -2,3 +2,4 @@ FileOpenedAction 1444756663443 TestGameOfLife.java 224 1 1 0 EditAction 1444756810243 Grid.java 773 3 7 0 EditAction 1444756883382 Grid.java 693 3 7 0 EditAction 1444756962524 Grid.java 769 3 7 0 +EditAction 1444757154518 Grid.java 850 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index f3976d4..0dbd758 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -19,7 +19,9 @@ public int getNumNeighbors(Cell cell) { for (int dy=-1; dy<=1; dy ++) { Cell neighbor = new Cell(cell.x + dx, cell.y + dy, "Alive"); if (cells.contains(neighbor)) { - if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength) + if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength){ + throw new CustomLifeException("Tried to reach cell out of grid!"); + } numNeighbors++; } From b84110b7f670ef1f1dd3b19fe0ffa9b1695ef5d6 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:27:19 +0300 Subject: [PATCH 016/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 7 +++++++ .../tol/sqatlab/gameoflife/CustomLifeException.java | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 588810f..786e55f 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -3,3 +3,10 @@ EditAction 1444756810243 Grid.java 773 3 7 0 EditAction 1444756883382 Grid.java 693 3 7 0 EditAction 1444756962524 Grid.java 769 3 7 0 EditAction 1444757154518 Grid.java 850 3 7 0 +CompilationAction 1444757154931 Grid.java +RefactoringAction 1444757190043 CustomLifeException.java ADD CustomLifeException.java CLASS +CompilationAction 1444757190211 Grid.java +FileOpenedAction 1444757190410 CustomLifeException.java 106 0 0 0 +RefactoringAction 1444757210434 CustomLifeException.java ADD void MyOwnException(String) METHOD +RefactoringAction 1444757231730 CustomLifeException.java RENAME MyOwnException(String)=>CustomLifeException(String) METHOD +EditAction 1444757239674 CustomLifeException.java 172 1 1 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java b/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java new file mode 100644 index 0000000..82d33a7 --- /dev/null +++ b/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java @@ -0,0 +1,7 @@ +package org.unioulu.tol.sqatlab.gameoflife; + +public class CustomLifeException extends Exception { + public CustomLifeException(String msg){ + super(msg); + } +} From 6dad76b3962597ffd3bdcac5c7dca1f72362be57 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:27:35 +0300 Subject: [PATCH 017/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 5 +++++ .../unioulu/tol/sqatlab/gameoflife/CustomLifeException.java | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 786e55f..24a81d8 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -10,3 +10,8 @@ FileOpenedAction 1444757190410 CustomLifeException.java 106 0 0 0 RefactoringAction 1444757210434 CustomLifeException.java ADD void MyOwnException(String) METHOD RefactoringAction 1444757231730 CustomLifeException.java RENAME MyOwnException(String)=>CustomLifeException(String) METHOD EditAction 1444757239674 CustomLifeException.java 172 1 1 0 +CompilationAction 1444757239943 Grid.java +RefactoringAction 1444757240035 CustomLifeException.java ADD long serialVersionUID FIELD +RefactoringAction 1444757245031 CustomLifeException.java ADD long serialVersionUID/2 FIELD +RefactoringAction 1444757252828 CustomLifeException.java REMOVE serialVersionUID/2 FIELD +EditAction 1444757255055 CustomLifeException.java 245 1 1 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java b/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java index 82d33a7..3417a23 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java @@ -1,6 +1,12 @@ package org.unioulu.tol.sqatlab.gameoflife; public class CustomLifeException extends Exception { + /** + * + */ + private static final long serialVersionUID = 1L; + + public CustomLifeException(String msg){ super(msg); } From 684e19331738526f3129aca5663b28f652510866 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:27:39 +0300 Subject: [PATCH 018/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ .../unioulu/tol/sqatlab/gameoflife/CustomLifeException.java | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 24a81d8..8dc35e7 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -15,3 +15,6 @@ RefactoringAction 1444757240035 CustomLifeException.java ADD long serialVersionU RefactoringAction 1444757245031 CustomLifeException.java ADD long serialVersionUID/2 FIELD RefactoringAction 1444757252828 CustomLifeException.java REMOVE serialVersionUID/2 FIELD EditAction 1444757255055 CustomLifeException.java 245 1 1 0 +CompilationAction 1444757255330 Grid.java +RefactoringAction 1444757258376 CustomLifeException.java REMOVE serialVersionUID FIELD +EditAction 1444757259855 CustomLifeException.java 172 1 1 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java b/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java index 3417a23..82d33a7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/CustomLifeException.java @@ -1,12 +1,6 @@ package org.unioulu.tol.sqatlab.gameoflife; public class CustomLifeException extends Exception { - /** - * - */ - private static final long serialVersionUID = 1L; - - public CustomLifeException(String msg){ super(msg); } From 8f6ffe9cb800eb67cc03a0184e519b648725779b Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:29:54 +0300 Subject: [PATCH 019/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 12 ++++++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- .../tol/sqatlab/gameoflife/test/TestGameOfLife.java | 2 +- .../tol/sqatlab/gameoflife/test/TestGrid.java | 9 +++++---- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 8dc35e7..ae6ec9f 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -18,3 +18,15 @@ EditAction 1444757255055 CustomLifeException.java 245 1 1 0 CompilationAction 1444757255330 Grid.java RefactoringAction 1444757258376 CustomLifeException.java REMOVE serialVersionUID FIELD EditAction 1444757259855 CustomLifeException.java 172 1 1 0 +CompilationAction 1444757260266 Grid.java +CompilationAction 1444757282165 Grid.java +CompilationAction 1444757282334 TestGrid.java +RefactoringAction 1444757294218 TestGrid.java ADD import org.unioulu.tol.sqatlab.gameoflife.CustomLifeException IMPORT +RefactoringAction 1444757300045 TestGrid.java REMOVE import org.unioulu.tol.sqatlab.gameoflife.CustomLifeException IMPORT +RefactoringAction 1444757302792 TestGrid.java ADD import org.unioulu.tol.sqatlab.gameoflife.CustomLifeException IMPORT +CompilationAction 1444757342960 TestGrid.java +RefactoringAction 1444757365314 TestGameOfLife.java RENAME test()=>void testGenerate() METHOD +RefactoringAction 1444757367822 TestGameOfLife.java RENAME testGenerate()=>void testGenerateNewGame() METHOD +RefactoringAction 1444757374836 TestGameOfLife.java RENAME testGenerateNewGame()=>void testSetupNewGame() METHOD +RefactoringAction 1444757377347 TestGameOfLife.java RENAME testSetupNewGame()=>void testSetupGame() METHOD +EditAction 1444757394718 TestGameOfLife.java 233 1 1 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 0dbd758..c3c9e8e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -13,7 +13,7 @@ public Grid(int squareLength){ } - public int getNumNeighbors(Cell cell) { + public int getNumNeighbors(Cell cell) throws CustomLifeException { int numNeighbors = 0; for (int dx=-1; dx<=1; dx ++) { for (int dy=-1; dy<=1; dy ++) { diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index aa93d44..6b16416 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -8,7 +8,7 @@ public class TestGameOfLife { @Test - public void test() { + public void testSetupGame() { fail("Not yet implemented"); } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 757ea3b..577a90d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -3,12 +3,13 @@ import static org.junit.Assert.*; import org.junit.Test; import org.unioulu.tol.sqatlab.gameoflife.Cell; +import org.unioulu.tol.sqatlab.gameoflife.CustomLifeException; import org.unioulu.tol.sqatlab.gameoflife.Grid; public class TestGrid { @Test - public void testSingleCellOnGridHasNoNeighbors() { + public void testSingleCellOnGridHasNoNeighbors() throws CustomLifeException { //arrange Grid grid = new Grid(2); Cell cell = new Cell(0, 0, "Alive"); @@ -21,7 +22,7 @@ public void testSingleCellOnGridHasNoNeighbors() { } @Test - public void testTwoNeighborCellsShouldHaveOneNeigbor() { + public void testTwoNeighborCellsShouldHaveOneNeigbor() throws CustomLifeException { //arrange Grid grid = new Grid(2); Cell cell1 = new Cell(0,0, "Alive"); @@ -36,7 +37,7 @@ public void testTwoNeighborCellsShouldHaveOneNeigbor() { } @Test - public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { + public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() throws CustomLifeException { //arrange Grid grid = new Grid(2); Cell cell1 = new Cell(0, 0, "Alive"); @@ -51,7 +52,7 @@ public void testTwoNeighborCellsOnDifferentRowsShouldHaveOneNeigbor() { } @Test - public void testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree() { + public void testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree() throws CustomLifeException { //arrange Grid grid = new Grid(2); Cell cell1 = new Cell(0,0, "Alive"); From a2537d993ae458a015c9f89c6a640007d87e2050 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:32:29 +0300 Subject: [PATCH 020/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 6 ++++++ .../tol/sqatlab/gameoflife/test/TestGameOfLife.java | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index ae6ec9f..0650974 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -30,3 +30,9 @@ RefactoringAction 1444757367822 TestGameOfLife.java RENAME testGenerate()=>void RefactoringAction 1444757374836 TestGameOfLife.java RENAME testGenerateNewGame()=>void testSetupNewGame() METHOD RefactoringAction 1444757377347 TestGameOfLife.java RENAME testSetupNewGame()=>void testSetupGame() METHOD EditAction 1444757394718 TestGameOfLife.java 233 1 1 0 +UnitTestCaseAction 1444757396700 TestGameOfLife.java FAIL +UnitTestSessionAction 1444757396709 TestGameOfLife FAIL +RefactoringAction 1444757429443 TestGameOfLife.java ADD GameOfLife gol FIELD +RefactoringAction 1444757431702 TestGameOfLife.java ADD import org.unioulu.tol.sqatlab.gameoflife.GameOfLife IMPORT +RefactoringAction 1444757464199 TestGameOfLife.java RENAME gol=>GameOfLife gameOfLife FIELD +EditAction 1444757549354 TestGameOfLife.java 390 1 3 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 6b16416..738d3d0 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -3,13 +3,17 @@ import static org.junit.Assert.*; import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.GameOfLife; public class TestGameOfLife { - + GameOfLife gameOfLife; @Test public void testSetupGame() { - fail("Not yet implemented"); + gameOfLife = new GameOfLife(3); + int numberOfCells = gameOfLife.grid.cells.size(); + + assertEquals(); } } From a4f622dfdfeb1648baf6e678f14b688a3272d55a Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:35:49 +0300 Subject: [PATCH 021/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 9 +++++++++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 7 +++++++ .../tol/sqatlab/gameoflife/test/TestGameOfLife.java | 3 ++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0650974..aa79890 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -36,3 +36,12 @@ RefactoringAction 1444757429443 TestGameOfLife.java ADD GameOfLife gol FIELD RefactoringAction 1444757431702 TestGameOfLife.java ADD import org.unioulu.tol.sqatlab.gameoflife.GameOfLife IMPORT RefactoringAction 1444757464199 TestGameOfLife.java RENAME gol=>GameOfLife gameOfLife FIELD EditAction 1444757549354 TestGameOfLife.java 390 1 3 1 +CompilationAction 1444757549736 TestGameOfLife.java +CompilationAction 1444757549737 TestGameOfLife.java +RefactoringAction 1444757579596 GameOfLife.java ADD Grid grid FIELD +RefactoringAction 1444757612562 GameOfLife.java ADD void setupGame() METHOD +CompilationAction 1444757615582 TestGameOfLife.java +CompilationAction 1444757615584 TestGameOfLife.java +CompilationAction 1444757615731 TestGameOfLife.java +CompilationAction 1444757615731 TestGameOfLife.java +EditAction 1444757749620 GameOfLife.java 344 2 2 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 1e34320..d602103 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -3,10 +3,17 @@ public class GameOfLife { int numberOfCells; int squareLength; + Grid grid; public GameOfLife(int squareLength){ this.squareLength = squareLength; numberOfCells = squareLength * squareLength; } + + public void setupGame() { + grid = new Grid(squareLength); + for (int i = 0; i < ) + + } } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 738d3d0..e51d56a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -11,9 +11,10 @@ public class TestGameOfLife { @Test public void testSetupGame() { gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(); int numberOfCells = gameOfLife.grid.cells.size(); - assertEquals(); + assertEquals(9, numberOfCells); } } From ae71c849806cdf9f9ece9cfb6aa4626137f6e7ea Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:38:49 +0300 Subject: [PATCH 022/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 22 +++++++++++++++++++ .../gameoflife/test/TestGameOfLife.java | 4 ++++ 2 files changed, 26 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index aa79890..c37513c 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -45,3 +45,25 @@ CompilationAction 1444757615584 TestGameOfLife.java CompilationAction 1444757615731 TestGameOfLife.java CompilationAction 1444757615731 TestGameOfLife.java EditAction 1444757749620 GameOfLife.java 344 2 2 0 +CompilationAction 1444757750012 GameOfLife.java +CompilationAction 1444757750012 GameOfLife.java +CompilationAction 1444757750012 TestGameOfLife.java +RefactoringAction 1444757757564 GameOfLife.java ADD int getNumberOfCells() METHOD +RefactoringAction 1444757757566 GameOfLife.java ADD void setNumberOfCells(int) METHOD +RefactoringAction 1444757757567 GameOfLife.java ADD int getSquareLength() METHOD +RefactoringAction 1444757757568 GameOfLife.java ADD void setSquareLength(int) METHOD +RefactoringAction 1444757757569 GameOfLife.java ADD Grid getGrid() METHOD +RefactoringAction 1444757757570 GameOfLife.java ADD void setGrid(Grid) METHOD +RefactoringAction 1444757768120 GameOfLife.java REMOVE getGrid() METHOD +RefactoringAction 1444757768123 GameOfLife.java REMOVE getSquareLength() METHOD +RefactoringAction 1444757768124 GameOfLife.java REMOVE setSquareLength(int) METHOD +RefactoringAction 1444757768126 GameOfLife.java REMOVE setNumberOfCells(int) METHOD +RefactoringAction 1444757768126 GameOfLife.java REMOVE getNumberOfCells() METHOD +RefactoringAction 1444757768127 GameOfLife.java REMOVE setGrid(Grid) METHOD +RefactoringAction 1444757780161 GameOfLife.java ADD int getNumberOfCells() METHOD +RefactoringAction 1444757780163 GameOfLife.java ADD void setNumberOfCells(int) METHOD +RefactoringAction 1444757780165 GameOfLife.java ADD int getSquareLength() METHOD +RefactoringAction 1444757780166 GameOfLife.java ADD void setSquareLength(int) METHOD +RefactoringAction 1444757780167 GameOfLife.java ADD Grid getGrid() METHOD +RefactoringAction 1444757780169 GameOfLife.java ADD void setGrid(Grid) METHOD +EditAction 1444757929730 TestGameOfLife.java 471 1 4 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index e51d56a..2ce584e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -17,4 +17,8 @@ public void testSetupGame() { assertEquals(9, numberOfCells); } + //nextRound + + //output string + } From 4b1d97053b91ed0336159caaa32e9dda18e72c77 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:39:14 +0300 Subject: [PATCH 023/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index c37513c..7d6f31f 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -67,3 +67,5 @@ RefactoringAction 1444757780166 GameOfLife.java ADD void setSquareLength(int) ME RefactoringAction 1444757780167 GameOfLife.java ADD Grid getGrid() METHOD RefactoringAction 1444757780169 GameOfLife.java ADD void setGrid(Grid) METHOD EditAction 1444757929730 TestGameOfLife.java 471 1 4 1 +CompilationAction 1444757929953 TestGameOfLife.java +EditAction 1444757954711 Grid.java 876 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index c3c9e8e..c0700c0 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -4,7 +4,7 @@ import java.util.Set; public class Grid { - private Set cells; + public Set cells; int squareLength; public Grid(int squareLength){ From 673042808b983a47f1f771827bbbf44572616c3b Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:39:22 +0300 Subject: [PATCH 024/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 ++ .../tol/sqatlab/gameoflife/GameOfLife.java | 36 +++++++++++++++++-- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 7d6f31f..b1b7c6f 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -69,3 +69,6 @@ RefactoringAction 1444757780169 GameOfLife.java ADD void setGrid(Grid) METHOD EditAction 1444757929730 TestGameOfLife.java 471 1 4 1 CompilationAction 1444757929953 TestGameOfLife.java EditAction 1444757954711 Grid.java 876 3 7 0 +CompilationAction 1444757955125 GameOfLife.java +CompilationAction 1444757955126 GameOfLife.java +EditAction 1444757962864 GameOfLife.java 897 8 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index d602103..3042c89 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -3,7 +3,7 @@ public class GameOfLife { int numberOfCells; int squareLength; - Grid grid; + public Grid grid; public GameOfLife(int squareLength){ this.squareLength = squareLength; @@ -13,7 +13,39 @@ public GameOfLife(int squareLength){ public void setupGame() { grid = new Grid(squareLength); - for (int i = 0; i < ) + String[] states = new String + for (int i = 0; i < squareLength; i++){ + for (int j = 0; j < squareLength; j++){ + Cell cell = new Cell(x, y, ); + } + } + + } + + public int getNumberOfCells() { + return numberOfCells; + } + + public void setNumberOfCells(int numberOfCells) { + this.numberOfCells = numberOfCells; + } + + public int getSquareLength() { + return squareLength; + } + + public void setSquareLength(int squareLength) { + this.squareLength = squareLength; + } + + public Grid getGrid() { + return grid; } + + public void setGrid(Grid grid) { + this.grid = grid; + } + + } From cadf8c48e8ab41854bfcb3fc8899945edcc96f40 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:45:50 +0300 Subject: [PATCH 025/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 11 +++++++++ .../gameoflife/test/TestGameOfLife.java | 23 +++++++++++++++---- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index b1b7c6f..fbb6272 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -72,3 +72,14 @@ EditAction 1444757954711 Grid.java 876 3 7 0 CompilationAction 1444757955125 GameOfLife.java CompilationAction 1444757955126 GameOfLife.java EditAction 1444757962864 GameOfLife.java 897 8 8 0 +CompilationAction 1444757963257 GameOfLife.java +CompilationAction 1444757963258 GameOfLife.java +CompilationAction 1444757963259 GameOfLife.java +CompilationAction 1444757963259 GameOfLife.java +CompilationAction 1444757963260 GameOfLife.java +CompilationAction 1444757963260 GameOfLife.java +RefactoringAction 1444757991767 TestGameOfLife.java ADD void testCreate FIELD +RefactoringAction 1444757995785 TestGameOfLife.java RENAME testCreate=>void testCreateRandomStates FIELD +RefactoringAction 1444757998804 TestGameOfLife.java RENAME testCreateRandomStates=>void testCreateRandomStates() METHOD +RefactoringAction 1444758088775 TestGameOfLife.java REMOVE testSetupGame() METHOD +EditAction 1444758350678 TestGameOfLife.java 927 1 7 5 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 2ce584e..add9a77 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -8,13 +8,26 @@ public class TestGameOfLife { GameOfLife gameOfLife; +// @Test +// public void testSetupGame() { +// gameOfLife = new GameOfLife(3); +// gameOfLife.setupGame(); +// int numberOfCells = gameOfLife.grid.cells.size(); +// +// assertEquals(9, numberOfCells); +// } + @Test - public void testSetupGame() { - gameOfLife = new GameOfLife(3); - gameOfLife.setupGame(); - int numberOfCells = gameOfLife.grid.cells.size(); + public void testCreateRandomStates(){ + gameOfLife = new GameOfLife(2); + String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); + - assertEquals(9, numberOfCells); + assertEquals(4, states.length); + assertEquals(true, states[0].matches("Dead|Alive")); + assertEquals(true, states[1].matches("Dead|Alive")); + assertEquals(true, states[2].matches("Dead|Alive")); + assertEquals(true, states[3].matches("Dead|Alive")); } //nextRound From 1be1e7cc80773a99e585a7c88db8435fb31c8326 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:55:19 +0300 Subject: [PATCH 026/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 24 +++++++++++++++++++ .../tol/sqatlab/gameoflife/GameOfLife.java | 23 ++++++++++++++++-- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index fbb6272..719611b 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -83,3 +83,27 @@ RefactoringAction 1444757995785 TestGameOfLife.java RENAME testCreate=>void test RefactoringAction 1444757998804 TestGameOfLife.java RENAME testCreateRandomStates=>void testCreateRandomStates() METHOD RefactoringAction 1444758088775 TestGameOfLife.java REMOVE testSetupGame() METHOD EditAction 1444758350678 TestGameOfLife.java 927 1 7 5 +CompilationAction 1444758350898 TestGameOfLife.java +RefactoringAction 1444758354758 GameOfLife.java ADD String METHOD +RefactoringAction 1444758611924 GameOfLife.java ADD import java.util.Random IMPORT +CompilationAction 1444758623502 GameOfLife.java +CompilationAction 1444758623503 GameOfLife.java +CompilationAction 1444758623504 GameOfLife.java +CompilationAction 1444758623505 GameOfLife.java +CompilationAction 1444758623506 GameOfLife.java +CompilationAction 1444758623506 GameOfLife.java +CompilationAction 1444758623778 GameOfLife.java +CompilationAction 1444758623779 GameOfLife.java +CompilationAction 1444758623780 GameOfLife.java +RefactoringAction 1444758735350 GameOfLife.java ADD import java.util.Random IMPORT +CompilationAction 1444758783449 GameOfLife.java +CompilationAction 1444758783449 GameOfLife.java +CompilationAction 1444758783450 GameOfLife.java +CompilationAction 1444758814394 GameOfLife.java +CompilationAction 1444758814395 GameOfLife.java +CompilationAction 1444758814396 GameOfLife.java +UnitTestCaseAction 1444758817409 TestGameOfLife.java FAIL +UnitTestSessionAction 1444758817410 TestGameOfLife FAIL +UnitTestCaseAction 1444758867371 TestGameOfLife.java FAIL +UnitTestSessionAction 1444758867371 TestGameOfLife FAIL +EditAction 1444758919053 GameOfLife.java 1240 9 13 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 3042c89..a6d1281 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,5 +1,7 @@ package org.unioulu.tol.sqatlab.gameoflife; +import java.util.Random; + public class GameOfLife { int numberOfCells; int squareLength; @@ -13,11 +15,11 @@ public GameOfLife(int squareLength){ public void setupGame() { grid = new Grid(squareLength); - String[] states = new String + //String[] states = new String; for (int i = 0; i < squareLength; i++){ for (int j = 0; j < squareLength; j++){ - Cell cell = new Cell(x, y, ); + //Cell cell = new Cell(x, y, ); } } @@ -46,6 +48,23 @@ public Grid getGrid() { public void setGrid(Grid grid) { this.grid = grid; } + + public String[] createRandomStates(int numberOfCells2) { + String[] states = new String[numberOfCells2]; + + for(int i = 0; i < states.length; i++) + { + Random random = new Random(); + if(random.nextBoolean()){ + states[i] = "Alive"; + } + else{ + states[i] = "Dead"; + } + } + + return states; + } } From b2fcbea14dbd4ba66a16e2b043c8c0fbde9fd891 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:56:12 +0300 Subject: [PATCH 027/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 + .besouro/2015101320174354/besouroEpisodes.txt | 66 +++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/2015101320174354/zorroEpisodes.txt | 1 + .../tol/sqatlab/gameoflife/GameOfLife.java | 4 +- 5 files changed, 74 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 719611b..420bde4 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -107,3 +107,6 @@ UnitTestSessionAction 1444758817410 TestGameOfLife FAIL UnitTestCaseAction 1444758867371 TestGameOfLife.java FAIL UnitTestSessionAction 1444758867371 TestGameOfLife FAIL EditAction 1444758919053 GameOfLife.java 1240 9 13 0 +UnitTestCaseAction 1444758921661 TestGameOfLife.java OK +UnitTestSessionAction 1444758921662 TestGameOfLife OK +EditAction 1444758972104 GameOfLife.java 1283 9 15 0 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index e69de29..ab048da 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -0,0 +1,66 @@ +1444758921662 test-first 1 2258 true +1444758921663 test-last 1 2258 false +1444758921664 test-first 1 2258 true +1444758921665 test-first 1 2258 true +1444758921666 test-first 1 2258 true +1444758921667 test-first 1 2258 true +1444758921668 test-first 1 2258 true +1444758921669 test-first 1 2258 true +1444758921670 test-first 1 2258 true +1444758921671 test-first 1 2258 true +1444758921672 test-first 1 2258 true +1444758921673 test-first 1 2258 true +1444758921674 test-first 1 2258 true +1444758921675 test-first 1 2258 true +1444758921676 test-first 1 2258 true +1444758921677 test-first 1 2258 true +1444758921678 test-first 1 2258 true +1444758921679 test-first 1 2258 true +1444758921680 test-first 1 2258 true +1444758921681 test-first 1 2258 true +1444758921682 test-first 1 2258 true +1444758921683 test-first 1 2258 true +1444758921684 test-first 1 2258 true +1444758921685 test-first 1 2258 true +1444758921686 test-first 1 2258 true +1444758921687 test-first 1 2258 true +1444758921688 test-first 1 2258 true +1444758921689 test-first 1 2258 true +1444758921690 test-first 1 2258 true +1444758921691 test-first 1 2258 true +1444758921692 test-first 1 2258 true +1444758921693 test-first 1 2258 true +1444758921694 test-first 1 2258 true +1444758921695 test-first 1 2258 true +1444758921696 test-first 1 2258 true +1444758921697 test-first 1 2258 true +1444758921698 test-first 1 2258 true +1444758921699 test-last 1 2258 false +1444758921700 test-first 1 2258 true +1444758921701 test-last 1 2258 false +1444758921702 test-first 1 2258 true +1444758921703 test-last 1 2258 false +1444758921704 test-first 1 2258 true +1444758921705 test-last 1 2258 false +1444758921706 test-first 1 2258 true +1444758921707 test-last 1 2258 false +1444758921708 test-first 1 2258 true +1444758921709 test-last 1 2258 false +1444758921710 test-first 1 2258 true +1444758921711 test-first 1 2258 true +1444758921712 test-first 1 2258 true +1444758921713 test-first 1 2258 true +1444758921714 test-first 1 2258 true +1444758921715 test-last 1 2258 false +1444758921716 test-first 1 2258 true +1444758921717 test-last 1 2258 false +1444758921718 test-first 1 2258 true +1444758921719 test-last 1 2258 false +1444758921720 test-first 1 2258 true +1444758921721 test-last 1 2258 false +1444758921722 test-first 1 2258 true +1444758921723 test-last 1 2258 false +1444758921724 test-first 1 2258 true +1444758921725 test-last 1 2258 false +1444758921726 test-first 1 2258 true +1444758921727 test-last 1 2258 false diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index e69de29..2f900b0 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -0,0 +1 @@ +1444758921662 test-first 1 2258 true diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index e69de29..2f900b0 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -0,0 +1 @@ +1444758921662 test-first 1 2258 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index a6d1281..733baa6 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -15,8 +15,10 @@ public GameOfLife(int squareLength){ public void setupGame() { grid = new Grid(squareLength); - //String[] states = new String; + String[] states = createRandomStates(numberOfCells); + + int counter = 0; for (int i = 0; i < squareLength; i++){ for (int j = 0; j < squareLength; j++){ //Cell cell = new Cell(x, y, ); From 0701be0afd86de4f6a0cf11c9d0375e26621bc89 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:56:43 +0300 Subject: [PATCH 028/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 420bde4..d56083b 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -110,3 +110,4 @@ EditAction 1444758919053 GameOfLife.java 1240 9 13 0 UnitTestCaseAction 1444758921661 TestGameOfLife.java OK UnitTestSessionAction 1444758921662 TestGameOfLife OK EditAction 1444758972104 GameOfLife.java 1283 9 15 0 +EditAction 1444759003877 GameOfLife.java 1311 9 15 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 733baa6..b34ed2f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -21,7 +21,8 @@ public void setupGame() { int counter = 0; for (int i = 0; i < squareLength; i++){ for (int j = 0; j < squareLength; j++){ - //Cell cell = new Cell(x, y, ); + Cell cell = new Cell(i, j, states[counter]); + counter++; } } From f6a35b66a7de801ac4c58855e1fbaeb3cf26446b Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:57:19 +0300 Subject: [PATCH 029/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 1 + 2 files changed, 2 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index d56083b..d3d5502 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -111,3 +111,4 @@ UnitTestCaseAction 1444758921661 TestGameOfLife.java OK UnitTestSessionAction 1444758921662 TestGameOfLife OK EditAction 1444758972104 GameOfLife.java 1283 9 15 0 EditAction 1444759003877 GameOfLife.java 1311 9 15 0 +EditAction 1444759039045 GameOfLife.java 1337 9 15 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index b34ed2f..18b907d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -22,6 +22,7 @@ public void setupGame() { for (int i = 0; i < squareLength; i++){ for (int j = 0; j < squareLength; j++){ Cell cell = new Cell(i, j, states[counter]); + grid.cells.add(cell); counter++; } } From 33dcdbf2834f421ec00b8fab16a95f24982ded22 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:57:22 +0300 Subject: [PATCH 030/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index d3d5502..9b1f499 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -112,3 +112,4 @@ UnitTestSessionAction 1444758921662 TestGameOfLife OK EditAction 1444758972104 GameOfLife.java 1283 9 15 0 EditAction 1444759003877 GameOfLife.java 1311 9 15 0 EditAction 1444759039045 GameOfLife.java 1337 9 15 0 +EditAction 1444759042711 GameOfLife.java 1336 9 15 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 18b907d..7c851aa 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -15,8 +15,7 @@ public GameOfLife(int squareLength){ public void setupGame() { grid = new Grid(squareLength); - String[] states = createRandomStates(numberOfCells); - + String[] states = createRandomStates(numberOfCells); int counter = 0; for (int i = 0; i < squareLength; i++){ From 8df6d0bbb8cdfb10b76c699b48873af949311f0e Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:57:31 +0300 Subject: [PATCH 031/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 2 ++ .../sqatlab/gameoflife/test/TestGameOfLife.java | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 9b1f499..81a2dc6 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -113,3 +113,5 @@ EditAction 1444758972104 GameOfLife.java 1283 9 15 0 EditAction 1444759003877 GameOfLife.java 1311 9 15 0 EditAction 1444759039045 GameOfLife.java 1337 9 15 0 EditAction 1444759042711 GameOfLife.java 1336 9 15 0 +RefactoringAction 1444759048341 TestGameOfLife.java ADD void testSetupGame() METHOD +EditAction 1444759051618 TestGameOfLife.java 911 2 11 6 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index add9a77..1836c33 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -8,14 +8,14 @@ public class TestGameOfLife { GameOfLife gameOfLife; -// @Test -// public void testSetupGame() { -// gameOfLife = new GameOfLife(3); -// gameOfLife.setupGame(); -// int numberOfCells = gameOfLife.grid.cells.size(); -// -// assertEquals(9, numberOfCells); -// } + @Test + public void testSetupGame() { + gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(); + int numberOfCells = gameOfLife.grid.cells.size(); + + assertEquals(9, numberOfCells); + } @Test public void testCreateRandomStates(){ From e75ddf77eaefbf913a460b8f172816f5ddca39b9 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:58:24 +0300 Subject: [PATCH 032/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 9 +++++++++ .besouro/2015101320174354/besouroEpisodes.txt | 8 ++++++++ .besouro/2015101320174354/randomHeuristicEpisodes.txt | 1 + .besouro/2015101320174354/zorroEpisodes.txt | 1 + .../tol/sqatlab/gameoflife/test/TestGameOfLife.java | 11 +++++++++++ 5 files changed, 30 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 81a2dc6..83c27d8 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -115,3 +115,12 @@ EditAction 1444759039045 GameOfLife.java 1337 9 15 0 EditAction 1444759042711 GameOfLife.java 1336 9 15 0 RefactoringAction 1444759048341 TestGameOfLife.java ADD void testSetupGame() METHOD EditAction 1444759051618 TestGameOfLife.java 911 2 11 6 +UnitTestCaseAction 1444759053851 TestGameOfLife.java OK +UnitTestSessionAction 1444759053851 TestGameOfLife OK +RefactoringAction 1444759061876 TestGameOfLife.java ADD void testSetupGame()/2 METHOD +RefactoringAction 1444759069399 TestGameOfLife.java RENAME testSetupGame()/2=>void testSetupGameNine() METHOD +RefactoringAction 1444759071415 TestGameOfLife.java RENAME testSetupGameNine()=>void testSetupGameNineCells() METHOD +RefactoringAction 1444759073931 TestGameOfLife.java RENAME testSetupGameNineCells()=>void testSetupGameNineCells_Ret() METHOD +RefactoringAction 1444759074947 TestGameOfLife.java RENAME testSetupGameNineCells_Ret()=>void testSetupGameNineCells_Return() METHOD +RefactoringAction 1444759077466 TestGameOfLife.java RENAME testSetupGameNineCells_Return()=>void testSetupGameNineCells_ReturnNine() METHOD +EditAction 1444759103989 TestGameOfLife.java 1152 3 15 7 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index ab048da..0bd0036 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -64,3 +64,11 @@ 1444758921725 test-last 1 2258 false 1444758921726 test-first 1 2258 true 1444758921727 test-last 1 2258 false +1444759053851 test-last 1 81 false +1444759053852 test-last 1 81 false +1444759053853 test-last 1 81 false +1444759053854 test-last 1 81 false +1444759053855 test-last 1 81 false +1444759053856 test-last 1 81 false +1444759053857 test-last 1 81 false +1444759053858 test-last 1 81 false diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index 2f900b0..5439367 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -1 +1,2 @@ 1444758921662 test-first 1 2258 true +1444759053851 test-last 1 81 false diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index 2f900b0..48b1813 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -1 +1,2 @@ 1444758921662 test-first 1 2258 true +1444759053851 test-last 1 132 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 1836c33..ae23d96 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -8,6 +8,15 @@ public class TestGameOfLife { GameOfLife gameOfLife; + @Test + public void testSetupGameNineCells_ReturnNine() { + gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(); + int numberOfCells = gameOfLife.grid.cells.size(); + + assertEquals(9, numberOfCells); + } + @Test public void testSetupGame() { gameOfLife = new GameOfLife(3); @@ -30,6 +39,8 @@ public void testCreateRandomStates(){ assertEquals(true, states[3].matches("Dead|Alive")); } + //validateGame + //nextRound //output string From e3ef59b0f0ac362706c2fb8381cd3fd45786c6f3 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:58:39 +0300 Subject: [PATCH 033/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 83c27d8..5f42114 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -124,3 +124,4 @@ RefactoringAction 1444759073931 TestGameOfLife.java RENAME testSetupGameNineCell RefactoringAction 1444759074947 TestGameOfLife.java RENAME testSetupGameNineCells_Ret()=>void testSetupGameNineCells_Return() METHOD RefactoringAction 1444759077466 TestGameOfLife.java RENAME testSetupGameNineCells_Return()=>void testSetupGameNineCells_ReturnNine() METHOD EditAction 1444759103989 TestGameOfLife.java 1152 3 15 7 +EditAction 1444759119373 TestGameOfLife.java 1148 3 15 7 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index ae23d96..40416ab 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -31,7 +31,6 @@ public void testCreateRandomStates(){ gameOfLife = new GameOfLife(2); String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); - assertEquals(4, states.length); assertEquals(true, states[0].matches("Dead|Alive")); assertEquals(true, states[1].matches("Dead|Alive")); From 38e674d82faa2f1a7a2daf01836551a2e6da9387 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:58:56 +0300 Subject: [PATCH 034/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 4 ++++ .../unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 5f42114..9267789 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -125,3 +125,7 @@ RefactoringAction 1444759074947 TestGameOfLife.java RENAME testSetupGameNineCell RefactoringAction 1444759077466 TestGameOfLife.java RENAME testSetupGameNineCells_Return()=>void testSetupGameNineCells_ReturnNine() METHOD EditAction 1444759103989 TestGameOfLife.java 1152 3 15 7 EditAction 1444759119373 TestGameOfLife.java 1148 3 15 7 +RefactoringAction 1444759131840 TestGameOfLife.java RENAME testSetupGame()=>void testSetupGameOneCell() METHOD +RefactoringAction 1444759132856 TestGameOfLife.java RENAME testSetupGameOneCell()=>void testSetupGameOneCell_() METHOD +RefactoringAction 1444759134875 TestGameOfLife.java RENAME testSetupGameOneCell_()=>void testSetupGameOneCell_Return() METHOD +EditAction 1444759136205 TestGameOfLife.java 1165 3 15 7 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 40416ab..4ad2613 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -18,7 +18,7 @@ public void testSetupGameNineCells_ReturnNine() { } @Test - public void testSetupGame() { + public void testSetupGameOneCell_ReturnOne() { gameOfLife = new GameOfLife(3); gameOfLife.setupGame(); int numberOfCells = gameOfLife.grid.cells.size(); From 33db254aae93e8c4bb6b9600ea3358645c8516f2 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:59:00 +0300 Subject: [PATCH 035/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + .../unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 9267789..25f6dfc 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -129,3 +129,4 @@ RefactoringAction 1444759131840 TestGameOfLife.java RENAME testSetupGame()=>void RefactoringAction 1444759132856 TestGameOfLife.java RENAME testSetupGameOneCell()=>void testSetupGameOneCell_() METHOD RefactoringAction 1444759134875 TestGameOfLife.java RENAME testSetupGameOneCell_()=>void testSetupGameOneCell_Return() METHOD EditAction 1444759136205 TestGameOfLife.java 1165 3 15 7 +EditAction 1444759140103 TestGameOfLife.java 1165 3 15 7 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 4ad2613..62482f4 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -19,11 +19,11 @@ public void testSetupGameNineCells_ReturnNine() { @Test public void testSetupGameOneCell_ReturnOne() { - gameOfLife = new GameOfLife(3); + gameOfLife = new GameOfLife(1); gameOfLife.setupGame(); int numberOfCells = gameOfLife.grid.cells.size(); - assertEquals(9, numberOfCells); + assertEquals(1, numberOfCells); } @Test From 2fa2c0e140c9a9d4445b342c375c67be51afedc9 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:59:17 +0300 Subject: [PATCH 036/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ .besouro/2015101320174354/besouroEpisodes.txt | 2 ++ .besouro/2015101320174354/randomHeuristicEpisodes.txt | 1 + .besouro/2015101320174354/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 5 files changed, 8 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 25f6dfc..2a47c90 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -130,3 +130,6 @@ RefactoringAction 1444759132856 TestGameOfLife.java RENAME testSetupGameOneCell( RefactoringAction 1444759134875 TestGameOfLife.java RENAME testSetupGameOneCell_()=>void testSetupGameOneCell_Return() METHOD EditAction 1444759136205 TestGameOfLife.java 1165 3 15 7 EditAction 1444759140103 TestGameOfLife.java 1165 3 15 7 +UnitTestCaseAction 1444759141873 TestGameOfLife.java OK +UnitTestSessionAction 1444759141874 TestGameOfLife OK +EditAction 1444759156920 Grid.java 878 3 7 0 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index 0bd0036..e55b9aa 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -72,3 +72,5 @@ 1444759053856 test-last 1 81 false 1444759053857 test-last 1 81 false 1444759053858 test-last 1 81 false +1444759141874 test-addition 1 79 true +1444759141875 test-addition 1 79 true diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index 5439367..0b10979 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -1,2 +1,3 @@ 1444758921662 test-first 1 2258 true 1444759053851 test-last 1 81 false +1444759141874 test-addition 1 79 true diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index 48b1813..bc264c4 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -1,2 +1,3 @@ 1444758921662 test-first 1 2258 true 1444759053851 test-last 1 132 false +1444759141874 test-addition 1 88 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index c0700c0..6b863f4 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -34,6 +34,7 @@ public int getNumNeighbors(Cell cell) throws CustomLifeException { return numNeighbors; } + public void addCell(Cell cell) { cells.add(cell); } From 18a73a46c006c881f0ab81724d2ba30abee0ec3b Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:59:36 +0300 Subject: [PATCH 037/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 2a47c90..8cd99fa 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -133,3 +133,4 @@ EditAction 1444759140103 TestGameOfLife.java 1165 3 15 7 UnitTestCaseAction 1444759141873 TestGameOfLife.java OK UnitTestSessionAction 1444759141874 TestGameOfLife OK EditAction 1444759156920 Grid.java 878 3 7 0 +EditAction 1444759176600 GameOfLife.java 1334 9 15 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 7c851aa..0e74989 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -21,7 +21,7 @@ public void setupGame() { for (int i = 0; i < squareLength; i++){ for (int j = 0; j < squareLength; j++){ Cell cell = new Cell(i, j, states[counter]); - grid.cells.add(cell); + grid.addCell(cell); counter++; } } From d5b9a45d2fbe037b3365da9fe3e0c87dcec6b442 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 20:59:56 +0300 Subject: [PATCH 038/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ .besouro/2015101320174354/besouroEpisodes.txt | 2 ++ .besouro/2015101320174354/randomHeuristicEpisodes.txt | 1 + .besouro/2015101320174354/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 3 +-- 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 8cd99fa..f9778d8 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -134,3 +134,6 @@ UnitTestCaseAction 1444759141873 TestGameOfLife.java OK UnitTestSessionAction 1444759141874 TestGameOfLife OK EditAction 1444759156920 Grid.java 878 3 7 0 EditAction 1444759176600 GameOfLife.java 1334 9 15 0 +UnitTestCaseAction 1444759179045 TestGameOfLife.java OK +UnitTestSessionAction 1444759179045 TestGameOfLife OK +EditAction 1444759196108 GameOfLife.java 1332 9 15 0 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index e55b9aa..c6faff2 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -74,3 +74,5 @@ 1444759053858 test-last 1 81 false 1444759141874 test-addition 1 79 true 1444759141875 test-addition 1 79 true +1444759179045 refactoring 2A 22 true +1444759179046 refactoring 2A 22 true diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index 0b10979..9436087 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -1,3 +1,4 @@ 1444758921662 test-first 1 2258 true 1444759053851 test-last 1 81 false 1444759141874 test-addition 1 79 true +1444759179045 refactoring 2A 22 true diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index bc264c4..a9708e9 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -1,3 +1,4 @@ 1444758921662 test-first 1 2258 true 1444759053851 test-last 1 132 false 1444759141874 test-addition 1 88 false +1444759179045 refactoring 2A 37 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 0e74989..5d35756 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -24,8 +24,7 @@ public void setupGame() { grid.addCell(cell); counter++; } - } - + } } public int getNumberOfCells() { From ca4381dd52dcb60d55eaef152e1916cb2dc2bd1c Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:00:49 +0300 Subject: [PATCH 039/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + .../unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index f9778d8..7c28c88 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -137,3 +137,4 @@ EditAction 1444759176600 GameOfLife.java 1334 9 15 0 UnitTestCaseAction 1444759179045 TestGameOfLife.java OK UnitTestSessionAction 1444759179045 TestGameOfLife OK EditAction 1444759196108 GameOfLife.java 1332 9 15 0 +EditAction 1444759249577 TestGameOfLife.java 1160 3 15 7 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 62482f4..61df191 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -40,7 +40,9 @@ public void testCreateRandomStates(){ //validateGame - //nextRound + + + //output string From cd571dea92e0a08ecab3dd6f54119eb37956ffae Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:03:12 +0300 Subject: [PATCH 040/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 7c28c88..0bc993f 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -138,3 +138,7 @@ UnitTestCaseAction 1444759179045 TestGameOfLife.java OK UnitTestSessionAction 1444759179045 TestGameOfLife OK EditAction 1444759196108 GameOfLife.java 1332 9 15 0 EditAction 1444759249577 TestGameOfLife.java 1160 3 15 7 +RefactoringAction 1444759286695 TestGameOfLife.java ADD void test FIELD +RefactoringAction 1444759313731 TestGameOfLife.java RENAME test=>void testPrintGame() METHOD +RefactoringAction 1444759382277 GameOfLife.java RENAME setupGame()=>void setupGame(String METHOD +EditAction 1444759392006 GameOfLife.java 1292 9 14 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 5d35756..23c33d6 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -13,9 +13,8 @@ public GameOfLife(int squareLength){ } - public void setupGame() { - grid = new Grid(squareLength); - String[] states = createRandomStates(numberOfCells); + public void setupGame(String[] states) { + grid = new Grid(squareLength); int counter = 0; for (int i = 0; i < squareLength; i++){ From c828acbd5bd6154e12132a52a60cc2e4779fdc25 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:04:35 +0300 Subject: [PATCH 041/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ .../tol/sqatlab/gameoflife/test/TestGameOfLife.java | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0bc993f..a7bec57 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -142,3 +142,6 @@ RefactoringAction 1444759286695 TestGameOfLife.java ADD void test FIELD RefactoringAction 1444759313731 TestGameOfLife.java RENAME test=>void testPrintGame() METHOD RefactoringAction 1444759382277 GameOfLife.java RENAME setupGame()=>void setupGame(String METHOD EditAction 1444759392006 GameOfLife.java 1292 9 14 0 +CompilationAction 1444759392284 TestGameOfLife.java +RefactoringAction 1444759404894 TestGameOfLife.java REMOVE testPrintGame() METHOD +EditAction 1444759475251 TestGameOfLife.java 1259 3 15 7 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 61df191..b163ca3 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -20,7 +20,7 @@ public void testSetupGameNineCells_ReturnNine() { @Test public void testSetupGameOneCell_ReturnOne() { gameOfLife = new GameOfLife(1); - gameOfLife.setupGame(); + gameOfLife.setupGame(createRandomStates(gameOfLife.numberOfCells)); int numberOfCells = gameOfLife.grid.cells.size(); assertEquals(1, numberOfCells); @@ -40,10 +40,12 @@ public void testCreateRandomStates(){ //validateGame + //nextRound - - //output string - +// @Test +// public void testPrintGame(){ +// gameOfLife +// } } From 45284f39d7c2b0c098703ebec2d9dced8bfd6972 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:05:06 +0300 Subject: [PATCH 042/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 5 +++++ .../unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index a7bec57..74968a5 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -145,3 +145,8 @@ EditAction 1444759392006 GameOfLife.java 1292 9 14 0 CompilationAction 1444759392284 TestGameOfLife.java RefactoringAction 1444759404894 TestGameOfLife.java REMOVE testPrintGame() METHOD EditAction 1444759475251 TestGameOfLife.java 1259 3 15 7 +CompilationAction 1444759475654 TestGameOfLife.java +CompilationAction 1444759475654 TestGameOfLife.java +CompilationAction 1444759493950 TestGameOfLife.java +CompilationAction 1444759494113 TestGameOfLife.java +EditAction 1444759506665 TestGameOfLife.java 1335 3 15 7 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index b163ca3..cac0e8a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -11,7 +11,7 @@ public class TestGameOfLife { @Test public void testSetupGameNineCells_ReturnNine() { gameOfLife = new GameOfLife(3); - gameOfLife.setupGame(); + gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); int numberOfCells = gameOfLife.grid.cells.size(); assertEquals(9, numberOfCells); @@ -20,7 +20,7 @@ public void testSetupGameNineCells_ReturnNine() { @Test public void testSetupGameOneCell_ReturnOne() { gameOfLife = new GameOfLife(1); - gameOfLife.setupGame(createRandomStates(gameOfLife.numberOfCells)); + gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); int numberOfCells = gameOfLife.grid.cells.size(); assertEquals(1, numberOfCells); From 2d5328ed1ace18d539f1e6de72451be039fcd77f Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:05:09 +0300 Subject: [PATCH 043/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 74968a5..4999793 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -150,3 +150,4 @@ CompilationAction 1444759475654 TestGameOfLife.java CompilationAction 1444759493950 TestGameOfLife.java CompilationAction 1444759494113 TestGameOfLife.java EditAction 1444759506665 TestGameOfLife.java 1335 3 15 7 +EditAction 1444759509577 GameOfLife.java 1299 9 14 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 23c33d6..741a853 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -3,7 +3,7 @@ import java.util.Random; public class GameOfLife { - int numberOfCells; + public int numberOfCells; int squareLength; public Grid grid; From 16430f5463362550d92f8bd59c4c1c709be2abc9 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:07:56 +0300 Subject: [PATCH 044/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 12 ++++++++++ .besouro/2015101320174354/besouroEpisodes.txt | 22 +++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/2015101320174354/zorroEpisodes.txt | 1 + .../gameoflife/test/TestGameOfLife.java | 17 ++++++++++---- 5 files changed, 49 insertions(+), 4 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 4999793..b69d027 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -151,3 +151,15 @@ CompilationAction 1444759493950 TestGameOfLife.java CompilationAction 1444759494113 TestGameOfLife.java EditAction 1444759506665 TestGameOfLife.java 1335 3 15 7 EditAction 1444759509577 GameOfLife.java 1299 9 14 0 +UnitTestCaseAction 1444759510268 TestGameOfLife.java OK +UnitTestSessionAction 1444759510269 TestGameOfLife OK +RefactoringAction 1444759520888 TestGameOfLife.java ADD void testPrintGame() METHOD +RefactoringAction 1444759586768 TestGameOfLife.java ADD void setup() METHOD +RefactoringAction 1444759589162 TestGameOfLife.java ADD import org.junit.Before IMPORT +RefactoringAction 1444759596828 TestGameOfLife.java REMOVE gameOfLife FIELD +RefactoringAction 1444759605885 TestGameOfLife.java ADD GameOfLife gameOfLife FIELD +RefactoringAction 1444759640357 TestGameOfLife.java ADD String FIELD +RefactoringAction 1444759644874 TestGameOfLife.java RENAME fourRandomStates=>String FIELD +RefactoringAction 1444759666419 TestGameOfLife.java REMOVE fourStates FIELD +RefactoringAction 1444759672436 TestGameOfLife.java ADD String FIELD +EditAction 1444759676344 TestGameOfLife.java 1447 5 16 7 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index c6faff2..9cdd837 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -76,3 +76,25 @@ 1444759141875 test-addition 1 79 true 1444759179045 refactoring 2A 22 true 1444759179046 refactoring 2A 22 true +1444759510269 refactoring 3 314 true +1444759510270 refactoring 2A 314 true +1444759510271 refactoring 3 314 true +1444759510272 refactoring 3 314 true +1444759510273 refactoring 3 314 true +1444759510274 refactoring 3 314 true +1444759510275 refactoring 3 314 true +1444759510276 refactoring 3 314 true +1444759510277 refactoring 3 314 true +1444759510278 refactoring 3 314 true +1444759510279 refactoring 3 314 true +1444759510280 refactoring 3 314 true +1444759510281 refactoring 3 314 true +1444759510282 refactoring 3 314 true +1444759510283 refactoring 3 314 true +1444759510284 refactoring 3 314 true +1444759510285 refactoring 3 314 true +1444759510286 refactoring 3 314 true +1444759510287 refactoring 3 314 true +1444759510288 refactoring 3 314 true +1444759510289 refactoring 3 314 true +1444759510290 refactoring 3 314 true diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index 9436087..c139392 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -2,3 +2,4 @@ 1444759053851 test-last 1 81 false 1444759141874 test-addition 1 79 true 1444759179045 refactoring 2A 22 true +1444759510269 refactoring 3 314 false diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index a9708e9..69cbc17 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -2,3 +2,4 @@ 1444759053851 test-last 1 132 false 1444759141874 test-addition 1 88 false 1444759179045 refactoring 2A 37 false +1444759510269 refactoring 3 331 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index cac0e8a..5c0b037 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -2,11 +2,20 @@ import static org.junit.Assert.*; +import org.junit.Before; import org.junit.Test; import org.unioulu.tol.sqatlab.gameoflife.GameOfLife; public class TestGameOfLife { GameOfLife gameOfLife; + String[] fourStates; + + @Before + public void setup(){ + + + } + @Test public void testSetupGameNineCells_ReturnNine() { @@ -44,8 +53,8 @@ public void testCreateRandomStates(){ -// @Test -// public void testPrintGame(){ -// gameOfLife -// } + @Test + public void testPrintGame(){ + gameOfLife = new GameOfLife(); + } } From 8969599407ecff0093df5c48872c38e742ecb10d Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:09:42 +0300 Subject: [PATCH 045/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 7 +++++++ .../tol/sqatlab/gameoflife/test/TestGameOfLife.java | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index b69d027..6d2305a 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -163,3 +163,10 @@ RefactoringAction 1444759644874 TestGameOfLife.java RENAME fourRandomStates=>Str RefactoringAction 1444759666419 TestGameOfLife.java REMOVE fourStates FIELD RefactoringAction 1444759672436 TestGameOfLife.java ADD String FIELD EditAction 1444759676344 TestGameOfLife.java 1447 5 16 7 +CompilationAction 1444759676734 TestGameOfLife.java +CompilationAction 1444759753118 TestGameOfLife.java +CompilationAction 1444759753264 TestGameOfLife.java +CompilationAction 1444759778578 TestGameOfLife.java +CompilationAction 1444759778743 TestGameOfLife.java +RefactoringAction 1444759782670 TestGameOfLife.java RENAME fourStates=>String FIELD +EditAction 1444759782881 TestGameOfLife.java 1525 5 16 7 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 5c0b037..3461103 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -8,7 +8,7 @@ public class TestGameOfLife { GameOfLife gameOfLife; - String[] fourStates; + String[] nineStates = {"Alive", "Alive", "Alive", "Dead", "Dead", "Dead", "Dead", "Dead", "Dead"}; @Before public void setup(){ From e3162b68944a4ca5da35c6e202c443e455aa7c45 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:18:56 +0300 Subject: [PATCH 046/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 6 ++++ .../tol/sqatlab/gameoflife/GameOfLife.java | 28 +++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 6d2305a..1412286 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -170,3 +170,9 @@ CompilationAction 1444759778578 TestGameOfLife.java CompilationAction 1444759778743 TestGameOfLife.java RefactoringAction 1444759782670 TestGameOfLife.java RENAME fourStates=>String FIELD EditAction 1444759782881 TestGameOfLife.java 1525 5 16 7 +CompilationAction 1444759783228 TestGameOfLife.java +RefactoringAction 1444759848319 TestGameOfLife.java RENAME testPrintGame()=>void testPrintCurrentGame() METHOD +RefactoringAction 1444759851337 TestGameOfLife.java RENAME testPrintCurrentGame()=>void testPrintCurrentGameStates() METHOD +RefactoringAction 1444759854855 TestGameOfLife.java RENAME testPrintCurrentGameStates()=>void testPrintCurrentGameState() METHOD +RefactoringAction 1444759943810 GameOfLife.java ADD Object printCurrentGameState() METHOD +EditAction 1444760336700 GameOfLife.java 2020 10 17 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 741a853..190f857 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -66,6 +66,34 @@ public String[] createRandomStates(int numberOfCells2) { return states; } + + public String printCurrentGameState() throws CustomLifeException { + String currentGameState = ""; + + for (int i = 0; i < squareLength; i++){ + for (int j = 0; j < squareLength; j++){ + Cell cell1 = new Cell(i, j, "Alive"); + Cell cell2 = new Cell(i, j, "Dead"); + + if(grid.cells.contains(cell1) && grid.cells.contains(cell2)){ + throw new CustomLifeException("Two cells at the same Coordinate!"); + } + + if(grid.cells.contains(cell1)){ + currentGameState = currentGameState + "*"; + } + if(grid.cells.contains(cell2)){ + currentGameState = currentGameState + "-"; + } + else{ + throw new CustomLifeException("Missing Cell!"); + } + } + } + + + return currentGameState; + } } From a6a1efd527f1164a369fb91b4d5eef22987a77be Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:19:25 +0300 Subject: [PATCH 047/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 1 + 2 files changed, 3 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 1412286..d98881c 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -176,3 +176,5 @@ RefactoringAction 1444759851337 TestGameOfLife.java RENAME testPrintCurrentGame( RefactoringAction 1444759854855 TestGameOfLife.java RENAME testPrintCurrentGameStates()=>void testPrintCurrentGameState() METHOD RefactoringAction 1444759943810 GameOfLife.java ADD Object printCurrentGameState() METHOD EditAction 1444760336700 GameOfLife.java 2020 10 17 0 +CompilationAction 1444760337068 TestGameOfLife.java +EditAction 1444760365753 GameOfLife.java 2069 10 17 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 190f857..d6d7aea 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -89,6 +89,7 @@ public String printCurrentGameState() throws CustomLifeException { throw new CustomLifeException("Missing Cell!"); } } + currentGameString = currentGameString + "\n"; } From 2d96cc543176e62b7c3ee5bc3aac2cb87aeb769c Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:19:38 +0300 Subject: [PATCH 048/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- .../tol/sqatlab/gameoflife/test/TestGameOfLife.java | 7 +++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index d98881c..bfc7dd4 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -178,3 +178,6 @@ RefactoringAction 1444759943810 GameOfLife.java ADD Object printCurrentGameState EditAction 1444760336700 GameOfLife.java 2020 10 17 0 CompilationAction 1444760337068 TestGameOfLife.java EditAction 1444760365753 GameOfLife.java 2069 10 17 0 +CompilationAction 1444760366142 GameOfLife.java +CompilationAction 1444760375800 GameOfLife.java +EditAction 1444760378710 TestGameOfLife.java 1651 5 18 8 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index d6d7aea..9043d27 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -89,7 +89,7 @@ public String printCurrentGameState() throws CustomLifeException { throw new CustomLifeException("Missing Cell!"); } } - currentGameString = currentGameString + "\n"; + currentGameState = currentGameState + "\n"; } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 3461103..3875ba3 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -54,7 +54,10 @@ public void testCreateRandomStates(){ @Test - public void testPrintGame(){ - gameOfLife = new GameOfLife(); + public void testPrintCurrentGameState(){ + gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(nineStates); + + assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); } } From 411f1689273899892b57d6363a4a8f411cefef74 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:20:42 +0300 Subject: [PATCH 049/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 6 ++++++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 1 + .../unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index bfc7dd4..5fb956e 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -181,3 +181,9 @@ EditAction 1444760365753 GameOfLife.java 2069 10 17 0 CompilationAction 1444760366142 GameOfLife.java CompilationAction 1444760375800 GameOfLife.java EditAction 1444760378710 TestGameOfLife.java 1651 5 18 8 +CompilationAction 1444760379087 TestGameOfLife.java +RefactoringAction 1444760383135 TestGameOfLife.java ADD import org.unioulu.tol.sqatlab.gameoflife.CustomLifeException IMPORT +CompilationAction 1444760385911 TestGameOfLife.java +UnitTestCaseAction 1444760388168 TestGameOfLife.java FAIL +UnitTestSessionAction 1444760388168 TestGameOfLife FAIL +EditAction 1444760442769 GameOfLife.java 2104 10 17 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 9043d27..2b3649d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -75,6 +75,7 @@ public String printCurrentGameState() throws CustomLifeException { Cell cell1 = new Cell(i, j, "Alive"); Cell cell2 = new Cell(i, j, "Dead"); + System.out.println(i + " " + j); if(grid.cells.contains(cell1) && grid.cells.contains(cell2)){ throw new CustomLifeException("Two cells at the same Coordinate!"); } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 3875ba3..d271e09 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -4,6 +4,7 @@ import org.junit.Before; import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.CustomLifeException; import org.unioulu.tol.sqatlab.gameoflife.GameOfLife; public class TestGameOfLife { @@ -54,7 +55,7 @@ public void testCreateRandomStates(){ @Test - public void testPrintCurrentGameState(){ + public void testPrintCurrentGameState() throws CustomLifeException{ gameOfLife = new GameOfLife(3); gameOfLife.setupGame(nineStates); From a6eaceb0c648237e78f3bc3fada0d663f0c0c2df Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:21:01 +0300 Subject: [PATCH 050/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 5fb956e..3519d7e 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -187,3 +187,6 @@ CompilationAction 1444760385911 TestGameOfLife.java UnitTestCaseAction 1444760388168 TestGameOfLife.java FAIL UnitTestSessionAction 1444760388168 TestGameOfLife FAIL EditAction 1444760442769 GameOfLife.java 2104 10 17 0 +UnitTestCaseAction 1444760445398 TestGameOfLife.java FAIL +UnitTestSessionAction 1444760445399 TestGameOfLife FAIL +EditAction 1444760461836 GameOfLife.java 2103 10 17 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 2b3649d..5ae02a5 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -72,7 +72,7 @@ public String printCurrentGameState() throws CustomLifeException { for (int i = 0; i < squareLength; i++){ for (int j = 0; j < squareLength; j++){ - Cell cell1 = new Cell(i, j, "Alive"); + Cell cell = new Cell(i, j, "Alive"); Cell cell2 = new Cell(i, j, "Dead"); System.out.println(i + " " + j); From 27989fe597cec0d8a96aa74a88dd017115eba4b7 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:21:51 +0300 Subject: [PATCH 051/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 9 +++++++++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 3519d7e..53b3b1a 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -190,3 +190,12 @@ EditAction 1444760442769 GameOfLife.java 2104 10 17 0 UnitTestCaseAction 1444760445398 TestGameOfLife.java FAIL UnitTestSessionAction 1444760445399 TestGameOfLife FAIL EditAction 1444760461836 GameOfLife.java 2103 10 17 0 +CompilationAction 1444760462197 GameOfLife.java +CompilationAction 1444760474575 GameOfLife.java +CompilationAction 1444760474712 GameOfLife.java +CompilationAction 1444760494256 GameOfLife.java +CompilationAction 1444760494508 GameOfLife.java +CompilationAction 1444760497393 GameOfLife.java +UnitTestCaseAction 1444760500068 TestGameOfLife.java FAIL +UnitTestSessionAction 1444760500069 TestGameOfLife FAIL +EditAction 1444760511153 GameOfLife.java 2104 10 17 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 5ae02a5..2b3649d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -72,7 +72,7 @@ public String printCurrentGameState() throws CustomLifeException { for (int i = 0; i < squareLength; i++){ for (int j = 0; j < squareLength; j++){ - Cell cell = new Cell(i, j, "Alive"); + Cell cell1 = new Cell(i, j, "Alive"); Cell cell2 = new Cell(i, j, "Dead"); System.out.println(i + " " + j); From de6f48da71d6f68fc3629697fdaa249e20b2d0a4 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:22:44 +0300 Subject: [PATCH 052/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 53b3b1a..0d89a32 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -199,3 +199,4 @@ CompilationAction 1444760497393 GameOfLife.java UnitTestCaseAction 1444760500068 TestGameOfLife.java FAIL UnitTestSessionAction 1444760500069 TestGameOfLife FAIL EditAction 1444760511153 GameOfLife.java 2104 10 17 0 +EditAction 1444760564784 GameOfLife.java 2110 10 17 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 2b3649d..0fa5931 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -86,9 +86,9 @@ public String printCurrentGameState() throws CustomLifeException { if(grid.cells.contains(cell2)){ currentGameState = currentGameState + "-"; } - else{ - throw new CustomLifeException("Missing Cell!"); - } +// else{ +// throw new CustomLifeException("Missing Cell!"); +// } } currentGameState = currentGameState + "\n"; } From d3a3215505b28cfbd701e64d096cdb107957d7a1 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:23:10 +0300 Subject: [PATCH 053/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 + .besouro/2015101320174354/besouroEpisodes.txt | 956 ++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/2015101320174354/zorroEpisodes.txt | 7 +- .../gameoflife/test/TestGameOfLife.java | 2 +- 5 files changed, 965 insertions(+), 4 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0d89a32..49c2bab 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -200,3 +200,6 @@ UnitTestCaseAction 1444760500068 TestGameOfLife.java FAIL UnitTestSessionAction 1444760500069 TestGameOfLife FAIL EditAction 1444760511153 GameOfLife.java 2104 10 17 0 EditAction 1444760564784 GameOfLife.java 2110 10 17 0 +UnitTestCaseAction 1444760566395 TestGameOfLife.java OK +UnitTestSessionAction 1444760566395 TestGameOfLife OK +EditAction 1444760590019 TestGameOfLife.java 1743 5 18 8 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index 9cdd837..c4adf5b 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -98,3 +98,959 @@ 1444759510288 refactoring 3 314 true 1444759510289 refactoring 3 314 true 1444759510290 refactoring 3 314 true +1444760566395 test-first 1 1045 true +1444760566396 test-first 1 1045 true +1444760566397 test-first 1 1045 true +1444760566398 test-first 1 1045 true +1444760566399 test-first 1 1045 true +1444760566400 test-first 1 1045 true +1444760566401 test-first 1 1045 true +1444760566402 test-first 1 1045 true +1444760566403 test-first 1 1045 true +1444760566404 test-first 1 1045 true +1444760566405 test-first 1 1045 true +1444760566406 test-first 1 1045 true +1444760566407 test-first 1 1045 true +1444760566408 test-first 1 1045 true +1444760566409 test-first 1 1045 true +1444760566410 test-first 1 1045 true +1444760566411 test-first 1 1045 true +1444760566412 test-first 1 1045 true +1444760566413 test-first 1 1045 true +1444760566414 test-first 1 1045 true +1444760566415 test-first 1 1045 true +1444760566416 test-first 1 1045 true +1444760566417 test-first 1 1045 true +1444760566418 test-first 1 1045 true +1444760566419 test-first 1 1045 true +1444760566420 test-first 1 1045 true +1444760566421 test-first 1 1045 true +1444760566422 test-first 1 1045 true +1444760566423 test-first 1 1045 true +1444760566424 test-first 1 1045 true +1444760566425 test-first 1 1045 true +1444760566426 test-first 1 1045 true +1444760566427 test-first 1 1045 true +1444760566428 test-first 1 1045 true +1444760566429 test-first 1 1045 true +1444760566430 test-first 1 1045 true +1444760566431 test-first 1 1045 true +1444760566432 test-first 1 1045 true +1444760566433 test-first 1 1045 true +1444760566434 test-first 1 1045 true +1444760566435 test-first 1 1045 true +1444760566436 test-first 1 1045 true +1444760566437 test-first 1 1045 true +1444760566438 test-first 1 1045 true +1444760566439 test-first 1 1045 true +1444760566440 test-first 1 1045 true +1444760566441 test-first 1 1045 true +1444760566442 test-first 1 1045 true +1444760566443 test-first 1 1045 true +1444760566444 test-first 1 1045 true +1444760566445 test-first 1 1045 true +1444760566446 test-first 1 1045 true +1444760566447 test-first 1 1045 true +1444760566448 test-first 1 1045 true +1444760566449 test-first 1 1045 true +1444760566450 test-first 1 1045 true +1444760566451 test-first 1 1045 true +1444760566452 test-first 1 1045 true +1444760566453 test-first 1 1045 true +1444760566454 test-first 1 1045 true +1444760566455 test-first 1 1045 true +1444760566456 test-first 1 1045 true +1444760566457 test-first 1 1045 true +1444760566458 test-first 1 1045 true +1444760566459 test-first 1 1045 true +1444760566460 test-first 1 1045 true +1444760566461 test-first 1 1045 true +1444760566462 test-first 1 1045 true +1444760566463 test-first 1 1045 true +1444760566464 test-first 1 1045 true +1444760566465 test-first 1 1045 true +1444760566466 test-first 1 1045 true +1444760566467 test-first 1 1045 true +1444760566468 test-first 1 1045 true +1444760566469 test-first 1 1045 true +1444760566470 test-first 1 1045 true +1444760566471 test-first 1 1045 true +1444760566472 test-first 1 1045 true +1444760566473 test-first 1 1045 true +1444760566474 test-first 1 1045 true +1444760566475 test-first 1 1045 true +1444760566476 test-first 1 1045 true +1444760566477 test-first 1 1045 true +1444760566478 test-first 1 1045 true +1444760566479 test-first 1 1045 true +1444760566480 test-first 1 1045 true +1444760566481 test-first 1 1045 true +1444760566482 test-first 1 1045 true +1444760566483 test-first 1 1045 true +1444760566484 test-first 1 1045 true +1444760566485 test-first 1 1045 true +1444760566486 test-first 1 1045 true +1444760566487 test-first 1 1045 true +1444760566488 test-first 1 1045 true +1444760566489 test-first 1 1045 true +1444760566490 test-first 1 1045 true +1444760566491 test-first 1 1045 true +1444760566492 test-first 1 1045 true +1444760566493 test-first 1 1045 true +1444760566494 test-first 1 1045 true +1444760566495 test-first 1 1045 true +1444760566496 test-first 1 1045 true +1444760566497 test-first 1 1045 true +1444760566498 test-first 1 1045 true +1444760566499 test-first 1 1045 true +1444760566500 test-first 1 1045 true +1444760566501 test-first 1 1045 true +1444760566502 test-first 1 1045 true +1444760566503 test-first 1 1045 true +1444760566504 test-first 1 1045 true +1444760566505 test-first 1 1045 true +1444760566506 test-first 1 1045 true +1444760566507 test-first 1 1045 true +1444760566508 test-first 1 1045 true +1444760566509 test-first 1 1045 true +1444760566510 test-first 1 1045 true +1444760566511 test-first 1 1045 true +1444760566512 test-first 1 1045 true +1444760566513 test-first 1 1045 true +1444760566514 test-first 1 1045 true +1444760566515 test-first 1 1045 true +1444760566516 test-first 1 1045 true +1444760566517 test-first 1 1045 true +1444760566518 test-first 1 1045 true +1444760566519 test-first 1 1045 true +1444760566520 test-first 1 1045 true +1444760566521 test-first 1 1045 true +1444760566522 test-first 1 1045 true +1444760566523 test-first 1 1045 true +1444760566524 test-first 1 1045 true +1444760566525 test-first 1 1045 true +1444760566526 test-first 1 1045 true +1444760566527 test-first 1 1045 true +1444760566528 test-first 1 1045 true +1444760566529 test-first 1 1045 true +1444760566530 test-first 1 1045 true +1444760566531 test-first 1 1045 true +1444760566532 test-first 1 1045 true +1444760566533 test-first 1 1045 true +1444760566534 test-first 1 1045 true +1444760566535 test-first 1 1045 true +1444760566536 test-first 1 1045 true +1444760566537 test-first 1 1045 true +1444760566538 test-first 1 1045 true +1444760566539 test-first 1 1045 true +1444760566540 test-first 1 1045 true +1444760566541 test-first 1 1045 true +1444760566542 test-first 1 1045 true +1444760566543 test-first 1 1045 true +1444760566544 test-first 1 1045 true +1444760566545 test-first 1 1045 true +1444760566546 test-first 1 1045 true +1444760566547 test-first 1 1045 true +1444760566548 test-first 1 1045 true +1444760566549 test-first 1 1045 true +1444760566550 test-first 1 1045 true +1444760566551 test-first 1 1045 true +1444760566552 test-first 1 1045 true +1444760566553 test-first 1 1045 true +1444760566554 test-first 1 1045 true +1444760566555 test-first 1 1045 true +1444760566556 test-first 1 1045 true +1444760566557 test-first 1 1045 true +1444760566558 test-first 1 1045 true +1444760566559 test-first 1 1045 true +1444760566560 test-first 1 1045 true +1444760566561 test-first 1 1045 true +1444760566562 test-first 1 1045 true +1444760566563 test-first 1 1045 true +1444760566564 test-first 1 1045 true +1444760566565 test-first 1 1045 true +1444760566566 test-first 1 1045 true +1444760566567 test-first 1 1045 true +1444760566568 test-first 1 1045 true +1444760566569 test-first 1 1045 true +1444760566570 test-first 1 1045 true +1444760566571 test-first 1 1045 true +1444760566572 test-first 1 1045 true +1444760566573 test-first 1 1045 true +1444760566574 test-first 1 1045 true +1444760566575 test-first 1 1045 true +1444760566576 test-first 1 1045 true +1444760566577 test-first 1 1045 true +1444760566578 test-first 1 1045 true +1444760566579 test-first 1 1045 true +1444760566580 test-first 1 1045 true +1444760566581 test-first 1 1045 true +1444760566582 test-first 1 1045 true +1444760566583 test-first 1 1045 true +1444760566584 test-first 1 1045 true +1444760566585 test-first 1 1045 true +1444760566586 test-first 1 1045 true +1444760566587 test-first 1 1045 true +1444760566588 test-first 1 1045 true +1444760566589 test-first 1 1045 true +1444760566590 test-first 1 1045 true +1444760566591 test-first 1 1045 true +1444760566592 test-first 1 1045 true +1444760566593 test-first 1 1045 true +1444760566594 test-first 1 1045 true +1444760566595 test-first 1 1045 true +1444760566596 test-first 1 1045 true +1444760566597 test-first 1 1045 true +1444760566598 test-first 1 1045 true +1444760566599 test-first 1 1045 true +1444760566600 test-first 1 1045 true +1444760566601 test-first 1 1045 true +1444760566602 test-first 1 1045 true +1444760566603 test-first 1 1045 true +1444760566604 test-first 1 1045 true +1444760566605 test-first 1 1045 true +1444760566606 test-first 1 1045 true +1444760566607 test-first 1 1045 true +1444760566608 test-first 1 1045 true +1444760566609 test-first 1 1045 true +1444760566610 test-first 1 1045 true +1444760566611 test-first 1 1045 true +1444760566612 test-first 1 1045 true +1444760566613 test-first 1 1045 true +1444760566614 test-first 1 1045 true +1444760566615 test-first 1 1045 true +1444760566616 test-first 1 1045 true +1444760566617 test-first 1 1045 true +1444760566618 test-first 1 1045 true +1444760566619 test-first 1 1045 true +1444760566620 test-first 1 1045 true +1444760566621 test-first 1 1045 true +1444760566622 test-first 1 1045 true +1444760566623 test-first 1 1045 true +1444760566624 test-first 1 1045 true +1444760566625 test-first 1 1045 true +1444760566626 test-first 1 1045 true +1444760566627 test-first 1 1045 true +1444760566628 test-first 1 1045 true +1444760566629 test-first 1 1045 true +1444760566630 test-first 1 1045 true +1444760566631 test-first 1 1045 true +1444760566632 test-first 1 1045 true +1444760566633 test-first 1 1045 true +1444760566634 test-first 1 1045 true +1444760566635 test-first 1 1045 true +1444760566636 test-first 1 1045 true +1444760566637 test-first 1 1045 true +1444760566638 test-first 1 1045 true +1444760566639 test-first 1 1045 true +1444760566640 test-first 1 1045 true +1444760566641 test-first 1 1045 true +1444760566642 test-first 1 1045 true +1444760566643 test-first 1 1045 true +1444760566644 test-first 1 1045 true +1444760566645 test-first 1 1045 true +1444760566646 test-first 1 1045 true +1444760566647 test-first 1 1045 true +1444760566648 test-first 1 1045 true +1444760566649 test-first 1 1045 true +1444760566650 test-first 1 1045 true +1444760566651 test-first 1 1045 true +1444760566652 test-first 1 1045 true +1444760566653 test-first 1 1045 true +1444760566654 test-first 1 1045 true +1444760566655 test-first 1 1045 true +1444760566656 test-first 1 1045 true +1444760566657 test-first 1 1045 true +1444760566658 test-first 1 1045 true +1444760566659 test-first 1 1045 true +1444760566660 test-first 1 1045 true +1444760566661 test-first 1 1045 true +1444760566662 test-first 1 1045 true +1444760566663 test-first 1 1045 true +1444760566664 test-first 1 1045 true +1444760566665 test-first 1 1045 true +1444760566666 test-first 1 1045 true +1444760566667 test-first 1 1045 true +1444760566668 test-first 1 1045 true +1444760566669 test-first 1 1045 true +1444760566670 test-first 1 1045 true +1444760566671 test-first 1 1045 true +1444760566672 test-first 1 1045 true +1444760566673 test-first 1 1045 true +1444760566674 test-first 1 1045 true +1444760566675 test-first 1 1045 true +1444760566676 test-first 1 1045 true +1444760566677 test-first 1 1045 true +1444760566678 test-first 1 1045 true +1444760566679 test-first 1 1045 true +1444760566680 test-first 1 1045 true +1444760566681 test-first 1 1045 true +1444760566682 test-first 1 1045 true +1444760566683 test-first 1 1045 true +1444760566684 test-first 1 1045 true +1444760566685 test-first 1 1045 true +1444760566686 test-first 1 1045 true +1444760566687 test-first 1 1045 true +1444760566688 test-first 1 1045 true +1444760566689 test-first 1 1045 true +1444760566690 test-first 1 1045 true +1444760566691 test-first 1 1045 true +1444760566692 test-first 1 1045 true +1444760566693 test-first 1 1045 true +1444760566694 test-first 1 1045 true +1444760566695 test-first 1 1045 true +1444760566696 test-first 1 1045 true +1444760566697 test-first 1 1045 true +1444760566698 test-first 1 1045 true +1444760566699 test-first 1 1045 true +1444760566700 test-first 1 1045 true +1444760566701 test-first 1 1045 true +1444760566702 test-first 1 1045 true +1444760566703 test-first 1 1045 true +1444760566704 test-first 1 1045 true +1444760566705 test-first 1 1045 true +1444760566706 test-first 1 1045 true +1444760566707 test-first 1 1045 true +1444760566708 test-first 1 1045 true +1444760566709 test-first 1 1045 true +1444760566710 test-first 1 1045 true +1444760566711 test-first 1 1045 true +1444760566712 test-first 1 1045 true +1444760566713 test-first 1 1045 true +1444760566714 test-first 1 1045 true +1444760566715 test-first 1 1045 true +1444760566716 test-first 1 1045 true +1444760566717 test-first 1 1045 true +1444760566718 test-first 1 1045 true +1444760566719 test-first 1 1045 true +1444760566720 test-first 1 1045 true +1444760566721 test-first 1 1045 true +1444760566722 test-first 1 1045 true +1444760566723 test-first 1 1045 true +1444760566724 test-first 1 1045 true +1444760566725 test-first 1 1045 true +1444760566726 test-first 1 1045 true +1444760566727 test-first 1 1045 true +1444760566728 test-first 1 1045 true +1444760566729 test-first 1 1045 true +1444760566730 test-first 1 1045 true +1444760566731 test-first 1 1045 true +1444760566732 test-first 1 1045 true +1444760566733 test-first 1 1045 true +1444760566734 test-first 1 1045 true +1444760566735 test-first 1 1045 true +1444760566736 test-first 1 1045 true +1444760566737 test-first 1 1045 true +1444760566738 test-first 1 1045 true +1444760566739 test-first 1 1045 true +1444760566740 test-first 1 1045 true +1444760566741 test-first 1 1045 true +1444760566742 test-first 1 1045 true +1444760566743 test-first 1 1045 true +1444760566744 test-first 1 1045 true +1444760566745 test-first 1 1045 true +1444760566746 test-first 1 1045 true +1444760566747 test-first 1 1045 true +1444760566748 test-first 1 1045 true +1444760566749 test-first 1 1045 true +1444760566750 test-first 1 1045 true +1444760566751 test-first 1 1045 true +1444760566752 test-first 1 1045 true +1444760566753 test-first 1 1045 true +1444760566754 test-first 1 1045 true +1444760566755 test-first 1 1045 true +1444760566756 test-first 1 1045 true +1444760566757 test-first 1 1045 true +1444760566758 test-first 1 1045 true +1444760566759 test-first 1 1045 true +1444760566760 test-first 1 1045 true +1444760566761 test-first 1 1045 true +1444760566762 test-first 1 1045 true +1444760566763 test-first 1 1045 true +1444760566764 test-first 1 1045 true +1444760566765 test-first 1 1045 true +1444760566766 test-first 1 1045 true +1444760566767 test-first 1 1045 true +1444760566768 test-first 1 1045 true +1444760566769 test-first 1 1045 true +1444760566770 test-first 1 1045 true +1444760566771 test-first 1 1045 true +1444760566772 test-first 1 1045 true +1444760566773 test-first 1 1045 true +1444760566774 test-first 1 1045 true +1444760566775 test-first 1 1045 true +1444760566776 test-first 1 1045 true +1444760566777 test-first 1 1045 true +1444760566778 test-first 1 1045 true +1444760566779 test-first 1 1045 true +1444760566780 test-first 1 1045 true +1444760566781 test-first 1 1045 true +1444760566782 test-first 1 1045 true +1444760566783 test-first 1 1045 true +1444760566784 test-first 1 1045 true +1444760566785 test-first 1 1045 true +1444760566786 test-first 1 1045 true +1444760566787 test-first 1 1045 true +1444760566788 test-first 1 1045 true +1444760566789 test-first 1 1045 true +1444760566790 test-first 1 1045 true +1444760566791 test-first 1 1045 true +1444760566792 test-first 1 1045 true +1444760566793 test-first 1 1045 true +1444760566794 test-first 1 1045 true +1444760566795 test-first 1 1045 true +1444760566796 test-first 1 1045 true +1444760566797 test-first 1 1045 true +1444760566798 test-first 1 1045 true +1444760566799 test-first 1 1045 true +1444760566800 test-first 1 1045 true +1444760566801 test-first 1 1045 true +1444760566802 test-first 1 1045 true +1444760566803 test-first 1 1045 true +1444760566804 test-first 1 1045 true +1444760566805 test-first 1 1045 true +1444760566806 test-first 1 1045 true +1444760566807 test-first 1 1045 true +1444760566808 test-first 1 1045 true +1444760566809 test-first 1 1045 true +1444760566810 test-first 1 1045 true +1444760566811 test-first 1 1045 true +1444760566812 test-first 1 1045 true +1444760566813 test-first 1 1045 true +1444760566814 test-first 1 1045 true +1444760566815 test-first 1 1045 true +1444760566816 test-first 1 1045 true +1444760566817 test-first 1 1045 true +1444760566818 test-first 1 1045 true +1444760566819 test-first 1 1045 true +1444760566820 test-first 1 1045 true +1444760566821 test-first 1 1045 true +1444760566822 test-first 1 1045 true +1444760566823 test-first 1 1045 true +1444760566824 test-first 1 1045 true +1444760566825 test-first 1 1045 true +1444760566826 test-first 1 1045 true +1444760566827 test-first 1 1045 true +1444760566828 test-first 1 1045 true +1444760566829 test-first 1 1045 true +1444760566830 test-first 1 1045 true +1444760566831 test-first 1 1045 true +1444760566832 test-first 1 1045 true +1444760566833 test-first 1 1045 true +1444760566834 test-first 1 1045 true +1444760566835 test-first 1 1045 true +1444760566836 test-first 1 1045 true +1444760566837 test-first 1 1045 true +1444760566838 test-first 1 1045 true +1444760566839 test-first 1 1045 true +1444760566840 test-first 1 1045 true +1444760566841 test-first 1 1045 true +1444760566842 test-first 1 1045 true +1444760566843 test-first 1 1045 true +1444760566844 test-first 1 1045 true +1444760566845 test-first 1 1045 true +1444760566846 test-first 1 1045 true +1444760566847 test-first 1 1045 true +1444760566848 test-first 1 1045 true +1444760566849 test-first 1 1045 true +1444760566850 test-first 1 1045 true +1444760566851 test-first 1 1045 true +1444760566852 test-first 1 1045 true +1444760566853 test-first 1 1045 true +1444760566854 test-first 1 1045 true +1444760566855 test-first 1 1045 true +1444760566856 test-first 1 1045 true +1444760566857 test-first 1 1045 true +1444760566858 test-first 1 1045 true +1444760566859 test-first 1 1045 true +1444760566860 test-first 1 1045 true +1444760566861 test-first 1 1045 true +1444760566862 test-first 1 1045 true +1444760566863 test-first 1 1045 true +1444760566864 test-first 1 1045 true +1444760566865 test-first 1 1045 true +1444760566866 test-first 1 1045 true +1444760566867 test-first 1 1045 true +1444760566868 test-first 1 1045 true +1444760566869 test-first 1 1045 true +1444760566870 test-first 1 1045 true +1444760566871 test-first 1 1045 true +1444760566872 test-first 1 1045 true +1444760566873 test-first 1 1045 true +1444760566874 test-first 1 1045 true +1444760566875 test-first 1 1045 true +1444760566876 test-first 1 1045 true +1444760566877 test-first 1 1045 true +1444760566878 test-first 1 1045 true +1444760566879 test-first 1 1045 true +1444760566880 test-first 1 1045 true +1444760566881 test-first 1 1045 true +1444760566882 test-first 1 1045 true +1444760566883 test-first 1 1045 true +1444760566884 test-first 1 1045 true +1444760566885 test-first 1 1045 true +1444760566886 test-first 1 1045 true +1444760566887 test-first 1 1045 true +1444760566888 test-first 1 1045 true +1444760566889 test-first 1 1045 true +1444760566890 test-first 1 1045 true +1444760566891 test-first 1 1045 true +1444760566892 test-first 1 1045 true +1444760566893 test-first 1 1045 true +1444760566894 test-first 1 1045 true +1444760566895 test-first 1 1045 true +1444760566896 test-first 1 1045 true +1444760566897 test-first 1 1045 true +1444760566898 test-first 1 1045 true +1444760566899 test-first 1 1045 true +1444760566900 test-first 1 1045 true +1444760566901 test-first 1 1045 true +1444760566902 test-first 1 1045 true +1444760566903 test-first 1 1045 true +1444760566904 test-first 1 1045 true +1444760566905 test-first 1 1045 true +1444760566906 test-first 1 1045 true +1444760566907 test-first 1 1045 true +1444760566908 test-first 1 1045 true +1444760566909 test-first 1 1045 true +1444760566910 test-first 1 1045 true +1444760566911 test-first 1 1045 true +1444760566912 test-first 1 1045 true +1444760566913 test-first 1 1045 true +1444760566914 test-first 1 1045 true +1444760566915 test-first 1 1045 true +1444760566916 test-first 1 1045 true +1444760566917 test-first 1 1045 true +1444760566918 test-first 1 1045 true +1444760566919 test-first 1 1045 true +1444760566920 test-first 1 1045 true +1444760566921 test-first 1 1045 true +1444760566922 test-first 1 1045 true +1444760566923 test-first 1 1045 true +1444760566924 test-first 1 1045 true +1444760566925 test-first 1 1045 true +1444760566926 test-first 1 1045 true +1444760566927 test-first 1 1045 true +1444760566928 test-first 1 1045 true +1444760566929 test-first 1 1045 true +1444760566930 test-first 1 1045 true +1444760566931 test-first 1 1045 true +1444760566932 test-first 1 1045 true +1444760566933 test-first 1 1045 true +1444760566934 test-first 1 1045 true +1444760566935 test-first 1 1045 true +1444760566936 test-first 1 1045 true +1444760566937 test-first 1 1045 true +1444760566938 test-first 1 1045 true +1444760566939 test-first 1 1045 true +1444760566940 test-first 1 1045 true +1444760566941 test-first 1 1045 true +1444760566942 test-first 1 1045 true +1444760566943 test-first 1 1045 true +1444760566944 test-first 1 1045 true +1444760566945 test-first 1 1045 true +1444760566946 test-first 1 1045 true +1444760566947 test-first 1 1045 true +1444760566948 test-first 1 1045 true +1444760566949 test-first 1 1045 true +1444760566950 test-first 1 1045 true +1444760566951 test-first 1 1045 true +1444760566952 test-first 1 1045 true +1444760566953 test-first 1 1045 true +1444760566954 test-first 1 1045 true +1444760566955 test-first 1 1045 true +1444760566956 test-first 1 1045 true +1444760566957 test-first 1 1045 true +1444760566958 test-first 1 1045 true +1444760566959 test-first 1 1045 true +1444760566960 test-first 1 1045 true +1444760566961 test-first 1 1045 true +1444760566962 test-first 1 1045 true +1444760566963 test-first 1 1045 true +1444760566964 test-first 1 1045 true +1444760566965 test-first 1 1045 true +1444760566966 test-first 1 1045 true +1444760566967 test-first 1 1045 true +1444760566968 test-first 1 1045 true +1444760566969 test-first 1 1045 true +1444760566970 test-first 1 1045 true +1444760566971 test-first 1 1045 true +1444760566972 test-first 1 1045 true +1444760566973 test-first 1 1045 true +1444760566974 test-first 1 1045 true +1444760566975 test-first 1 1045 true +1444760566976 test-first 1 1045 true +1444760566977 test-first 1 1045 true +1444760566978 test-first 1 1045 true +1444760566979 test-first 1 1045 true +1444760566980 test-first 1 1045 true +1444760566981 test-first 1 1045 true +1444760566982 test-first 1 1045 true +1444760566983 test-first 1 1045 true +1444760566984 test-first 1 1045 true +1444760566985 test-first 1 1045 true +1444760566986 test-first 1 1045 true +1444760566987 test-first 1 1045 true +1444760566988 test-first 1 1045 true +1444760566989 test-first 1 1045 true +1444760566990 test-first 1 1045 true +1444760566991 test-first 1 1045 true +1444760566992 test-first 1 1045 true +1444760566993 test-first 1 1045 true +1444760566994 test-first 1 1045 true +1444760566995 test-first 1 1045 true +1444760566996 test-first 1 1045 true +1444760566997 test-first 1 1045 true +1444760566998 test-first 1 1045 true +1444760566999 test-first 1 1045 true +1444760567000 test-first 1 1045 true +1444760567001 test-first 1 1045 true +1444760567002 test-first 1 1045 true +1444760567003 test-first 1 1045 true +1444760567004 test-first 1 1045 true +1444760567005 test-first 1 1045 true +1444760567006 test-first 1 1045 true +1444760567007 test-first 1 1045 true +1444760567008 test-first 1 1045 true +1444760567009 test-first 1 1045 true +1444760567010 test-first 1 1045 true +1444760567011 test-first 1 1045 true +1444760567012 test-first 1 1045 true +1444760567013 test-first 1 1045 true +1444760567014 test-first 1 1045 true +1444760567015 test-first 1 1045 true +1444760567016 test-first 1 1045 true +1444760567017 test-first 1 1045 true +1444760567018 test-first 1 1045 true +1444760567019 test-first 1 1045 true +1444760567020 test-first 1 1045 true +1444760567021 test-first 1 1045 true +1444760567022 test-first 1 1045 true +1444760567023 test-first 1 1045 true +1444760567024 test-first 1 1045 true +1444760567025 test-first 1 1045 true +1444760567026 test-first 1 1045 true +1444760567027 test-first 1 1045 true +1444760567028 test-first 1 1045 true +1444760567029 test-first 1 1045 true +1444760567030 test-first 1 1045 true +1444760567031 test-first 1 1045 true +1444760567032 test-first 1 1045 true +1444760567033 test-first 1 1045 true +1444760567034 test-first 1 1045 true +1444760567035 test-first 1 1045 true +1444760567036 test-first 1 1045 true +1444760567037 test-first 1 1045 true +1444760567038 test-first 1 1045 true +1444760567039 test-first 1 1045 true +1444760567040 test-first 1 1045 true +1444760567041 test-first 1 1045 true +1444760567042 test-first 1 1045 true +1444760567043 test-first 1 1045 true +1444760567044 test-first 1 1045 true +1444760567045 test-first 1 1045 true +1444760567046 test-first 1 1045 true +1444760567047 test-first 1 1045 true +1444760567048 test-first 1 1045 true +1444760567049 test-first 1 1045 true +1444760567050 test-first 1 1045 true +1444760567051 test-first 1 1045 true +1444760567052 test-first 1 1045 true +1444760567053 test-first 1 1045 true +1444760567054 test-first 1 1045 true +1444760567055 test-first 1 1045 true +1444760567056 test-first 1 1045 true +1444760567057 test-first 1 1045 true +1444760567058 test-first 1 1045 true +1444760567059 test-first 1 1045 true +1444760567060 test-first 1 1045 true +1444760567061 test-first 1 1045 true +1444760567062 test-first 1 1045 true +1444760567063 test-first 1 1045 true +1444760567064 test-first 1 1045 true +1444760567065 test-first 1 1045 true +1444760567066 test-first 1 1045 true +1444760567067 test-first 1 1045 true +1444760567068 test-first 1 1045 true +1444760567069 test-first 1 1045 true +1444760567070 test-first 1 1045 true +1444760567071 test-first 1 1045 true +1444760567072 test-first 1 1045 true +1444760567073 test-first 1 1045 true +1444760567074 test-first 1 1045 true +1444760567075 test-first 1 1045 true +1444760567076 test-first 1 1045 true +1444760567077 test-first 1 1045 true +1444760567078 test-first 1 1045 true +1444760567079 test-first 1 1045 true +1444760567080 test-first 1 1045 true +1444760567081 test-first 1 1045 true +1444760567082 test-first 1 1045 true +1444760567083 test-first 1 1045 true +1444760567084 test-first 1 1045 true +1444760567085 test-first 1 1045 true +1444760567086 test-first 1 1045 true +1444760567087 test-first 1 1045 true +1444760567088 test-first 1 1045 true +1444760567089 test-first 1 1045 true +1444760567090 test-first 1 1045 true +1444760567091 test-first 1 1045 true +1444760567092 test-first 1 1045 true +1444760567093 test-first 1 1045 true +1444760567094 test-first 1 1045 true +1444760567095 test-first 1 1045 true +1444760567096 test-first 1 1045 true +1444760567097 test-first 1 1045 true +1444760567098 test-first 1 1045 true +1444760567099 test-first 1 1045 true +1444760567100 test-first 1 1045 true +1444760567101 test-first 1 1045 true +1444760567102 test-first 1 1045 true +1444760567103 test-first 1 1045 true +1444760567104 test-first 1 1045 true +1444760567105 test-first 1 1045 true +1444760567106 test-first 1 1045 true +1444760567107 test-first 1 1045 true +1444760567108 test-first 1 1045 true +1444760567109 test-first 1 1045 true +1444760567110 test-first 1 1045 true +1444760567111 test-first 1 1045 true +1444760567112 test-first 1 1045 true +1444760567113 test-first 1 1045 true +1444760567114 test-first 1 1045 true +1444760567115 test-first 1 1045 true +1444760567116 test-first 1 1045 true +1444760567117 test-first 1 1045 true +1444760567118 test-first 1 1045 true +1444760567119 test-first 1 1045 true +1444760567120 test-first 1 1045 true +1444760567121 test-first 1 1045 true +1444760567122 test-first 1 1045 true +1444760567123 test-first 1 1045 true +1444760567124 test-first 1 1045 true +1444760567125 test-first 1 1045 true +1444760567126 test-first 1 1045 true +1444760567127 test-first 1 1045 true +1444760567128 test-first 1 1045 true +1444760567129 test-first 1 1045 true +1444760567130 test-first 1 1045 true +1444760567131 test-first 1 1045 true +1444760567132 test-first 1 1045 true +1444760567133 test-first 1 1045 true +1444760567134 test-first 1 1045 true +1444760567135 test-first 1 1045 true +1444760567136 test-first 1 1045 true +1444760567137 test-first 1 1045 true +1444760567138 test-first 1 1045 true +1444760567139 test-first 1 1045 true +1444760567140 test-first 1 1045 true +1444760567141 test-first 1 1045 true +1444760567142 test-first 1 1045 true +1444760567143 test-first 1 1045 true +1444760567144 test-first 1 1045 true +1444760567145 test-first 1 1045 true +1444760567146 test-first 1 1045 true +1444760567147 test-first 1 1045 true +1444760567148 test-first 1 1045 true +1444760567149 test-first 1 1045 true +1444760567150 test-first 1 1045 true +1444760567151 test-first 1 1045 true +1444760567152 test-first 1 1045 true +1444760567153 test-first 1 1045 true +1444760567154 test-first 1 1045 true +1444760567155 test-first 1 1045 true +1444760567156 test-first 1 1045 true +1444760567157 test-first 1 1045 true +1444760567158 test-first 1 1045 true +1444760567159 test-first 1 1045 true +1444760567160 test-first 1 1045 true +1444760567161 test-first 1 1045 true +1444760567162 test-first 1 1045 true +1444760567163 test-first 1 1045 true +1444760567164 test-first 1 1045 true +1444760567165 test-first 1 1045 true +1444760567166 test-first 1 1045 true +1444760567167 test-first 1 1045 true +1444760567168 test-first 1 1045 true +1444760567169 test-first 1 1045 true +1444760567170 test-first 1 1045 true +1444760567171 test-first 1 1045 true +1444760567172 test-first 1 1045 true +1444760567173 test-first 1 1045 true +1444760567174 test-first 1 1045 true +1444760567175 test-first 1 1045 true +1444760567176 test-first 1 1045 true +1444760567177 test-first 1 1045 true +1444760567178 test-first 1 1045 true +1444760567179 test-first 1 1045 true +1444760567180 test-first 1 1045 true +1444760567181 test-first 1 1045 true +1444760567182 test-first 1 1045 true +1444760567183 test-first 1 1045 true +1444760567184 test-first 1 1045 true +1444760567185 test-first 1 1045 true +1444760567186 test-first 1 1045 true +1444760567187 test-first 1 1045 true +1444760567188 test-first 1 1045 true +1444760567189 test-first 1 1045 true +1444760567190 test-first 1 1045 true +1444760567191 test-first 1 1045 true +1444760567192 test-first 1 1045 true +1444760567193 test-first 1 1045 true +1444760567194 test-first 1 1045 true +1444760567195 test-first 1 1045 true +1444760567196 test-first 1 1045 true +1444760567197 test-first 1 1045 true +1444760567198 test-first 1 1045 true +1444760567199 test-first 1 1045 true +1444760567200 test-first 1 1045 true +1444760567201 test-first 1 1045 true +1444760567202 test-first 1 1045 true +1444760567203 test-first 1 1045 true +1444760567204 test-first 1 1045 true +1444760567205 test-first 1 1045 true +1444760567206 test-first 1 1045 true +1444760567207 test-first 1 1045 true +1444760567208 test-first 1 1045 true +1444760567209 test-first 1 1045 true +1444760567210 test-first 1 1045 true +1444760567211 test-first 1 1045 true +1444760567212 test-first 1 1045 true +1444760567213 test-first 1 1045 true +1444760567214 test-first 1 1045 true +1444760567215 test-first 1 1045 true +1444760567216 test-first 1 1045 true +1444760567217 test-first 1 1045 true +1444760567218 test-first 1 1045 true +1444760567219 test-first 1 1045 true +1444760567220 test-first 1 1045 true +1444760567221 test-first 1 1045 true +1444760567222 test-first 1 1045 true +1444760567223 test-first 1 1045 true +1444760567224 test-first 1 1045 true +1444760567225 test-first 1 1045 true +1444760567226 test-first 1 1045 true +1444760567227 test-first 1 1045 true +1444760567228 test-first 1 1045 true +1444760567229 test-first 1 1045 true +1444760567230 test-first 1 1045 true +1444760567231 test-first 1 1045 true +1444760567232 test-first 1 1045 true +1444760567233 test-first 1 1045 true +1444760567234 test-first 1 1045 true +1444760567235 test-first 1 1045 true +1444760567236 test-first 1 1045 true +1444760567237 test-first 1 1045 true +1444760567238 test-first 1 1045 true +1444760567239 test-first 1 1045 true +1444760567240 test-first 1 1045 true +1444760567241 test-first 1 1045 true +1444760567242 test-first 1 1045 true +1444760567243 test-first 1 1045 true +1444760567244 test-first 1 1045 true +1444760567245 test-first 1 1045 true +1444760567246 test-first 1 1045 true +1444760567247 test-first 1 1045 true +1444760567248 test-first 1 1045 true +1444760567249 test-last 1 1045 false +1444760567250 test-first 1 1045 true +1444760567251 test-last 1 1045 false +1444760567252 test-first 1 1045 true +1444760567253 test-first 1 1045 true +1444760567254 test-first 1 1045 true +1444760567255 test-first 1 1045 true +1444760567256 test-first 1 1045 true +1444760567257 test-first 1 1045 true +1444760567258 test-first 1 1045 true +1444760567259 test-first 1 1045 true +1444760567260 test-first 1 1045 true +1444760567261 test-first 1 1045 true +1444760567262 test-first 1 1045 true +1444760567263 test-first 1 1045 true +1444760567264 test-first 1 1045 true +1444760567265 test-first 1 1045 true +1444760567266 test-first 1 1045 true +1444760567267 test-first 1 1045 true +1444760567268 test-first 1 1045 true +1444760567269 test-first 1 1045 true +1444760567270 test-first 1 1045 true +1444760567271 test-first 1 1045 true +1444760567272 test-first 1 1045 true +1444760567273 test-first 1 1045 true +1444760567274 test-first 1 1045 true +1444760567275 test-first 1 1045 true +1444760567276 test-first 1 1045 true +1444760567277 test-first 1 1045 true +1444760567278 test-first 1 1045 true +1444760567279 test-first 1 1045 true +1444760567280 test-first 1 1045 true +1444760567281 test-first 1 1045 true +1444760567282 test-first 1 1045 true +1444760567283 test-first 1 1045 true +1444760567284 test-first 1 1045 true +1444760567285 test-first 1 1045 true +1444760567286 test-first 1 1045 true +1444760567287 test-first 1 1045 true +1444760567288 test-first 1 1045 true +1444760567289 test-first 1 1045 true +1444760567290 test-first 1 1045 true +1444760567291 test-first 1 1045 true +1444760567292 test-first 1 1045 true +1444760567293 test-first 1 1045 true +1444760567294 test-first 1 1045 true +1444760567295 test-first 1 1045 true +1444760567296 test-first 1 1045 true +1444760567297 test-first 1 1045 true +1444760567298 test-first 1 1045 true +1444760567299 test-first 1 1045 true +1444760567300 test-first 1 1045 true +1444760567301 test-first 1 1045 true +1444760567302 test-first 1 1045 true +1444760567303 test-first 1 1045 true +1444760567304 test-first 1 1045 true +1444760567305 test-first 1 1045 true +1444760567306 test-first 1 1045 true +1444760567307 test-first 1 1045 true +1444760567308 test-first 1 1045 true +1444760567309 test-first 1 1045 true +1444760567310 test-first 1 1045 true +1444760567311 test-first 1 1045 true +1444760567312 test-first 1 1045 true +1444760567313 test-first 1 1045 true +1444760567314 test-first 1 1045 true +1444760567315 test-first 1 1045 true +1444760567316 test-first 1 1045 true +1444760567317 test-first 1 1045 true +1444760567318 test-first 1 1045 true +1444760567319 test-first 1 1045 true +1444760567320 test-first 1 1045 true +1444760567321 test-first 1 1045 true +1444760567322 test-first 1 1045 true +1444760567323 test-first 1 1045 true +1444760567324 test-first 1 1045 true +1444760567325 test-first 1 1045 true +1444760567326 test-first 1 1045 true +1444760567327 test-first 1 1045 true +1444760567328 test-first 1 1045 true +1444760567329 test-first 1 1045 true +1444760567330 test-first 1 1045 true +1444760567331 test-first 1 1045 true +1444760567332 test-first 1 1045 true +1444760567333 test-first 1 1045 true +1444760567334 test-first 1 1045 true +1444760567335 test-first 1 1045 true +1444760567336 test-first 1 1045 true +1444760567337 test-first 1 1045 true +1444760567338 test-first 1 1045 true +1444760567339 test-first 1 1045 true +1444760567340 test-first 1 1045 true +1444760567341 test-first 1 1045 true +1444760567342 test-first 1 1045 true +1444760567343 test-first 1 1045 true +1444760567344 test-first 1 1045 true +1444760567345 test-first 1 1045 true +1444760567346 test-first 1 1045 true +1444760567347 test-first 1 1045 true +1444760567348 test-first 1 1045 true +1444760567349 test-first 1 1045 true +1444760567350 test-first 1 1045 true diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index c139392..adecffd 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -3,3 +3,4 @@ 1444759141874 test-addition 1 79 true 1444759179045 refactoring 2A 22 true 1444759510269 refactoring 3 314 false +1444760566395 test-first 1 1045 true diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index 69cbc17..419c489 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -1,5 +1,6 @@ 1444758921662 test-first 1 2258 true 1444759053851 test-last 1 132 false -1444759141874 test-addition 1 88 false -1444759179045 refactoring 2A 37 false -1444759510269 refactoring 3 331 false +1444759141874 test-addition 1 88 true +1444759179045 refactoring 2A 37 true +1444759510269 refactoring 3 331 true +1444760566395 test-first 1 1056 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index d271e09..d738359 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -59,6 +59,6 @@ public void testPrintCurrentGameState() throws CustomLifeException{ gameOfLife = new GameOfLife(3); gameOfLife.setupGame(nineStates); - assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); + assertEquals("***\n---\n---\ns", gameOfLife.printCurrentGameState()); } } From fb9ad5d239c5b5f4d0bf4bcaaeac03d54b16eaca Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:24:14 +0300 Subject: [PATCH 054/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 49c2bab..e3ed5b9 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -203,3 +203,6 @@ EditAction 1444760564784 GameOfLife.java 2110 10 17 0 UnitTestCaseAction 1444760566395 TestGameOfLife.java OK UnitTestSessionAction 1444760566395 TestGameOfLife OK EditAction 1444760590019 TestGameOfLife.java 1743 5 18 8 +UnitTestCaseAction 1444760591928 TestGameOfLife.java FAIL +UnitTestSessionAction 1444760591928 TestGameOfLife FAIL +EditAction 1444760654329 GameOfLife.java 2120 10 17 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 0fa5931..d21a0db 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -80,10 +80,10 @@ public String printCurrentGameState() throws CustomLifeException { throw new CustomLifeException("Two cells at the same Coordinate!"); } - if(grid.cells.contains(cell1)){ + else if(grid.cells.contains(cell1)){ currentGameState = currentGameState + "*"; } - if(grid.cells.contains(cell2)){ + else if(grid.cells.contains(cell2)){ currentGameState = currentGameState + "-"; } // else{ From eb25ecc683a04909e8f4395e19a2a56453aa6786 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:24:19 +0300 Subject: [PATCH 055/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index e3ed5b9..b0b9a87 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -206,3 +206,4 @@ EditAction 1444760590019 TestGameOfLife.java 1743 5 18 8 UnitTestCaseAction 1444760591928 TestGameOfLife.java FAIL UnitTestSessionAction 1444760591928 TestGameOfLife FAIL EditAction 1444760654329 GameOfLife.java 2120 10 17 0 +EditAction 1444760659488 GameOfLife.java 2114 10 17 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index d21a0db..821d501 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -86,9 +86,9 @@ else if(grid.cells.contains(cell1)){ else if(grid.cells.contains(cell2)){ currentGameState = currentGameState + "-"; } -// else{ -// throw new CustomLifeException("Missing Cell!"); -// } + else{ + throw new CustomLifeException("Missing Cell!"); + } } currentGameState = currentGameState + "\n"; } From c8348e8f92fdcdeee321efd911fc6bf3eb1ca883 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:24:32 +0300 Subject: [PATCH 056/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ .../unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index b0b9a87..b8e1a98 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -207,3 +207,6 @@ UnitTestCaseAction 1444760591928 TestGameOfLife.java FAIL UnitTestSessionAction 1444760591928 TestGameOfLife FAIL EditAction 1444760654329 GameOfLife.java 2120 10 17 0 EditAction 1444760659488 GameOfLife.java 2114 10 17 0 +UnitTestCaseAction 1444760661552 TestGameOfLife.java FAIL +UnitTestSessionAction 1444760661553 TestGameOfLife FAIL +EditAction 1444760672807 TestGameOfLife.java 1742 5 18 8 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index d738359..d271e09 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -59,6 +59,6 @@ public void testPrintCurrentGameState() throws CustomLifeException{ gameOfLife = new GameOfLife(3); gameOfLife.setupGame(nineStates); - assertEquals("***\n---\n---\ns", gameOfLife.printCurrentGameState()); + assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); } } From d9567c7a022455266ba34a67e5884822d4100706 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:24:59 +0300 Subject: [PATCH 057/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ .besouro/2015101320174354/besouroEpisodes.txt | 1 + .besouro/2015101320174354/randomHeuristicEpisodes.txt | 1 + .besouro/2015101320174354/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 1 - 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index b8e1a98..c81bf88 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -210,3 +210,6 @@ EditAction 1444760659488 GameOfLife.java 2114 10 17 0 UnitTestCaseAction 1444760661552 TestGameOfLife.java FAIL UnitTestSessionAction 1444760661553 TestGameOfLife FAIL EditAction 1444760672807 TestGameOfLife.java 1742 5 18 8 +UnitTestCaseAction 1444760674672 TestGameOfLife.java OK +UnitTestSessionAction 1444760674672 TestGameOfLife OK +EditAction 1444760699851 GameOfLife.java 2077 10 17 0 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index c4adf5b..c3f356d 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -1054,3 +1054,4 @@ 1444760567348 test-first 1 1045 true 1444760567349 test-first 1 1045 true 1444760567350 test-first 1 1045 true +1444760674672 refactoring 2A 84 true diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index adecffd..da06707 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -4,3 +4,4 @@ 1444759179045 refactoring 2A 22 true 1444759510269 refactoring 3 314 false 1444760566395 test-first 1 1045 true +1444760674672 refactoring 2A 84 false diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index 419c489..22cb223 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -4,3 +4,4 @@ 1444759179045 refactoring 2A 37 true 1444759510269 refactoring 3 331 true 1444760566395 test-first 1 1056 true +1444760674672 refactoring 2A 108 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 821d501..df93f16 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -75,7 +75,6 @@ public String printCurrentGameState() throws CustomLifeException { Cell cell1 = new Cell(i, j, "Alive"); Cell cell2 = new Cell(i, j, "Dead"); - System.out.println(i + " " + j); if(grid.cells.contains(cell1) && grid.cells.contains(cell2)){ throw new CustomLifeException("Two cells at the same Coordinate!"); } From 53c0b023439c7fde1ca594808cb856788a4e20e3 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:25:09 +0300 Subject: [PATCH 058/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index c81bf88..42d0e42 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -213,3 +213,4 @@ EditAction 1444760672807 TestGameOfLife.java 1742 5 18 8 UnitTestCaseAction 1444760674672 TestGameOfLife.java OK UnitTestSessionAction 1444760674672 TestGameOfLife OK EditAction 1444760699851 GameOfLife.java 2077 10 17 0 +EditAction 1444760709185 GameOfLife.java 2071 10 17 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index df93f16..ee930df 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -91,8 +91,6 @@ else if(grid.cells.contains(cell2)){ } currentGameState = currentGameState + "\n"; } - - return currentGameState; } From 8d150ebdf6b7e009eb2968b6ad7637730b7ca69e Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:31:48 +0300 Subject: [PATCH 059/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 6 ++++++ .besouro/2015101320174354/besouroEpisodes.txt | 1 + .besouro/2015101320174354/randomHeuristicEpisodes.txt | 1 + .besouro/2015101320174354/zorroEpisodes.txt | 1 + .../tol/sqatlab/gameoflife/test/TestGameOfLife.java | 10 +++++++++- 5 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 42d0e42..5b9015e 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -214,3 +214,9 @@ UnitTestCaseAction 1444760674672 TestGameOfLife.java OK UnitTestSessionAction 1444760674672 TestGameOfLife OK EditAction 1444760699851 GameOfLife.java 2077 10 17 0 EditAction 1444760709185 GameOfLife.java 2071 10 17 0 +UnitTestCaseAction 1444760873384 TestGameOfLife.java OK +UnitTestSessionAction 1444760873385 TestGameOfLife OK +RefactoringAction 1444760927105 TestGameOfLife.java ADD void testDoOneRound() METHOD +RefactoringAction 1444760977021 GameOfLife.java ADD void doOneRound() METHOD +RefactoringAction 1444761065315 GameOfLife.java ADD import java.util.Set IMPORT +EditAction 1444761108557 TestGameOfLife.java 1979 6 22 9 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index c3f356d..f2faf2b 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -1055,3 +1055,4 @@ 1444760567349 test-first 1 1045 true 1444760567350 test-first 1 1045 true 1444760674672 refactoring 2A 84 true +1444760873385 refactoring 2A 173 true diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index da06707..f27b439 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -5,3 +5,4 @@ 1444759510269 refactoring 3 314 false 1444760566395 test-first 1 1045 true 1444760674672 refactoring 2A 84 false +1444760873385 refactoring 2A 173 true diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index 22cb223..73ef776 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -5,3 +5,4 @@ 1444759510269 refactoring 3 331 true 1444760566395 test-first 1 1056 true 1444760674672 refactoring 2A 108 true +1444760873385 refactoring 2A 198 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index d271e09..a1c029a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -50,7 +50,15 @@ public void testCreateRandomStates(){ //validateGame - //nextRound + @Test + public void testDoOneRound() throws CustomLifeException{ + gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(nineStates); + + gameOfLife.doOneRound(); + + assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); + } From 88749b0146ccdfb735dab9847027c62923ca03d3 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:40:38 +0300 Subject: [PATCH 060/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ .../tol/sqatlab/gameoflife/GameOfLife.java | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 5b9015e..59af71a 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -220,3 +220,6 @@ RefactoringAction 1444760927105 TestGameOfLife.java ADD void testDoOneRound() ME RefactoringAction 1444760977021 GameOfLife.java ADD void doOneRound() METHOD RefactoringAction 1444761065315 GameOfLife.java ADD import java.util.Set IMPORT EditAction 1444761108557 TestGameOfLife.java 1979 6 22 9 +CompilationAction 1444761108922 TestGameOfLife.java +RefactoringAction 1444761525157 GameOfLife.java ADD import java.util.Iterator IMPORT +EditAction 1444761638877 GameOfLife.java 2394 11 20 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index ee930df..9b21de2 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,6 +1,8 @@ package org.unioulu.tol.sqatlab.gameoflife; +import java.util.Iterator; import java.util.Random; +import java.util.Set; public class GameOfLife { public int numberOfCells; @@ -93,6 +95,20 @@ else if(grid.cells.contains(cell2)){ } return currentGameState; } + + public void doOneRound() { + Set newCells; + + Iterator it = grid.cells.iterator(); + + while(it.hasNext()){ + Cell cell = (Cell) it.next(); + int amountOfAliveNeighbours = grid.getNumNeighbors(cell); + cell.nextIteration(amountOfAliveNeighbours); + } + + + } } From 0ff41ba38c81d24f4490e86dd773854880b4d019 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:44:56 +0300 Subject: [PATCH 061/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 4 ++++ .../unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 12 ++++++++---- .../tol/sqatlab/gameoflife/test/TestGameOfLife.java | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 59af71a..ec8b6ba 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -223,3 +223,7 @@ EditAction 1444761108557 TestGameOfLife.java 1979 6 22 9 CompilationAction 1444761108922 TestGameOfLife.java RefactoringAction 1444761525157 GameOfLife.java ADD import java.util.Iterator IMPORT EditAction 1444761638877 GameOfLife.java 2394 11 20 0 +CompilationAction 1444761639315 GameOfLife.java +RefactoringAction 1444761750917 GameOfLife.java ADD import java.util.HashSet IMPORT +CompilationAction 1444761796521 GameOfLife.java +EditAction 1444761896543 TestGameOfLife.java 1979 6 22 9 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 9b21de2..2182497 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,5 +1,6 @@ package org.unioulu.tol.sqatlab.gameoflife; +import java.util.HashSet; import java.util.Iterator; import java.util.Random; import java.util.Set; @@ -96,18 +97,21 @@ else if(grid.cells.contains(cell2)){ return currentGameState; } - public void doOneRound() { - Set newCells; + public void doOneRound() throws CustomLifeException { + Set newCells = new HashSet<>(); - Iterator it = grid.cells.iterator(); + Iterator it = grid.cells.iterator(); while(it.hasNext()){ Cell cell = (Cell) it.next(); int amountOfAliveNeighbours = grid.getNumNeighbors(cell); cell.nextIteration(amountOfAliveNeighbours); + + newCells.add(cell); } - + grid.cells.clear(); + grid.cells = newCells; } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index a1c029a..3b24a66 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -57,7 +57,7 @@ public void testDoOneRound() throws CustomLifeException{ gameOfLife.doOneRound(); - assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); + assertEquals("-*-\n-*-\n---\n", gameOfLife.printCurrentGameState()); } From eeb189b9774536bbcce86bc8f8be8de6c2851b6d Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:45:43 +0300 Subject: [PATCH 062/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 7 ++ .../gameoflife/test/TestGameOfLife.java | 72 +++++++++---------- 2 files changed, 43 insertions(+), 36 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index ec8b6ba..0590558 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -227,3 +227,10 @@ CompilationAction 1444761639315 GameOfLife.java RefactoringAction 1444761750917 GameOfLife.java ADD import java.util.HashSet IMPORT CompilationAction 1444761796521 GameOfLife.java EditAction 1444761896543 TestGameOfLife.java 1979 6 22 9 +UnitTestCaseAction 1444761898880 TestGameOfLife.java FAIL +UnitTestSessionAction 1444761898881 TestGameOfLife FAIL +RefactoringAction 1444761931437 TestGameOfLife.java REMOVE testPrintCurrentGameState() METHOD +RefactoringAction 1444761942461 TestGameOfLife.java REMOVE testCreateRandomStates() METHOD +RefactoringAction 1444761942463 TestGameOfLife.java REMOVE testSetupGameOneCell_ReturnOne() METHOD +RefactoringAction 1444761942465 TestGameOfLife.java REMOVE testSetupGameNineCells_ReturnNine() METHOD +EditAction 1444761943866 TestGameOfLife.java 2051 2 4 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 3b24a66..24b804e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -18,35 +18,35 @@ public void setup(){ } - @Test - public void testSetupGameNineCells_ReturnNine() { - gameOfLife = new GameOfLife(3); - gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); - int numberOfCells = gameOfLife.grid.cells.size(); - - assertEquals(9, numberOfCells); - } - - @Test - public void testSetupGameOneCell_ReturnOne() { - gameOfLife = new GameOfLife(1); - gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); - int numberOfCells = gameOfLife.grid.cells.size(); - - assertEquals(1, numberOfCells); - } - - @Test - public void testCreateRandomStates(){ - gameOfLife = new GameOfLife(2); - String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); - - assertEquals(4, states.length); - assertEquals(true, states[0].matches("Dead|Alive")); - assertEquals(true, states[1].matches("Dead|Alive")); - assertEquals(true, states[2].matches("Dead|Alive")); - assertEquals(true, states[3].matches("Dead|Alive")); - } +// @Test +// public void testSetupGameNineCells_ReturnNine() { +// gameOfLife = new GameOfLife(3); +// gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); +// int numberOfCells = gameOfLife.grid.cells.size(); +// +// assertEquals(9, numberOfCells); +// } +// +// @Test +// public void testSetupGameOneCell_ReturnOne() { +// gameOfLife = new GameOfLife(1); +// gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); +// int numberOfCells = gameOfLife.grid.cells.size(); +// +// assertEquals(1, numberOfCells); +// } +// +// @Test +// public void testCreateRandomStates(){ +// gameOfLife = new GameOfLife(2); +// String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); +// +// assertEquals(4, states.length); +// assertEquals(true, states[0].matches("Dead|Alive")); +// assertEquals(true, states[1].matches("Dead|Alive")); +// assertEquals(true, states[2].matches("Dead|Alive")); +// assertEquals(true, states[3].matches("Dead|Alive")); +// } //validateGame @@ -62,11 +62,11 @@ public void testDoOneRound() throws CustomLifeException{ - @Test - public void testPrintCurrentGameState() throws CustomLifeException{ - gameOfLife = new GameOfLife(3); - gameOfLife.setupGame(nineStates); - - assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); - } +// @Test +// public void testPrintCurrentGameState() throws CustomLifeException{ +// gameOfLife = new GameOfLife(3); +// gameOfLife.setupGame(nineStates); +// +// assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); +// } } From 8e1aa249f6faabc9ade37fddc571ecc97d823470 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:46:27 +0300 Subject: [PATCH 063/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0590558..a25fbb9 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -234,3 +234,6 @@ RefactoringAction 1444761942461 TestGameOfLife.java REMOVE testCreateRandomState RefactoringAction 1444761942463 TestGameOfLife.java REMOVE testSetupGameOneCell_ReturnOne() METHOD RefactoringAction 1444761942465 TestGameOfLife.java REMOVE testSetupGameNineCells_ReturnNine() METHOD EditAction 1444761943866 TestGameOfLife.java 2051 2 4 1 +UnitTestCaseAction 1444761945623 TestGameOfLife.java FAIL +UnitTestSessionAction 1444761945624 TestGameOfLife FAIL +EditAction 1444761986957 Grid.java 919 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 6b863f4..7716fab 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -20,6 +20,7 @@ public int getNumNeighbors(Cell cell) throws CustomLifeException { Cell neighbor = new Cell(cell.x + dx, cell.y + dy, "Alive"); if (cells.contains(neighbor)) { if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength){ + System.out.println(dx + " " + dy); throw new CustomLifeException("Tried to reach cell out of grid!"); } From 220d9a392aac45cd50a6be4133c26909472651dd Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:47:28 +0300 Subject: [PATCH 064/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index a25fbb9..c57a49e 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -237,3 +237,6 @@ EditAction 1444761943866 TestGameOfLife.java 2051 2 4 1 UnitTestCaseAction 1444761945623 TestGameOfLife.java FAIL UnitTestSessionAction 1444761945624 TestGameOfLife FAIL EditAction 1444761986957 Grid.java 919 3 7 0 +UnitTestCaseAction 1444761989887 TestGameOfLife.java FAIL +UnitTestSessionAction 1444761989888 TestGameOfLife FAIL +EditAction 1444762048238 Grid.java 934 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 7716fab..d1efbca 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -21,10 +21,11 @@ public int getNumNeighbors(Cell cell) throws CustomLifeException { if (cells.contains(neighbor)) { if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength){ System.out.println(dx + " " + dy); - throw new CustomLifeException("Tried to reach cell out of grid!"); + //throw new CustomLifeException("Tried to reach cell out of grid!"); + } + else{ + numNeighbors++; } - - numNeighbors++; } } } From 2161b5f2535a9abde5841db5cf96df13d2fe78a9 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:48:27 +0300 Subject: [PATCH 065/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index c57a49e..bc42916 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -240,3 +240,6 @@ EditAction 1444761986957 Grid.java 919 3 7 0 UnitTestCaseAction 1444761989887 TestGameOfLife.java FAIL UnitTestSessionAction 1444761989888 TestGameOfLife FAIL EditAction 1444762048238 Grid.java 934 3 7 0 +UnitTestCaseAction 1444762053289 TestGameOfLife.java FAIL +UnitTestSessionAction 1444762053290 TestGameOfLife FAIL +EditAction 1444762107126 Grid.java 886 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index d1efbca..11db14b 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -21,7 +21,7 @@ public int getNumNeighbors(Cell cell) throws CustomLifeException { if (cells.contains(neighbor)) { if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength){ System.out.println(dx + " " + dy); - //throw new CustomLifeException("Tried to reach cell out of grid!"); + //cell out of grid); } else{ numNeighbors++; From 9c0e0fd9aa2130d8f0919c29aaadf3b4b230674d Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:48:55 +0300 Subject: [PATCH 066/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index bc42916..0d68932 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -243,3 +243,6 @@ EditAction 1444762048238 Grid.java 934 3 7 0 UnitTestCaseAction 1444762053289 TestGameOfLife.java FAIL UnitTestSessionAction 1444762053290 TestGameOfLife FAIL EditAction 1444762107126 Grid.java 886 3 7 0 +UnitTestCaseAction 1444762110100 TestGameOfLife.java FAIL +UnitTestSessionAction 1444762110100 TestGameOfLife FAIL +EditAction 1444762135093 Grid.java 885 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 11db14b..50d94a8 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -20,12 +20,12 @@ public int getNumNeighbors(Cell cell) throws CustomLifeException { Cell neighbor = new Cell(cell.x + dx, cell.y + dy, "Alive"); if (cells.contains(neighbor)) { if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength){ - System.out.println(dx + " " + dy); //cell out of grid); } else{ numNeighbors++; } + System.out.println(dx + " " + dy); } } } From 013d2eea468d739320f7c19cdfce8c9c55152ad8 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:50:03 +0300 Subject: [PATCH 067/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 9 ++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0d68932..55cbae0 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -246,3 +246,6 @@ EditAction 1444762107126 Grid.java 886 3 7 0 UnitTestCaseAction 1444762110100 TestGameOfLife.java FAIL UnitTestSessionAction 1444762110100 TestGameOfLife FAIL EditAction 1444762135093 Grid.java 885 3 7 0 +UnitTestCaseAction 1444762137458 TestGameOfLife.java FAIL +UnitTestSessionAction 1444762137458 TestGameOfLife FAIL +EditAction 1444762203367 Grid.java 919 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 50d94a8..7716fab 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -20,12 +20,11 @@ public int getNumNeighbors(Cell cell) throws CustomLifeException { Cell neighbor = new Cell(cell.x + dx, cell.y + dy, "Alive"); if (cells.contains(neighbor)) { if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength){ - //cell out of grid); + System.out.println(dx + " " + dy); + throw new CustomLifeException("Tried to reach cell out of grid!"); } - else{ - numNeighbors++; - } - System.out.println(dx + " " + dy); + + numNeighbors++; } } } From 7bb5e9308f1dfec761fcc8bc901607188a046f1a Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:50:10 +0300 Subject: [PATCH 068/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 55cbae0..94a0deb 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -249,3 +249,4 @@ EditAction 1444762135093 Grid.java 885 3 7 0 UnitTestCaseAction 1444762137458 TestGameOfLife.java FAIL UnitTestSessionAction 1444762137458 TestGameOfLife FAIL EditAction 1444762203367 Grid.java 919 3 7 0 +EditAction 1444762210463 Grid.java 917 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 7716fab..74ab0df 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -22,8 +22,7 @@ public int getNumNeighbors(Cell cell) throws CustomLifeException { if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength){ System.out.println(dx + " " + dy); throw new CustomLifeException("Tried to reach cell out of grid!"); - } - + } numNeighbors++; } } From e1c3b78d394a31cf64c78c0cfb56c88701a7b8dc Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:50:38 +0300 Subject: [PATCH 069/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 94a0deb..3734f93 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -250,3 +250,4 @@ UnitTestCaseAction 1444762137458 TestGameOfLife.java FAIL UnitTestSessionAction 1444762137458 TestGameOfLife FAIL EditAction 1444762203367 Grid.java 919 3 7 0 EditAction 1444762210463 Grid.java 917 3 7 0 +EditAction 1444762238794 Grid.java 953 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 74ab0df..429fe9a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -19,7 +19,7 @@ public int getNumNeighbors(Cell cell) throws CustomLifeException { for (int dy=-1; dy<=1; dy ++) { Cell neighbor = new Cell(cell.x + dx, cell.y + dy, "Alive"); if (cells.contains(neighbor)) { - if(dx < 0 || dx >= squareLength || dy < 0 || dy >= squareLength){ + if(cell.x + dx < 0 || cell.x + dx >= squareLength || cell.y + dy < 0 || cell.y + dy >= squareLength){ System.out.println(dx + " " + dy); throw new CustomLifeException("Tried to reach cell out of grid!"); } From 275d5fde2ee6425489bce9a569be9de8e7bdd6eb Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:54:34 +0300 Subject: [PATCH 070/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 3734f93..3f9348c 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -251,3 +251,6 @@ UnitTestSessionAction 1444762137458 TestGameOfLife FAIL EditAction 1444762203367 Grid.java 919 3 7 0 EditAction 1444762210463 Grid.java 917 3 7 0 EditAction 1444762238794 Grid.java 953 3 7 0 +UnitTestCaseAction 1444762241691 TestGameOfLife.java FAIL +UnitTestSessionAction 1444762241692 TestGameOfLife FAIL +EditAction 1444762474255 GameOfLife.java 2752 11 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 2182497..81c57dc 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -104,9 +104,13 @@ public void doOneRound() throws CustomLifeException { while(it.hasNext()){ Cell cell = (Cell) it.next(); + System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + int amountOfAliveNeighbours = grid.getNumNeighbors(cell); cell.nextIteration(amountOfAliveNeighbours); + System.out.println(" x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + newCells.add(cell); } From 4bb3728dcbd3d9370a2d60243c5c3aabba43103b Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:56:06 +0300 Subject: [PATCH 071/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 3f9348c..0071840 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -254,3 +254,6 @@ EditAction 1444762238794 Grid.java 953 3 7 0 UnitTestCaseAction 1444762241691 TestGameOfLife.java FAIL UnitTestSessionAction 1444762241692 TestGameOfLife FAIL EditAction 1444762474255 GameOfLife.java 2752 11 22 0 +UnitTestCaseAction 1444762476419 TestGameOfLife.java FAIL +UnitTestSessionAction 1444762476420 TestGameOfLife FAIL +EditAction 1444762565938 Cell.java 1239 7 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 77f7614..e65980f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -24,6 +24,11 @@ public void nextIteration(int numOfLiveCells) { if (state == "Alive" && numOfLiveCells < 2){ state = "Dead"; } + // Rule 2 + if(state == "Alive" && numOfLiveCells == 2) + { + state = "Alive"; + } // Rule 3. else if(state == "Alive" && numOfLiveCells > 3){ state = "Dead"; From 59e483a2c452fe94f3ff6f5850e9354c27c2ad15 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:56:50 +0300 Subject: [PATCH 072/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0071840..b1d1d90 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -257,3 +257,4 @@ EditAction 1444762474255 GameOfLife.java 2752 11 22 0 UnitTestCaseAction 1444762476419 TestGameOfLife.java FAIL UnitTestSessionAction 1444762476420 TestGameOfLife FAIL EditAction 1444762565938 Cell.java 1239 7 21 0 +EditAction 1444762610759 Cell.java 1153 7 20 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index e65980f..77f7614 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -24,11 +24,6 @@ public void nextIteration(int numOfLiveCells) { if (state == "Alive" && numOfLiveCells < 2){ state = "Dead"; } - // Rule 2 - if(state == "Alive" && numOfLiveCells == 2) - { - state = "Alive"; - } // Rule 3. else if(state == "Alive" && numOfLiveCells > 3){ state = "Dead"; From 295de62708258f4ff9948da4959515fc55c50780 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:58:17 +0300 Subject: [PATCH 073/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 10 +++ .../gameoflife/test/TestGameOfLife.java | 79 ++++++++++--------- 2 files changed, 53 insertions(+), 36 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index b1d1d90..04795af 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -258,3 +258,13 @@ UnitTestCaseAction 1444762476419 TestGameOfLife.java FAIL UnitTestSessionAction 1444762476420 TestGameOfLife FAIL EditAction 1444762565938 Cell.java 1239 7 21 0 EditAction 1444762610759 Cell.java 1153 7 20 0 +RefactoringAction 1444762654022 TestGameOfLife.java ADD void testSetupGameNineCells_ReturnNine() METHOD +RefactoringAction 1444762658540 TestGameOfLife.java REMOVE testSetupGameNineCells_ReturnNine() METHOD +RefactoringAction 1444762674594 TestGameOfLife.java ADD void testPrintCurrentGameState() METHOD +RefactoringAction 1444762679609 TestGameOfLife.java REMOVE testPrintCurrentGameState() METHOD +RefactoringAction 1444762686145 TestGameOfLife.java ADD void testPrintCurrentGameState() METHOD +RefactoringAction 1444762691663 TestGameOfLife.java ADD void testSetupGameNineCells_ReturnNine() METHOD +RefactoringAction 1444762691665 TestGameOfLife.java ADD void testSetupGameOneCell_ReturnOne() METHOD +RefactoringAction 1444762691666 TestGameOfLife.java ADD void testCreateRandomStates() METHOD +RefactoringAction 1444762697186 TestGameOfLife.java REMOVE testDoOneRound() METHOD +EditAction 1444762697383 TestGameOfLife.java 2018 5 18 8 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 24b804e..de5f134 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -18,55 +18,62 @@ public void setup(){ } -// @Test -// public void testSetupGameNineCells_ReturnNine() { -// gameOfLife = new GameOfLife(3); -// gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); -// int numberOfCells = gameOfLife.grid.cells.size(); -// -// assertEquals(9, numberOfCells); -// } -// -// @Test -// public void testSetupGameOneCell_ReturnOne() { -// gameOfLife = new GameOfLife(1); -// gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); -// int numberOfCells = gameOfLife.grid.cells.size(); -// -// assertEquals(1, numberOfCells); -// } -// -// @Test -// public void testCreateRandomStates(){ -// gameOfLife = new GameOfLife(2); -// String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); -// -// assertEquals(4, states.length); -// assertEquals(true, states[0].matches("Dead|Alive")); -// assertEquals(true, states[1].matches("Dead|Alive")); -// assertEquals(true, states[2].matches("Dead|Alive")); -// assertEquals(true, states[3].matches("Dead|Alive")); -// } + @Test + public void testSetupGameNineCells_ReturnNine() { + gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); + int numberOfCells = gameOfLife.grid.cells.size(); + + assertEquals(9, numberOfCells); + } + + @Test + public void testSetupGameOneCell_ReturnOne() { + gameOfLife = new GameOfLife(1); + gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); + int numberOfCells = gameOfLife.grid.cells.size(); + + assertEquals(1, numberOfCells); + } + + @Test + public void testCreateRandomStates(){ + gameOfLife = new GameOfLife(2); + String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); + + assertEquals(4, states.length); + assertEquals(true, states[0].matches("Dead|Alive")); + assertEquals(true, states[1].matches("Dead|Alive")); + assertEquals(true, states[2].matches("Dead|Alive")); + assertEquals(true, states[3].matches("Dead|Alive")); + } - //validateGame @Test - public void testDoOneRound() throws CustomLifeException{ + public void testPrintCurrentGameState() throws CustomLifeException{ gameOfLife = new GameOfLife(3); gameOfLife.setupGame(nineStates); - gameOfLife.doOneRound(); - - assertEquals("-*-\n-*-\n---\n", gameOfLife.printCurrentGameState()); + assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); } + //validateGame + + + // @Test -// public void testPrintCurrentGameState() throws CustomLifeException{ +// public void testDoOneRound() throws CustomLifeException{ // gameOfLife = new GameOfLife(3); // gameOfLife.setupGame(nineStates); // -// assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); +// gameOfLife.doOneRound(); +// +// assertEquals("-*-\n-*-\n---\n", gameOfLife.printCurrentGameState()); // } + + + + } From 518c7f5ed9e00885867793ef31153c789710c681 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:58:52 +0300 Subject: [PATCH 074/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 6 + .besouro/2015101320174354/besouroEpisodes.txt | 1010 +++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/2015101320174354/zorroEpisodes.txt | 1 + .../gameoflife/test/TestGameOfLife.java | 6 - 5 files changed, 1018 insertions(+), 6 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 04795af..dfd7d9c 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -268,3 +268,9 @@ RefactoringAction 1444762691665 TestGameOfLife.java ADD void testSetupGameOneCel RefactoringAction 1444762691666 TestGameOfLife.java ADD void testCreateRandomStates() METHOD RefactoringAction 1444762697186 TestGameOfLife.java REMOVE testDoOneRound() METHOD EditAction 1444762697383 TestGameOfLife.java 2018 5 18 8 +UnitTestCaseAction 1444762699276 TestGameOfLife.java OK +UnitTestSessionAction 1444762699277 TestGameOfLife OK +RefactoringAction 1444762715728 TestGameOfLife.java REMOVE setup() METHOD +RefactoringAction 1444762730252 TestGameOfLife.java ADD void setup() METHOD +RefactoringAction 1444762732767 TestGameOfLife.java REMOVE setup() METHOD +EditAction 1444762732911 TestGameOfLife.java 1970 4 18 8 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index f2faf2b..1c80c89 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -1056,3 +1056,1013 @@ 1444760567350 test-first 1 1045 true 1444760674672 refactoring 2A 84 true 1444760873385 refactoring 2A 173 true +1444762699277 test-first 1 1772 true +1444762699278 test-first 1 1772 true +1444762699279 test-first 1 1772 true +1444762699280 test-first 1 1772 true +1444762699281 test-first 1 1772 true +1444762699282 test-first 1 1772 true +1444762699283 test-first 1 1772 true +1444762699284 test-first 1 1772 true +1444762699285 test-first 1 1772 true +1444762699286 test-first 1 1772 true +1444762699287 test-first 1 1772 true +1444762699288 test-first 1 1772 true +1444762699289 test-first 1 1772 true +1444762699290 test-first 1 1772 true +1444762699291 test-first 1 1772 true +1444762699292 test-first 1 1772 true +1444762699293 test-first 1 1772 true +1444762699294 test-first 1 1772 true +1444762699295 test-first 1 1772 true +1444762699296 test-first 1 1772 true +1444762699297 test-first 1 1772 true +1444762699298 test-first 1 1772 true +1444762699299 test-first 1 1772 true +1444762699300 test-first 1 1772 true +1444762699301 test-first 1 1772 true +1444762699302 test-first 1 1772 true +1444762699303 test-first 1 1772 true +1444762699304 test-first 1 1772 true +1444762699305 test-first 1 1772 true +1444762699306 test-first 1 1772 true +1444762699307 test-first 1 1772 true +1444762699308 test-first 1 1772 true +1444762699309 test-first 1 1772 true +1444762699310 test-first 1 1772 true +1444762699311 test-first 1 1772 true +1444762699312 test-first 1 1772 true +1444762699313 test-first 1 1772 true +1444762699314 test-first 1 1772 true +1444762699315 test-first 1 1772 true +1444762699316 test-first 1 1772 true +1444762699317 test-first 1 1772 true +1444762699318 test-first 1 1772 true +1444762699319 test-first 1 1772 true +1444762699320 test-first 1 1772 true +1444762699321 test-first 1 1772 true +1444762699322 test-first 1 1772 true +1444762699323 test-first 1 1772 true +1444762699324 test-first 1 1772 true +1444762699325 test-first 1 1772 true +1444762699326 test-first 1 1772 true +1444762699327 test-first 1 1772 true +1444762699328 test-first 1 1772 true +1444762699329 test-first 1 1772 true +1444762699330 test-first 1 1772 true +1444762699331 test-first 1 1772 true +1444762699332 test-first 1 1772 true +1444762699333 test-first 1 1772 true +1444762699334 test-first 1 1772 true +1444762699335 test-first 1 1772 true +1444762699336 test-first 1 1772 true +1444762699337 test-first 1 1772 true +1444762699338 test-first 1 1772 true +1444762699339 test-first 1 1772 true +1444762699340 test-first 1 1772 true +1444762699341 test-first 1 1772 true +1444762699342 test-first 1 1772 true +1444762699343 test-first 1 1772 true +1444762699344 test-first 1 1772 true +1444762699345 test-first 1 1772 true +1444762699346 test-first 1 1772 true +1444762699347 test-first 1 1772 true +1444762699348 test-first 1 1772 true +1444762699349 test-first 1 1772 true +1444762699350 test-first 1 1772 true +1444762699351 test-first 1 1772 true +1444762699352 test-first 1 1772 true +1444762699353 test-first 1 1772 true +1444762699354 test-first 1 1772 true +1444762699355 test-first 1 1772 true +1444762699356 test-first 1 1772 true +1444762699357 test-first 1 1772 true +1444762699358 test-first 1 1772 true +1444762699359 test-first 1 1772 true +1444762699360 test-first 1 1772 true +1444762699361 test-first 1 1772 true +1444762699362 test-first 1 1772 true +1444762699363 test-first 1 1772 true +1444762699364 test-first 1 1772 true +1444762699365 test-first 1 1772 true +1444762699366 test-first 1 1772 true +1444762699367 test-first 1 1772 true +1444762699368 test-first 1 1772 true +1444762699369 test-first 1 1772 true +1444762699370 test-first 1 1772 true +1444762699371 test-first 1 1772 true +1444762699372 test-first 1 1772 true +1444762699373 test-first 1 1772 true +1444762699374 test-first 1 1772 true +1444762699375 test-first 1 1772 true +1444762699376 test-first 1 1772 true +1444762699377 test-first 1 1772 true +1444762699378 test-first 1 1772 true +1444762699379 test-first 1 1772 true +1444762699380 test-first 1 1772 true +1444762699381 test-first 1 1772 true +1444762699382 test-first 1 1772 true +1444762699383 test-first 1 1772 true +1444762699384 test-first 1 1772 true +1444762699385 test-first 1 1772 true +1444762699386 test-first 1 1772 true +1444762699387 test-first 1 1772 true +1444762699388 test-first 1 1772 true +1444762699389 test-first 1 1772 true +1444762699390 test-first 1 1772 true +1444762699391 test-first 1 1772 true +1444762699392 test-first 1 1772 true +1444762699393 test-first 1 1772 true +1444762699394 test-first 1 1772 true +1444762699395 test-first 1 1772 true +1444762699396 test-first 1 1772 true +1444762699397 test-first 1 1772 true +1444762699398 test-first 1 1772 true +1444762699399 test-first 1 1772 true +1444762699400 test-first 1 1772 true +1444762699401 test-first 1 1772 true +1444762699402 test-first 1 1772 true +1444762699403 test-first 1 1772 true +1444762699404 test-first 1 1772 true +1444762699405 test-first 1 1772 true +1444762699406 test-first 1 1772 true +1444762699407 test-first 1 1772 true +1444762699408 test-first 1 1772 true +1444762699409 test-first 1 1772 true +1444762699410 test-first 1 1772 true +1444762699411 test-first 1 1772 true +1444762699412 test-first 1 1772 true +1444762699413 test-first 1 1772 true +1444762699414 test-first 1 1772 true +1444762699415 test-first 1 1772 true +1444762699416 test-first 1 1772 true +1444762699417 test-first 1 1772 true +1444762699418 test-first 1 1772 true +1444762699419 test-first 1 1772 true +1444762699420 test-first 1 1772 true +1444762699421 test-first 1 1772 true +1444762699422 test-first 1 1772 true +1444762699423 test-first 1 1772 true +1444762699424 test-first 1 1772 true +1444762699425 test-first 1 1772 true +1444762699426 test-first 1 1772 true +1444762699427 test-first 1 1772 true +1444762699428 test-first 1 1772 true +1444762699429 test-first 1 1772 true +1444762699430 test-first 1 1772 true +1444762699431 test-first 1 1772 true +1444762699432 test-first 1 1772 true +1444762699433 test-first 1 1772 true +1444762699434 test-first 1 1772 true +1444762699435 test-first 1 1772 true +1444762699436 test-first 1 1772 true +1444762699437 test-first 1 1772 true +1444762699438 test-first 1 1772 true +1444762699439 test-first 1 1772 true +1444762699440 test-first 1 1772 true +1444762699441 test-first 1 1772 true +1444762699442 test-first 1 1772 true +1444762699443 test-first 1 1772 true +1444762699444 test-first 1 1772 true +1444762699445 test-first 1 1772 true +1444762699446 test-first 1 1772 true +1444762699447 test-first 1 1772 true +1444762699448 test-first 1 1772 true +1444762699449 test-first 1 1772 true +1444762699450 test-first 1 1772 true +1444762699451 test-first 1 1772 true +1444762699452 test-first 1 1772 true +1444762699453 test-first 1 1772 true +1444762699454 test-first 1 1772 true +1444762699455 test-first 1 1772 true +1444762699456 test-first 1 1772 true +1444762699457 test-first 1 1772 true +1444762699458 test-first 1 1772 true +1444762699459 test-first 1 1772 true +1444762699460 test-first 1 1772 true +1444762699461 test-first 1 1772 true +1444762699462 test-first 1 1772 true +1444762699463 test-first 1 1772 true +1444762699464 test-first 1 1772 true +1444762699465 test-first 1 1772 true +1444762699466 test-first 1 1772 true +1444762699467 test-first 1 1772 true +1444762699468 test-first 1 1772 true +1444762699469 test-first 1 1772 true +1444762699470 test-first 1 1772 true +1444762699471 test-first 1 1772 true +1444762699472 test-first 1 1772 true +1444762699473 test-first 1 1772 true +1444762699474 test-first 1 1772 true +1444762699475 test-first 1 1772 true +1444762699476 test-first 1 1772 true +1444762699477 test-first 1 1772 true +1444762699478 test-first 1 1772 true +1444762699479 test-first 1 1772 true +1444762699480 test-first 1 1772 true +1444762699481 test-first 1 1772 true +1444762699482 test-first 1 1772 true +1444762699483 test-first 1 1772 true +1444762699484 test-first 1 1772 true +1444762699485 test-first 1 1772 true +1444762699486 test-first 1 1772 true +1444762699487 test-first 1 1772 true +1444762699488 test-first 1 1772 true +1444762699489 test-first 1 1772 true +1444762699490 test-first 1 1772 true +1444762699491 test-first 1 1772 true +1444762699492 test-first 1 1772 true +1444762699493 test-first 1 1772 true +1444762699494 test-first 1 1772 true +1444762699495 test-first 1 1772 true +1444762699496 test-first 1 1772 true +1444762699497 test-first 1 1772 true +1444762699498 test-first 1 1772 true +1444762699499 test-first 1 1772 true +1444762699500 test-first 1 1772 true +1444762699501 test-first 1 1772 true +1444762699502 test-first 1 1772 true +1444762699503 test-first 1 1772 true +1444762699504 test-first 1 1772 true +1444762699505 test-first 1 1772 true +1444762699506 test-first 1 1772 true +1444762699507 test-first 1 1772 true +1444762699508 test-first 1 1772 true +1444762699509 test-first 1 1772 true +1444762699510 test-first 1 1772 true +1444762699511 test-first 1 1772 true +1444762699512 test-first 1 1772 true +1444762699513 test-first 1 1772 true +1444762699514 test-first 1 1772 true +1444762699515 test-first 1 1772 true +1444762699516 test-first 1 1772 true +1444762699517 test-first 1 1772 true +1444762699518 test-first 1 1772 true +1444762699519 test-first 1 1772 true +1444762699520 test-first 1 1772 true +1444762699521 test-first 1 1772 true +1444762699522 test-first 1 1772 true +1444762699523 test-first 1 1772 true +1444762699524 test-first 1 1772 true +1444762699525 test-first 1 1772 true +1444762699526 test-first 1 1772 true +1444762699527 test-first 1 1772 true +1444762699528 test-first 1 1772 true +1444762699529 test-first 1 1772 true +1444762699530 test-first 1 1772 true +1444762699531 test-first 1 1772 true +1444762699532 test-first 1 1772 true +1444762699533 test-first 1 1772 true +1444762699534 test-first 1 1772 true +1444762699535 test-first 1 1772 true +1444762699536 test-first 1 1772 true +1444762699537 test-first 1 1772 true +1444762699538 test-first 1 1772 true +1444762699539 test-first 1 1772 true +1444762699540 test-first 1 1772 true +1444762699541 test-first 1 1772 true +1444762699542 test-first 1 1772 true +1444762699543 test-first 1 1772 true +1444762699544 test-first 1 1772 true +1444762699545 test-first 1 1772 true +1444762699546 test-first 1 1772 true +1444762699547 test-first 1 1772 true +1444762699548 test-first 1 1772 true +1444762699549 test-first 1 1772 true +1444762699550 test-first 1 1772 true +1444762699551 test-first 1 1772 true +1444762699552 test-first 1 1772 true +1444762699553 test-first 1 1772 true +1444762699554 test-first 1 1772 true +1444762699555 test-first 1 1772 true +1444762699556 test-first 1 1772 true +1444762699557 test-first 1 1772 true +1444762699558 test-first 1 1772 true +1444762699559 test-first 1 1772 true +1444762699560 test-first 1 1772 true +1444762699561 test-first 1 1772 true +1444762699562 test-first 1 1772 true +1444762699563 test-first 1 1772 true +1444762699564 test-first 1 1772 true +1444762699565 test-first 1 1772 true +1444762699566 test-first 1 1772 true +1444762699567 test-first 1 1772 true +1444762699568 test-first 1 1772 true +1444762699569 test-first 1 1772 true +1444762699570 test-first 1 1772 true +1444762699571 test-first 1 1772 true +1444762699572 test-first 1 1772 true +1444762699573 test-first 1 1772 true +1444762699574 test-first 1 1772 true +1444762699575 test-first 1 1772 true +1444762699576 test-first 1 1772 true +1444762699577 test-first 1 1772 true +1444762699578 test-first 1 1772 true +1444762699579 test-first 1 1772 true +1444762699580 test-first 1 1772 true +1444762699581 test-first 1 1772 true +1444762699582 test-first 1 1772 true +1444762699583 test-first 1 1772 true +1444762699584 test-first 1 1772 true +1444762699585 test-first 1 1772 true +1444762699586 test-first 1 1772 true +1444762699587 test-first 1 1772 true +1444762699588 test-first 1 1772 true +1444762699589 test-first 1 1772 true +1444762699590 test-first 1 1772 true +1444762699591 test-first 1 1772 true +1444762699592 test-first 1 1772 true +1444762699593 test-first 1 1772 true +1444762699594 test-first 1 1772 true +1444762699595 test-first 1 1772 true +1444762699596 test-first 1 1772 true +1444762699597 test-first 1 1772 true +1444762699598 test-first 1 1772 true +1444762699599 test-first 1 1772 true +1444762699600 test-first 1 1772 true +1444762699601 test-first 1 1772 true +1444762699602 test-first 1 1772 true +1444762699603 test-first 1 1772 true +1444762699604 test-first 1 1772 true +1444762699605 test-first 1 1772 true +1444762699606 test-first 1 1772 true +1444762699607 test-first 1 1772 true +1444762699608 test-first 1 1772 true +1444762699609 test-first 1 1772 true +1444762699610 test-first 1 1772 true +1444762699611 test-first 1 1772 true +1444762699612 test-first 1 1772 true +1444762699613 test-first 1 1772 true +1444762699614 test-first 1 1772 true +1444762699615 test-first 1 1772 true +1444762699616 test-first 1 1772 true +1444762699617 test-first 1 1772 true +1444762699618 test-first 1 1772 true +1444762699619 test-first 1 1772 true +1444762699620 test-first 1 1772 true +1444762699621 test-first 1 1772 true +1444762699622 test-first 1 1772 true +1444762699623 test-first 1 1772 true +1444762699624 test-first 1 1772 true +1444762699625 test-first 1 1772 true +1444762699626 test-first 1 1772 true +1444762699627 test-first 1 1772 true +1444762699628 test-first 1 1772 true +1444762699629 test-first 1 1772 true +1444762699630 test-first 1 1772 true +1444762699631 test-first 1 1772 true +1444762699632 test-first 1 1772 true +1444762699633 test-first 1 1772 true +1444762699634 test-first 1 1772 true +1444762699635 test-first 1 1772 true +1444762699636 test-first 1 1772 true +1444762699637 test-first 1 1772 true +1444762699638 test-first 1 1772 true +1444762699639 test-first 1 1772 true +1444762699640 test-first 1 1772 true +1444762699641 test-first 1 1772 true +1444762699642 test-first 1 1772 true +1444762699643 test-first 1 1772 true +1444762699644 test-first 1 1772 true +1444762699645 test-first 1 1772 true +1444762699646 test-first 1 1772 true +1444762699647 test-first 1 1772 true +1444762699648 test-first 1 1772 true +1444762699649 test-first 1 1772 true +1444762699650 test-first 1 1772 true +1444762699651 test-first 1 1772 true +1444762699652 test-first 1 1772 true +1444762699653 test-first 1 1772 true +1444762699654 test-first 1 1772 true +1444762699655 test-first 1 1772 true +1444762699656 test-first 1 1772 true +1444762699657 test-first 1 1772 true +1444762699658 test-first 1 1772 true +1444762699659 test-first 1 1772 true +1444762699660 test-first 1 1772 true +1444762699661 test-first 1 1772 true +1444762699662 test-first 1 1772 true +1444762699663 test-first 1 1772 true +1444762699664 test-first 1 1772 true +1444762699665 test-first 1 1772 true +1444762699666 test-first 1 1772 true +1444762699667 test-first 1 1772 true +1444762699668 test-first 1 1772 true +1444762699669 test-first 1 1772 true +1444762699670 test-first 1 1772 true +1444762699671 test-first 1 1772 true +1444762699672 test-first 1 1772 true +1444762699673 test-first 1 1772 true +1444762699674 test-first 1 1772 true +1444762699675 test-first 1 1772 true +1444762699676 test-first 1 1772 true +1444762699677 test-first 1 1772 true +1444762699678 test-first 1 1772 true +1444762699679 test-first 1 1772 true +1444762699680 test-first 1 1772 true +1444762699681 test-first 1 1772 true +1444762699682 test-first 1 1772 true +1444762699683 test-first 1 1772 true +1444762699684 test-first 1 1772 true +1444762699685 test-first 1 1772 true +1444762699686 test-first 1 1772 true +1444762699687 test-first 1 1772 true +1444762699688 test-first 1 1772 true +1444762699689 test-first 1 1772 true +1444762699690 test-first 1 1772 true +1444762699691 test-first 1 1772 true +1444762699692 test-first 1 1772 true +1444762699693 test-first 1 1772 true +1444762699694 test-first 1 1772 true +1444762699695 test-first 1 1772 true +1444762699696 test-first 1 1772 true +1444762699697 test-first 1 1772 true +1444762699698 test-first 1 1772 true +1444762699699 test-first 1 1772 true +1444762699700 test-first 1 1772 true +1444762699701 test-first 1 1772 true +1444762699702 test-first 1 1772 true +1444762699703 test-first 1 1772 true +1444762699704 test-first 1 1772 true +1444762699705 test-first 1 1772 true +1444762699706 test-first 1 1772 true +1444762699707 test-first 1 1772 true +1444762699708 test-first 1 1772 true +1444762699709 test-first 1 1772 true +1444762699710 test-first 1 1772 true +1444762699711 test-first 1 1772 true +1444762699712 test-first 1 1772 true +1444762699713 test-first 1 1772 true +1444762699714 test-first 1 1772 true +1444762699715 test-first 1 1772 true +1444762699716 test-first 1 1772 true +1444762699717 test-first 1 1772 true +1444762699718 test-first 1 1772 true +1444762699719 test-first 1 1772 true +1444762699720 test-first 1 1772 true +1444762699721 test-first 1 1772 true +1444762699722 test-first 1 1772 true +1444762699723 test-first 1 1772 true +1444762699724 test-first 1 1772 true +1444762699725 test-first 1 1772 true +1444762699726 test-first 1 1772 true +1444762699727 test-first 1 1772 true +1444762699728 test-first 1 1772 true +1444762699729 test-first 1 1772 true +1444762699730 test-first 1 1772 true +1444762699731 test-first 1 1772 true +1444762699732 test-first 1 1772 true +1444762699733 test-first 1 1772 true +1444762699734 test-first 1 1772 true +1444762699735 test-first 1 1772 true +1444762699736 test-first 1 1772 true +1444762699737 test-first 1 1772 true +1444762699738 test-first 1 1772 true +1444762699739 test-first 1 1772 true +1444762699740 test-first 1 1772 true +1444762699741 test-first 1 1772 true +1444762699742 test-first 1 1772 true +1444762699743 test-first 1 1772 true +1444762699744 test-first 1 1772 true +1444762699745 test-first 1 1772 true +1444762699746 test-first 1 1772 true +1444762699747 test-first 1 1772 true +1444762699748 test-first 1 1772 true +1444762699749 test-first 1 1772 true +1444762699750 test-first 1 1772 true +1444762699751 test-first 1 1772 true +1444762699752 test-first 1 1772 true +1444762699753 test-first 1 1772 true +1444762699754 test-first 1 1772 true +1444762699755 test-first 1 1772 true +1444762699756 test-first 1 1772 true +1444762699757 test-first 1 1772 true +1444762699758 test-first 1 1772 true +1444762699759 test-first 1 1772 true +1444762699760 test-first 1 1772 true +1444762699761 test-first 1 1772 true +1444762699762 test-first 1 1772 true +1444762699763 test-first 1 1772 true +1444762699764 test-first 1 1772 true +1444762699765 test-first 1 1772 true +1444762699766 test-first 1 1772 true +1444762699767 test-first 1 1772 true +1444762699768 test-first 1 1772 true +1444762699769 test-first 1 1772 true +1444762699770 test-first 1 1772 true +1444762699771 test-first 1 1772 true +1444762699772 test-first 1 1772 true +1444762699773 test-first 1 1772 true +1444762699774 test-first 1 1772 true +1444762699775 test-first 1 1772 true +1444762699776 test-first 1 1772 true +1444762699777 test-first 1 1772 true +1444762699778 test-first 1 1772 true +1444762699779 test-first 1 1772 true +1444762699780 test-first 1 1772 true +1444762699781 test-first 1 1772 true +1444762699782 test-first 1 1772 true +1444762699783 test-first 1 1772 true +1444762699784 test-first 1 1772 true +1444762699785 test-first 1 1772 true +1444762699786 test-first 1 1772 true +1444762699787 test-first 1 1772 true +1444762699788 test-first 1 1772 true +1444762699789 test-first 1 1772 true +1444762699790 test-first 1 1772 true +1444762699791 test-first 1 1772 true +1444762699792 test-first 1 1772 true +1444762699793 test-first 1 1772 true +1444762699794 test-first 1 1772 true +1444762699795 test-first 1 1772 true +1444762699796 test-first 1 1772 true +1444762699797 test-first 1 1772 true +1444762699798 test-first 1 1772 true +1444762699799 test-first 1 1772 true +1444762699800 test-first 1 1772 true +1444762699801 test-first 1 1772 true +1444762699802 test-first 1 1772 true +1444762699803 test-first 1 1772 true +1444762699804 test-first 1 1772 true +1444762699805 test-first 1 1772 true +1444762699806 test-first 1 1772 true +1444762699807 test-first 1 1772 true +1444762699808 test-first 1 1772 true +1444762699809 test-first 1 1772 true +1444762699810 test-first 1 1772 true +1444762699811 test-first 1 1772 true +1444762699812 test-first 1 1772 true +1444762699813 test-first 1 1772 true +1444762699814 test-first 1 1772 true +1444762699815 test-first 1 1772 true +1444762699816 test-first 1 1772 true +1444762699817 test-first 1 1772 true +1444762699818 test-first 1 1772 true +1444762699819 test-first 1 1772 true +1444762699820 test-first 1 1772 true +1444762699821 test-first 1 1772 true +1444762699822 test-first 1 1772 true +1444762699823 test-first 1 1772 true +1444762699824 test-first 1 1772 true +1444762699825 test-first 1 1772 true +1444762699826 test-first 1 1772 true +1444762699827 test-first 1 1772 true +1444762699828 test-first 1 1772 true +1444762699829 test-first 1 1772 true +1444762699830 test-first 1 1772 true +1444762699831 test-first 1 1772 true +1444762699832 test-first 1 1772 true +1444762699833 test-first 1 1772 true +1444762699834 test-first 1 1772 true +1444762699835 test-first 1 1772 true +1444762699836 test-first 1 1772 true +1444762699837 test-first 1 1772 true +1444762699838 test-first 1 1772 true +1444762699839 test-first 1 1772 true +1444762699840 test-first 1 1772 true +1444762699841 test-first 1 1772 true +1444762699842 test-first 1 1772 true +1444762699843 test-first 1 1772 true +1444762699844 test-first 1 1772 true +1444762699845 test-first 1 1772 true +1444762699846 test-first 1 1772 true +1444762699847 test-first 1 1772 true +1444762699848 test-first 1 1772 true +1444762699849 test-first 1 1772 true +1444762699850 test-first 1 1772 true +1444762699851 test-first 1 1772 true +1444762699852 test-first 1 1772 true +1444762699853 test-first 1 1772 true +1444762699854 test-first 1 1772 true +1444762699855 test-first 1 1772 true +1444762699856 test-first 1 1772 true +1444762699857 test-first 1 1772 true +1444762699858 test-first 1 1772 true +1444762699859 test-first 1 1772 true +1444762699860 test-first 1 1772 true +1444762699861 test-first 1 1772 true +1444762699862 test-first 1 1772 true +1444762699863 test-first 1 1772 true +1444762699864 test-first 1 1772 true +1444762699865 test-first 1 1772 true +1444762699866 test-first 1 1772 true +1444762699867 test-first 1 1772 true +1444762699868 test-first 1 1772 true +1444762699869 test-first 1 1772 true +1444762699870 test-first 1 1772 true +1444762699871 test-first 1 1772 true +1444762699872 test-first 1 1772 true +1444762699873 test-first 1 1772 true +1444762699874 test-first 1 1772 true +1444762699875 test-first 1 1772 true +1444762699876 test-first 1 1772 true +1444762699877 test-first 1 1772 true +1444762699878 test-first 1 1772 true +1444762699879 test-first 1 1772 true +1444762699880 test-first 1 1772 true +1444762699881 test-first 1 1772 true +1444762699882 test-first 1 1772 true +1444762699883 test-first 1 1772 true +1444762699884 test-first 1 1772 true +1444762699885 test-first 1 1772 true +1444762699886 test-first 1 1772 true +1444762699887 test-first 1 1772 true +1444762699888 test-first 1 1772 true +1444762699889 test-first 1 1772 true +1444762699890 test-first 1 1772 true +1444762699891 test-first 1 1772 true +1444762699892 test-first 1 1772 true +1444762699893 test-first 1 1772 true +1444762699894 test-first 1 1772 true +1444762699895 test-first 1 1772 true +1444762699896 test-first 1 1772 true +1444762699897 test-first 1 1772 true +1444762699898 test-first 1 1772 true +1444762699899 test-first 1 1772 true +1444762699900 test-first 1 1772 true +1444762699901 test-first 1 1772 true +1444762699902 test-first 1 1772 true +1444762699903 test-first 1 1772 true +1444762699904 test-first 1 1772 true +1444762699905 test-first 1 1772 true +1444762699906 test-first 1 1772 true +1444762699907 test-first 1 1772 true +1444762699908 test-first 1 1772 true +1444762699909 test-first 1 1772 true +1444762699910 test-first 1 1772 true +1444762699911 test-first 1 1772 true +1444762699912 test-first 1 1772 true +1444762699913 test-first 1 1772 true +1444762699914 test-first 1 1772 true +1444762699915 test-first 1 1772 true +1444762699916 test-first 1 1772 true +1444762699917 test-first 1 1772 true +1444762699918 test-first 1 1772 true +1444762699919 test-first 1 1772 true +1444762699920 test-first 1 1772 true +1444762699921 test-first 1 1772 true +1444762699922 test-first 1 1772 true +1444762699923 test-first 1 1772 true +1444762699924 test-first 1 1772 true +1444762699925 test-first 1 1772 true +1444762699926 test-first 1 1772 true +1444762699927 test-first 1 1772 true +1444762699928 test-first 1 1772 true +1444762699929 test-first 1 1772 true +1444762699930 test-first 1 1772 true +1444762699931 test-first 1 1772 true +1444762699932 test-first 1 1772 true +1444762699933 test-first 1 1772 true +1444762699934 test-first 1 1772 true +1444762699935 test-first 1 1772 true +1444762699936 test-first 1 1772 true +1444762699937 test-first 1 1772 true +1444762699938 test-first 1 1772 true +1444762699939 test-first 1 1772 true +1444762699940 test-first 1 1772 true +1444762699941 test-first 1 1772 true +1444762699942 test-first 1 1772 true +1444762699943 test-first 1 1772 true +1444762699944 test-first 1 1772 true +1444762699945 test-first 1 1772 true +1444762699946 test-first 1 1772 true +1444762699947 test-first 1 1772 true +1444762699948 test-first 1 1772 true +1444762699949 test-first 1 1772 true +1444762699950 test-first 1 1772 true +1444762699951 test-first 1 1772 true +1444762699952 test-first 1 1772 true +1444762699953 test-first 1 1772 true +1444762699954 test-first 1 1772 true +1444762699955 test-first 1 1772 true +1444762699956 test-first 1 1772 true +1444762699957 test-first 1 1772 true +1444762699958 test-first 1 1772 true +1444762699959 test-first 1 1772 true +1444762699960 test-first 1 1772 true +1444762699961 test-first 1 1772 true +1444762699962 test-first 1 1772 true +1444762699963 test-first 1 1772 true +1444762699964 test-first 1 1772 true +1444762699965 test-first 1 1772 true +1444762699966 test-first 1 1772 true +1444762699967 test-first 1 1772 true +1444762699968 test-first 1 1772 true +1444762699969 test-first 1 1772 true +1444762699970 test-first 1 1772 true +1444762699971 test-first 1 1772 true +1444762699972 test-first 1 1772 true +1444762699973 test-first 1 1772 true +1444762699974 test-first 1 1772 true +1444762699975 test-first 1 1772 true +1444762699976 test-first 1 1772 true +1444762699977 test-first 1 1772 true +1444762699978 test-first 1 1772 true +1444762699979 test-first 1 1772 true +1444762699980 test-first 1 1772 true +1444762699981 test-first 1 1772 true +1444762699982 test-first 1 1772 true +1444762699983 test-first 1 1772 true +1444762699984 test-first 1 1772 true +1444762699985 test-first 1 1772 true +1444762699986 test-first 1 1772 true +1444762699987 test-first 1 1772 true +1444762699988 test-first 1 1772 true +1444762699989 test-first 1 1772 true +1444762699990 test-first 1 1772 true +1444762699991 test-first 1 1772 true +1444762699992 test-first 1 1772 true +1444762699993 test-first 1 1772 true +1444762699994 test-first 1 1772 true +1444762699995 test-first 1 1772 true +1444762699996 test-first 1 1772 true +1444762699997 test-first 1 1772 true +1444762699998 test-first 1 1772 true +1444762699999 test-first 1 1772 true +1444762700000 test-first 1 1772 true +1444762700001 test-first 1 1772 true +1444762700002 test-first 1 1772 true +1444762700003 test-first 1 1772 true +1444762700004 test-first 1 1772 true +1444762700005 test-first 1 1772 true +1444762700006 test-first 1 1772 true +1444762700007 test-first 1 1772 true +1444762700008 test-first 1 1772 true +1444762700009 test-first 1 1772 true +1444762700010 test-first 1 1772 true +1444762700011 test-first 1 1772 true +1444762700012 test-first 1 1772 true +1444762700013 test-first 1 1772 true +1444762700014 test-first 1 1772 true +1444762700015 test-first 1 1772 true +1444762700016 test-first 1 1772 true +1444762700017 test-first 1 1772 true +1444762700018 test-first 1 1772 true +1444762700019 test-first 1 1772 true +1444762700020 test-first 1 1772 true +1444762700021 test-first 1 1772 true +1444762700022 test-first 1 1772 true +1444762700023 test-first 1 1772 true +1444762700024 test-first 1 1772 true +1444762700025 test-first 1 1772 true +1444762700026 test-first 1 1772 true +1444762700027 test-first 1 1772 true +1444762700028 test-first 1 1772 true +1444762700029 test-first 1 1772 true +1444762700030 test-first 1 1772 true +1444762700031 test-first 1 1772 true +1444762700032 test-first 1 1772 true +1444762700033 test-first 1 1772 true +1444762700034 test-first 1 1772 true +1444762700035 test-first 1 1772 true +1444762700036 test-first 1 1772 true +1444762700037 test-first 1 1772 true +1444762700038 test-first 1 1772 true +1444762700039 test-first 1 1772 true +1444762700040 test-first 1 1772 true +1444762700041 test-first 1 1772 true +1444762700042 test-first 1 1772 true +1444762700043 test-first 1 1772 true +1444762700044 test-first 1 1772 true +1444762700045 test-first 1 1772 true +1444762700046 test-first 1 1772 true +1444762700047 test-first 1 1772 true +1444762700048 test-first 1 1772 true +1444762700049 test-first 1 1772 true +1444762700050 test-first 1 1772 true +1444762700051 test-first 1 1772 true +1444762700052 test-first 1 1772 true +1444762700053 test-first 1 1772 true +1444762700054 test-first 1 1772 true +1444762700055 test-first 1 1772 true +1444762700056 test-first 1 1772 true +1444762700057 test-first 1 1772 true +1444762700058 test-first 1 1772 true +1444762700059 test-first 1 1772 true +1444762700060 test-first 1 1772 true +1444762700061 test-first 1 1772 true +1444762700062 test-first 1 1772 true +1444762700063 test-first 1 1772 true +1444762700064 test-first 1 1772 true +1444762700065 test-first 1 1772 true +1444762700066 test-first 1 1772 true +1444762700067 test-first 1 1772 true +1444762700068 test-first 1 1772 true +1444762700069 test-first 1 1772 true +1444762700070 test-first 1 1772 true +1444762700071 test-first 1 1772 true +1444762700072 test-first 1 1772 true +1444762700073 test-first 1 1772 true +1444762700074 test-first 1 1772 true +1444762700075 test-first 1 1772 true +1444762700076 test-first 1 1772 true +1444762700077 test-first 1 1772 true +1444762700078 test-first 1 1772 true +1444762700079 test-first 1 1772 true +1444762700080 test-first 1 1772 true +1444762700081 test-first 1 1772 true +1444762700082 test-first 1 1772 true +1444762700083 test-first 1 1772 true +1444762700084 test-first 1 1772 true +1444762700085 test-first 1 1772 true +1444762700086 test-first 1 1772 true +1444762700087 test-first 1 1772 true +1444762700088 test-first 1 1772 true +1444762700089 test-first 1 1772 true +1444762700090 test-first 1 1772 true +1444762700091 test-first 1 1772 true +1444762700092 test-first 1 1772 true +1444762700093 test-first 1 1772 true +1444762700094 test-first 1 1772 true +1444762700095 test-first 1 1772 true +1444762700096 test-first 1 1772 true +1444762700097 test-first 1 1772 true +1444762700098 test-first 1 1772 true +1444762700099 test-first 1 1772 true +1444762700100 test-first 1 1772 true +1444762700101 test-first 1 1772 true +1444762700102 test-first 1 1772 true +1444762700103 test-first 1 1772 true +1444762700104 test-first 1 1772 true +1444762700105 test-first 1 1772 true +1444762700106 test-first 1 1772 true +1444762700107 test-last 1 1772 false +1444762700108 test-first 1 1772 true +1444762700109 test-last 1 1772 false +1444762700110 test-first 1 1772 true +1444762700111 test-last 1 1772 false +1444762700112 test-first 1 1772 true +1444762700113 test-last 1 1772 false +1444762700114 test-first 1 1772 true +1444762700115 test-last 1 1772 false +1444762700116 test-first 1 1772 true +1444762700117 test-last 1 1772 false +1444762700118 test-first 1 1772 true +1444762700119 test-last 1 1772 false +1444762700120 test-first 1 1772 true +1444762700121 test-last 1 1772 false +1444762700122 test-first 1 1772 true +1444762700123 test-last 1 1772 false +1444762700124 test-first 1 1772 true +1444762700125 test-last 1 1772 false +1444762700126 test-first 1 1772 true +1444762700127 test-last 1 1772 false +1444762700128 test-first 1 1772 true +1444762700129 test-last 1 1772 false +1444762700130 test-first 1 1772 true +1444762700131 test-last 1 1772 false +1444762700132 test-first 1 1772 true +1444762700133 test-last 1 1772 false +1444762700134 test-first 1 1772 true +1444762700135 test-last 1 1772 false +1444762700136 test-first 1 1772 true +1444762700137 test-last 1 1772 false +1444762700138 test-first 1 1772 true +1444762700139 test-last 1 1772 false +1444762700140 test-first 1 1772 true +1444762700141 test-last 1 1772 false +1444762700142 test-first 1 1772 true +1444762700143 test-last 1 1772 false +1444762700144 test-first 1 1772 true +1444762700145 test-last 1 1772 false +1444762700146 test-first 1 1772 true +1444762700147 test-last 1 1772 false +1444762700148 test-first 1 1772 true +1444762700149 test-last 1 1772 false +1444762700150 test-first 1 1772 true +1444762700151 test-last 1 1772 false +1444762700152 test-first 1 1772 true +1444762700153 test-last 1 1772 false +1444762700154 test-first 1 1772 true +1444762700155 test-last 1 1772 false +1444762700156 test-first 1 1772 true +1444762700157 test-last 1 1772 false +1444762700158 test-first 1 1772 true +1444762700159 test-last 1 1772 false +1444762700160 test-first 1 1772 true +1444762700161 test-last 1 1772 false +1444762700162 test-first 1 1772 true +1444762700163 test-last 1 1772 false +1444762700164 test-first 1 1772 true +1444762700165 test-last 1 1772 false +1444762700166 test-first 1 1772 true +1444762700167 test-last 1 1772 false +1444762700168 test-first 1 1772 true +1444762700169 test-last 1 1772 false +1444762700170 test-first 1 1772 true +1444762700171 test-last 1 1772 false +1444762700172 test-first 1 1772 true +1444762700173 test-last 1 1772 false +1444762700174 test-first 1 1772 true +1444762700175 test-last 1 1772 false +1444762700176 test-first 1 1772 true +1444762700177 test-last 1 1772 false +1444762700178 test-first 1 1772 true +1444762700179 test-last 1 1772 false +1444762700180 test-first 1 1772 true +1444762700181 test-last 1 1772 false +1444762700182 test-first 1 1772 true +1444762700183 test-last 1 1772 false +1444762700184 test-first 1 1772 true +1444762700185 test-last 1 1772 false +1444762700186 test-first 1 1772 true +1444762700187 test-last 1 1772 false +1444762700188 test-first 1 1772 true +1444762700189 test-last 1 1772 false +1444762700190 test-last 1 1772 false +1444762700191 test-first 1 1772 true +1444762700192 test-last 1 1772 false +1444762700193 test-first 1 1772 true +1444762700194 test-last 1 1772 false +1444762700195 test-first 1 1772 true +1444762700196 test-last 1 1772 false +1444762700197 test-first 1 1772 true +1444762700198 test-last 1 1772 false +1444762700199 test-first 1 1772 true +1444762700200 test-last 1 1772 false +1444762700201 test-first 1 1772 true +1444762700202 test-last 1 1772 false +1444762700203 test-first 1 1772 true +1444762700204 test-last 1 1772 false +1444762700205 test-first 1 1772 true +1444762700206 test-last 1 1772 false +1444762700207 test-first 1 1772 true +1444762700208 test-last 1 1772 false +1444762700209 test-first 1 1772 true +1444762700210 test-last 1 1772 false +1444762700211 test-first 1 1772 true +1444762700212 test-last 1 1772 false +1444762700213 test-first 1 1772 true +1444762700214 test-last 1 1772 false +1444762700215 test-first 1 1772 true +1444762700216 test-last 1 1772 false +1444762700217 test-first 1 1772 true +1444762700218 test-last 1 1772 false +1444762700219 test-first 1 1772 true +1444762700220 test-last 1 1772 false +1444762700221 test-first 1 1772 true +1444762700222 test-last 1 1772 false +1444762700223 test-first 1 1772 true +1444762700224 test-last 1 1772 false +1444762700225 test-first 1 1772 true +1444762700226 test-last 1 1772 false +1444762700227 test-first 1 1772 true +1444762700228 test-last 1 1772 false +1444762700229 test-first 1 1772 true +1444762700230 test-last 1 1772 false +1444762700231 test-first 1 1772 true +1444762700232 test-last 1 1772 false +1444762700233 test-first 1 1772 true +1444762700234 test-last 1 1772 false +1444762700235 test-first 1 1772 true +1444762700236 test-last 1 1772 false +1444762700237 test-first 1 1772 true +1444762700238 test-last 1 1772 false +1444762700239 test-first 1 1772 true +1444762700240 test-last 1 1772 false +1444762700241 test-first 1 1772 true +1444762700242 test-last 1 1772 false +1444762700243 test-first 1 1772 true +1444762700244 test-last 1 1772 false +1444762700245 test-first 1 1772 true +1444762700246 test-first 1 1772 true +1444762700247 test-first 1 1772 true +1444762700248 test-first 1 1772 true +1444762700249 test-first 1 1772 true +1444762700250 test-first 1 1772 true +1444762700251 test-first 1 1772 true +1444762700252 test-first 1 1772 true +1444762700253 test-first 1 1772 true +1444762700254 test-first 1 1772 true +1444762700255 test-first 1 1772 true +1444762700256 test-first 1 1772 true +1444762700257 test-first 1 1772 true +1444762700258 test-first 1 1772 true +1444762700259 test-first 1 1772 true +1444762700260 test-first 1 1772 true +1444762700261 test-first 1 1772 true +1444762700262 test-first 1 1772 true +1444762700263 test-first 1 1772 true +1444762700264 test-first 1 1772 true +1444762700265 test-first 1 1772 true +1444762700266 test-first 1 1772 true +1444762700267 test-first 1 1772 true +1444762700268 test-first 1 1772 true +1444762700269 test-first 1 1772 true +1444762700270 test-first 1 1772 true +1444762700271 test-first 1 1772 true +1444762700272 test-first 1 1772 true +1444762700273 test-first 1 1772 true +1444762700274 test-first 1 1772 true +1444762700275 test-first 1 1772 true +1444762700276 test-first 1 1772 true +1444762700277 test-first 1 1772 true +1444762700278 test-first 1 1772 true +1444762700279 test-first 1 1772 true +1444762700280 test-first 1 1772 true +1444762700281 test-first 1 1772 true +1444762700282 test-first 1 1772 true +1444762700283 test-first 1 1772 true +1444762700284 test-first 1 1772 true +1444762700285 test-first 1 1772 true +1444762700286 test-first 1 1772 true diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index f27b439..c291ddb 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -6,3 +6,4 @@ 1444760566395 test-first 1 1045 true 1444760674672 refactoring 2A 84 false 1444760873385 refactoring 2A 173 true +1444762699277 test-first 1 1772 true diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index 73ef776..13c7320 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -6,3 +6,4 @@ 1444760566395 test-first 1 1056 true 1444760674672 refactoring 2A 108 true 1444760873385 refactoring 2A 198 true +1444762699277 test-first 1 1825 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index de5f134..f64fe8f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -11,12 +11,6 @@ public class TestGameOfLife { GameOfLife gameOfLife; String[] nineStates = {"Alive", "Alive", "Alive", "Dead", "Dead", "Dead", "Dead", "Dead", "Dead"}; - @Before - public void setup(){ - - - } - @Test public void testSetupGameNineCells_ReturnNine() { From 22d6bcb3054ceac315e4781f469bf2617f350b84 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 21:59:39 +0300 Subject: [PATCH 075/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 5 +++++ .besouro/2015101320174354/besouroEpisodes.txt | 2 ++ .../randomHeuristicEpisodes.txt | 2 ++ .besouro/2015101320174354/zorroEpisodes.txt | 2 ++ .../gameoflife/test/TestGameOfLife.java | 18 +++++++++--------- 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index dfd7d9c..e2d42ba 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -274,3 +274,8 @@ RefactoringAction 1444762715728 TestGameOfLife.java REMOVE setup() METHOD RefactoringAction 1444762730252 TestGameOfLife.java ADD void setup() METHOD RefactoringAction 1444762732767 TestGameOfLife.java REMOVE setup() METHOD EditAction 1444762732911 TestGameOfLife.java 1970 4 18 8 +UnitTestCaseAction 1444762734906 TestGameOfLife.java OK +UnitTestSessionAction 1444762734906 TestGameOfLife OK +UnitTestCaseAction 1444762758173 TestCell.java OK +UnitTestSessionAction 1444762758174 TestCell (1) OK +EditAction 1444762779766 TestGameOfLife.java 1952 5 22 9 diff --git a/.besouro/2015101320174354/besouroEpisodes.txt b/.besouro/2015101320174354/besouroEpisodes.txt index 1c80c89..d24859c 100644 --- a/.besouro/2015101320174354/besouroEpisodes.txt +++ b/.besouro/2015101320174354/besouroEpisodes.txt @@ -2066,3 +2066,5 @@ 1444762700284 test-first 1 1772 true 1444762700285 test-first 1 1772 true 1444762700286 test-first 1 1772 true +1444762734906 test-addition 1 19 true +1444762758174 regression 1 0 true diff --git a/.besouro/2015101320174354/randomHeuristicEpisodes.txt b/.besouro/2015101320174354/randomHeuristicEpisodes.txt index c291ddb..e8b5df1 100644 --- a/.besouro/2015101320174354/randomHeuristicEpisodes.txt +++ b/.besouro/2015101320174354/randomHeuristicEpisodes.txt @@ -7,3 +7,5 @@ 1444760674672 refactoring 2A 84 false 1444760873385 refactoring 2A 173 true 1444762699277 test-first 1 1772 true +1444762734906 test-addition 1 19 true +1444762758174 regression 1 0 false diff --git a/.besouro/2015101320174354/zorroEpisodes.txt b/.besouro/2015101320174354/zorroEpisodes.txt index 13c7320..d1be8de 100644 --- a/.besouro/2015101320174354/zorroEpisodes.txt +++ b/.besouro/2015101320174354/zorroEpisodes.txt @@ -7,3 +7,5 @@ 1444760674672 refactoring 2A 108 true 1444760873385 refactoring 2A 198 true 1444762699277 test-first 1 1825 true +1444762734906 test-addition 1 35 true +1444762758174 regression 1 23 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index f64fe8f..4dc0b7f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -57,15 +57,15 @@ public void testPrintCurrentGameState() throws CustomLifeException{ -// @Test -// public void testDoOneRound() throws CustomLifeException{ -// gameOfLife = new GameOfLife(3); -// gameOfLife.setupGame(nineStates); -// -// gameOfLife.doOneRound(); -// -// assertEquals("-*-\n-*-\n---\n", gameOfLife.printCurrentGameState()); -// } + @Test + public void testDoOneRound() throws CustomLifeException{ + gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(nineStates); + + gameOfLife.doOneRound(); + + assertEquals("-*-\n-*-\n---\n", gameOfLife.printCurrentGameState()); + } From d028cc94c757173c8222db3a04862ab03a06afb7 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:01:18 +0300 Subject: [PATCH 076/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index e2d42ba..0fa80a7 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -279,3 +279,6 @@ UnitTestSessionAction 1444762734906 TestGameOfLife OK UnitTestCaseAction 1444762758173 TestCell.java OK UnitTestSessionAction 1444762758174 TestCell (1) OK EditAction 1444762779766 TestGameOfLife.java 1952 5 22 9 +UnitTestCaseAction 1444762781664 TestGameOfLife.java FAIL +UnitTestSessionAction 1444762781665 TestGameOfLife FAIL +EditAction 1444762878392 GameOfLife.java 2794 11 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 81c57dc..dc6d82a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -109,7 +109,7 @@ public void doOneRound() throws CustomLifeException { int amountOfAliveNeighbours = grid.getNumNeighbors(cell); cell.nextIteration(amountOfAliveNeighbours); - System.out.println(" x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); newCells.add(cell); } From 163e19d66da958030eaa3ca8f81fd4fdc8914e35 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:03:32 +0300 Subject: [PATCH 077/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0fa80a7..5c95296 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -282,3 +282,6 @@ EditAction 1444762779766 TestGameOfLife.java 1952 5 22 9 UnitTestCaseAction 1444762781664 TestGameOfLife.java FAIL UnitTestSessionAction 1444762781665 TestGameOfLife FAIL EditAction 1444762878392 GameOfLife.java 2794 11 22 0 +UnitTestCaseAction 1444762880284 TestGameOfLife.java FAIL +UnitTestSessionAction 1444762880284 TestGameOfLife FAIL +EditAction 1444763012023 Grid.java 959 3 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 429fe9a..10c38f7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -15,8 +15,8 @@ public Grid(int squareLength){ public int getNumNeighbors(Cell cell) throws CustomLifeException { int numNeighbors = 0; - for (int dx=-1; dx<=1; dx ++) { - for (int dy=-1; dy<=1; dy ++) { + for (int dx = -1; dx <= 1; dx++) { + for (int dy = -1; dy <= 1; dy++) { Cell neighbor = new Cell(cell.x + dx, cell.y + dy, "Alive"); if (cells.contains(neighbor)) { if(cell.x + dx < 0 || cell.x + dx >= squareLength || cell.y + dy < 0 || cell.y + dy >= squareLength){ From b6c9afff833576f528b3db4b3c3850a395fc19c1 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:05:04 +0300 Subject: [PATCH 078/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + .../unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 5c95296..a0f5afa 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -285,3 +285,4 @@ EditAction 1444762878392 GameOfLife.java 2794 11 22 0 UnitTestCaseAction 1444762880284 TestGameOfLife.java FAIL UnitTestSessionAction 1444762880284 TestGameOfLife FAIL EditAction 1444763012023 Grid.java 959 3 7 0 +EditAction 1444763104565 TestGameOfLife.java 2066 5 24 9 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 4dc0b7f..1cd4169 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -61,8 +61,9 @@ public void testPrintCurrentGameState() throws CustomLifeException{ public void testDoOneRound() throws CustomLifeException{ gameOfLife = new GameOfLife(3); gameOfLife.setupGame(nineStates); - + System.out.println(gameOfLife.printCurrentGameState()); gameOfLife.doOneRound(); + System.out.println(gameOfLife.printCurrentGameState()); assertEquals("-*-\n-*-\n---\n", gameOfLife.printCurrentGameState()); } From e2693c865750e8356b979b0e53152694b06d8813 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:05:13 +0300 Subject: [PATCH 079/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index a0f5afa..06e9457 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -286,3 +286,4 @@ UnitTestCaseAction 1444762880284 TestGameOfLife.java FAIL UnitTestSessionAction 1444762880284 TestGameOfLife FAIL EditAction 1444763012023 Grid.java 959 3 7 0 EditAction 1444763104565 TestGameOfLife.java 2066 5 24 9 +EditAction 1444763113005 GameOfLife.java 2798 11 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index dc6d82a..6686b85 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -104,12 +104,12 @@ public void doOneRound() throws CustomLifeException { while(it.hasNext()){ Cell cell = (Cell) it.next(); - System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + //System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); int amountOfAliveNeighbours = grid.getNumNeighbors(cell); cell.nextIteration(amountOfAliveNeighbours); - System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + //System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); newCells.add(cell); } From 82cdf6e38417c08820a4a52d92b8703990011d6c Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:06:14 +0300 Subject: [PATCH 080/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 06e9457..33843be 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -287,3 +287,6 @@ UnitTestSessionAction 1444762880284 TestGameOfLife FAIL EditAction 1444763012023 Grid.java 959 3 7 0 EditAction 1444763104565 TestGameOfLife.java 2066 5 24 9 EditAction 1444763113005 GameOfLife.java 2798 11 22 0 +UnitTestCaseAction 1444763114903 TestGameOfLife.java FAIL +UnitTestSessionAction 1444763114903 TestGameOfLife FAIL +EditAction 1444763174465 GameOfLife.java 2794 11 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 6686b85..dc6d82a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -104,12 +104,12 @@ public void doOneRound() throws CustomLifeException { while(it.hasNext()){ Cell cell = (Cell) it.next(); - //System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); int amountOfAliveNeighbours = grid.getNumNeighbors(cell); cell.nextIteration(amountOfAliveNeighbours); - //System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); newCells.add(cell); } From 59b7a752c3f7d6c7c4af44c019e99665a47288e9 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:09:13 +0300 Subject: [PATCH 081/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 33843be..47f6b74 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -290,3 +290,8 @@ EditAction 1444763113005 GameOfLife.java 2798 11 22 0 UnitTestCaseAction 1444763114903 TestGameOfLife.java FAIL UnitTestSessionAction 1444763114903 TestGameOfLife FAIL EditAction 1444763174465 GameOfLife.java 2794 11 22 0 +UnitTestCaseAction 1444763176542 TestGameOfLife.java FAIL +UnitTestSessionAction 1444763176542 TestGameOfLife FAIL +UnitTestCaseAction 1444763285184 TestGrid.java OK +UnitTestSessionAction 1444763285185 TestGrid (1) OK +EditAction 1444763353223 GameOfLife.java 2798 11 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index dc6d82a..6686b85 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -104,12 +104,12 @@ public void doOneRound() throws CustomLifeException { while(it.hasNext()){ Cell cell = (Cell) it.next(); - System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + //System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); int amountOfAliveNeighbours = grid.getNumNeighbors(cell); cell.nextIteration(amountOfAliveNeighbours); - System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + //System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); newCells.add(cell); } From ec2289af34a4a7881d7cb88989b9dd0ba149220b Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:09:24 +0300 Subject: [PATCH 082/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 5 ++ .../gameoflife/test/TestGameOfLife.java | 76 +++++++++---------- 2 files changed, 43 insertions(+), 38 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 47f6b74..8ba6169 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -295,3 +295,8 @@ UnitTestSessionAction 1444763176542 TestGameOfLife FAIL UnitTestCaseAction 1444763285184 TestGrid.java OK UnitTestSessionAction 1444763285185 TestGrid (1) OK EditAction 1444763353223 GameOfLife.java 2798 11 22 0 +RefactoringAction 1444763363762 TestGameOfLife.java REMOVE testPrintCurrentGameState() METHOD +RefactoringAction 1444763363764 TestGameOfLife.java REMOVE testCreateRandomStates() METHOD +RefactoringAction 1444763363765 TestGameOfLife.java REMOVE testSetupGameOneCell_ReturnOne() METHOD +RefactoringAction 1444763363765 TestGameOfLife.java REMOVE testSetupGameNineCells_ReturnNine() METHOD +EditAction 1444763364017 TestGameOfLife.java 2142 1 6 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 1cd4169..87e49fa 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -12,44 +12,44 @@ public class TestGameOfLife { String[] nineStates = {"Alive", "Alive", "Alive", "Dead", "Dead", "Dead", "Dead", "Dead", "Dead"}; - @Test - public void testSetupGameNineCells_ReturnNine() { - gameOfLife = new GameOfLife(3); - gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); - int numberOfCells = gameOfLife.grid.cells.size(); - - assertEquals(9, numberOfCells); - } - - @Test - public void testSetupGameOneCell_ReturnOne() { - gameOfLife = new GameOfLife(1); - gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); - int numberOfCells = gameOfLife.grid.cells.size(); - - assertEquals(1, numberOfCells); - } - - @Test - public void testCreateRandomStates(){ - gameOfLife = new GameOfLife(2); - String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); - - assertEquals(4, states.length); - assertEquals(true, states[0].matches("Dead|Alive")); - assertEquals(true, states[1].matches("Dead|Alive")); - assertEquals(true, states[2].matches("Dead|Alive")); - assertEquals(true, states[3].matches("Dead|Alive")); - } - - - @Test - public void testPrintCurrentGameState() throws CustomLifeException{ - gameOfLife = new GameOfLife(3); - gameOfLife.setupGame(nineStates); - - assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); - } +// @Test +// public void testSetupGameNineCells_ReturnNine() { +// gameOfLife = new GameOfLife(3); +// gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); +// int numberOfCells = gameOfLife.grid.cells.size(); +// +// assertEquals(9, numberOfCells); +// } +// +// @Test +// public void testSetupGameOneCell_ReturnOne() { +// gameOfLife = new GameOfLife(1); +// gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); +// int numberOfCells = gameOfLife.grid.cells.size(); +// +// assertEquals(1, numberOfCells); +// } +// +// @Test +// public void testCreateRandomStates(){ +// gameOfLife = new GameOfLife(2); +// String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); +// +// assertEquals(4, states.length); +// assertEquals(true, states[0].matches("Dead|Alive")); +// assertEquals(true, states[1].matches("Dead|Alive")); +// assertEquals(true, states[2].matches("Dead|Alive")); +// assertEquals(true, states[3].matches("Dead|Alive")); +// } +// +// +// @Test +// public void testPrintCurrentGameState() throws CustomLifeException{ +// gameOfLife = new GameOfLife(3); +// gameOfLife.setupGame(nineStates); +// +// assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); +// } //validateGame From 20568adb2c8f6a24cda410d1a2fc1f3f70926e51 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:10:20 +0300 Subject: [PATCH 083/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 7 +++++++ .../tol/sqatlab/gameoflife/test/TestGrid.java | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 8ba6169..441a903 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -300,3 +300,10 @@ RefactoringAction 1444763363764 TestGameOfLife.java REMOVE testCreateRandomState RefactoringAction 1444763363765 TestGameOfLife.java REMOVE testSetupGameOneCell_ReturnOne() METHOD RefactoringAction 1444763363765 TestGameOfLife.java REMOVE testSetupGameNineCells_ReturnNine() METHOD EditAction 1444763364017 TestGameOfLife.java 2142 1 6 1 +RefactoringAction 1444763399306 TestGrid.java ADD void testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree()/2 METHOD +RefactoringAction 1444763405820 TestGrid.java RENAME testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree()/2=>void testGetNumNeighbors_ReturnThree() METHOD +RefactoringAction 1444763409332 TestGrid.java RENAME testGetNumNeighbors_ReturnThree()=>void testGetNumNeighborsDifferentCells_ReturnThree() METHOD +RefactoringAction 1444763412344 TestGrid.java RENAME testGetNumNeighborsDifferentCells_ReturnThree()=>void testGetNumNeighborsDifferentCells_Return() METHOD +RefactoringAction 1444763418362 TestGrid.java RENAME testGetNumNeighborsDifferentCells_Return()=>void testGetNumNeighborsDifferentCells_ReturnDifferentAMounts() METHOD +RefactoringAction 1444763420377 TestGrid.java RENAME testGetNumNeighborsDifferentCells_ReturnDifferentAMounts()=>void testGetNumNeighborsDifferentCells_ReturnDifferentAmounts() METHOD +EditAction 1444763420796 TestGrid.java 2278 5 41 5 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 577a90d..cb3f03a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -68,4 +68,22 @@ public void testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree() throws int numNeighbors = grid.getNumNeighbors(cell1); assertEquals(3, numNeighbors); } + + @Test + public void testGetNumNeighborsDifferentCells_ReturnDifferentAmounts() throws CustomLifeException { + //arrange + Grid grid = new Grid(2); + Cell cell1 = new Cell(0,0, "Alive"); + Cell cell2 = new Cell(0,1, "Alive"); + Cell cell3 = new Cell(1,0, "Alive"); + Cell cell4 = new Cell(1,1, "Alive"); + + grid.addCell(cell1); + grid.addCell(cell2); + grid.addCell(cell3); + grid.addCell(cell4); + + int numNeighbors = grid.getNumNeighbors(cell1); + assertEquals(3, numNeighbors); + } } From 4e678a9a68eb155e8ba4ec649b0976b065421364 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:13:17 +0300 Subject: [PATCH 084/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + .../tol/sqatlab/gameoflife/test/TestGrid.java | 28 +++++++++++++++---- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 441a903..578bb5e 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -307,3 +307,4 @@ RefactoringAction 1444763412344 TestGrid.java RENAME testGetNumNeighborsDifferen RefactoringAction 1444763418362 TestGrid.java RENAME testGetNumNeighborsDifferentCells_Return()=>void testGetNumNeighborsDifferentCells_ReturnDifferentAMounts() METHOD RefactoringAction 1444763420377 TestGrid.java RENAME testGetNumNeighborsDifferentCells_ReturnDifferentAMounts()=>void testGetNumNeighborsDifferentCells_ReturnDifferentAmounts() METHOD EditAction 1444763420796 TestGrid.java 2278 5 41 5 +EditAction 1444763597719 TestGrid.java 2939 5 58 13 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index cb3f03a..53d90e1 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -72,18 +72,36 @@ public void testGetNumNeighborsCellZeroZero_FourAliveCells_ReturnThree() throws @Test public void testGetNumNeighborsDifferentCells_ReturnDifferentAmounts() throws CustomLifeException { //arrange - Grid grid = new Grid(2); + Grid grid = new Grid(3); + Cell cell1 = new Cell(0,0, "Alive"); Cell cell2 = new Cell(0,1, "Alive"); - Cell cell3 = new Cell(1,0, "Alive"); - Cell cell4 = new Cell(1,1, "Alive"); + Cell cell3 = new Cell(0,2, "Alive"); + Cell cell4 = new Cell(1,0, "Alive"); + Cell cell5 = new Cell(1,1, "Alive"); + Cell cell6 = new Cell(1,2, "Alive"); + Cell cell7 = new Cell(2,0, "Alive"); + Cell cell8 = new Cell(2,1, "Alive"); + Cell cell9 = new Cell(2,2, "Alive"); 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); - int numNeighbors = grid.getNumNeighbors(cell1); - assertEquals(3, numNeighbors); + assertEquals(3, grid.getNumNeighbors(cell1)); + assertEquals(3, grid.getNumNeighbors(cell2)); + assertEquals(3, grid.getNumNeighbors(cell3)); + assertEquals(3, grid.getNumNeighbors(cell4)); + assertEquals(3, grid.getNumNeighbors(cell5)); + assertEquals(3, grid.getNumNeighbors(cell6)); + assertEquals(3, grid.getNumNeighbors(cell7)); + assertEquals(3, grid.getNumNeighbors(cell8)); + assertEquals(3, grid.getNumNeighbors(cell9)); } } From 3098df0671bcf3da4afe7ef3a48a229eedbfdec1 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:13:48 +0300 Subject: [PATCH 085/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + .../tol/sqatlab/gameoflife/test/TestGrid.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 578bb5e..8977c02 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -308,3 +308,4 @@ RefactoringAction 1444763418362 TestGrid.java RENAME testGetNumNeighborsDifferen RefactoringAction 1444763420377 TestGrid.java RENAME testGetNumNeighborsDifferentCells_ReturnDifferentAMounts()=>void testGetNumNeighborsDifferentCells_ReturnDifferentAmounts() METHOD EditAction 1444763420796 TestGrid.java 2278 5 41 5 EditAction 1444763597719 TestGrid.java 2939 5 58 13 +EditAction 1444763628587 TestGrid.java 2939 5 58 13 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 53d90e1..64684ed 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -94,14 +94,14 @@ public void testGetNumNeighborsDifferentCells_ReturnDifferentAmounts() throws Cu grid.addCell(cell8); grid.addCell(cell9); - assertEquals(3, grid.getNumNeighbors(cell1)); - assertEquals(3, grid.getNumNeighbors(cell2)); - assertEquals(3, grid.getNumNeighbors(cell3)); - assertEquals(3, grid.getNumNeighbors(cell4)); + assertEquals(1, grid.getNumNeighbors(cell1)); + assertEquals(2, grid.getNumNeighbors(cell2)); + assertEquals(1, grid.getNumNeighbors(cell3)); + assertEquals(2, grid.getNumNeighbors(cell4)); assertEquals(3, grid.getNumNeighbors(cell5)); - assertEquals(3, grid.getNumNeighbors(cell6)); - assertEquals(3, grid.getNumNeighbors(cell7)); - assertEquals(3, grid.getNumNeighbors(cell8)); - assertEquals(3, grid.getNumNeighbors(cell9)); + assertEquals(2, grid.getNumNeighbors(cell6)); + assertEquals(0, grid.getNumNeighbors(cell7)); + assertEquals(0, grid.getNumNeighbors(cell8)); + assertEquals(0, grid.getNumNeighbors(cell9)); } } From 9ef401149ee5162848a4d1ca8a11a8655733803d Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:14:43 +0300 Subject: [PATCH 086/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ .../tol/sqatlab/gameoflife/test/TestGrid.java | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 8977c02..061780c 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -309,3 +309,6 @@ RefactoringAction 1444763420377 TestGrid.java RENAME testGetNumNeighborsDifferen EditAction 1444763420796 TestGrid.java 2278 5 41 5 EditAction 1444763597719 TestGrid.java 2939 5 58 13 EditAction 1444763628587 TestGrid.java 2939 5 58 13 +UnitTestCaseAction 1444763631008 TestGrid.java FAIL +UnitTestSessionAction 1444763631008 TestGrid (1) FAIL +EditAction 1444763683390 TestGrid.java 2933 5 58 13 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 64684ed..fe10e61 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -77,12 +77,12 @@ public void testGetNumNeighborsDifferentCells_ReturnDifferentAmounts() throws Cu Cell cell1 = new Cell(0,0, "Alive"); Cell cell2 = new Cell(0,1, "Alive"); Cell cell3 = new Cell(0,2, "Alive"); - Cell cell4 = new Cell(1,0, "Alive"); - Cell cell5 = new Cell(1,1, "Alive"); - Cell cell6 = new Cell(1,2, "Alive"); - Cell cell7 = new Cell(2,0, "Alive"); - Cell cell8 = new Cell(2,1, "Alive"); - Cell cell9 = new Cell(2,2, "Alive"); + Cell cell4 = new Cell(1,0, "Dead"); + Cell cell5 = new Cell(1,1, "Dead"); + Cell cell6 = new Cell(1,2, "Dead"); + Cell cell7 = new Cell(2,0, "Dead"); + Cell cell8 = new Cell(2,1, "Dead"); + Cell cell9 = new Cell(2,2, "Dead"); grid.addCell(cell1); grid.addCell(cell2); From a67bd31601b3b86db31de2038e2063bb4535ac8b Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:17:17 +0300 Subject: [PATCH 087/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 5 +++++ .../unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 061780c..abf28ee 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -312,3 +312,8 @@ EditAction 1444763628587 TestGrid.java 2939 5 58 13 UnitTestCaseAction 1444763631008 TestGrid.java FAIL UnitTestSessionAction 1444763631008 TestGrid (1) FAIL EditAction 1444763683390 TestGrid.java 2933 5 58 13 +UnitTestCaseAction 1444763685476 TestGrid.java OK +UnitTestSessionAction 1444763685476 TestGrid (1) OK +UnitTestCaseAction 1444763800350 TestGameOfLife.java FAIL +UnitTestSessionAction 1444763800350 TestGameOfLife FAIL +EditAction 1444763837628 TestGameOfLife.java 2146 1 4 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 87e49fa..e00a1b7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -61,9 +61,9 @@ public class TestGameOfLife { public void testDoOneRound() throws CustomLifeException{ gameOfLife = new GameOfLife(3); gameOfLife.setupGame(nineStates); - System.out.println(gameOfLife.printCurrentGameState()); + //System.out.println(gameOfLife.printCurrentGameState()); gameOfLife.doOneRound(); - System.out.println(gameOfLife.printCurrentGameState()); + //System.out.println(gameOfLife.printCurrentGameState()); assertEquals("-*-\n-*-\n---\n", gameOfLife.printCurrentGameState()); } From b671f45ecee3e4f76e2cadedfb3f85b14b82f4af Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:17:24 +0300 Subject: [PATCH 088/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index abf28ee..239a4dd 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -317,3 +317,4 @@ UnitTestSessionAction 1444763685476 TestGrid (1) OK UnitTestCaseAction 1444763800350 TestGameOfLife.java FAIL UnitTestSessionAction 1444763800350 TestGameOfLife FAIL EditAction 1444763837628 TestGameOfLife.java 2146 1 4 1 +EditAction 1444763844156 GameOfLife.java 2794 11 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 6686b85..dc6d82a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -104,12 +104,12 @@ public void doOneRound() throws CustomLifeException { while(it.hasNext()){ Cell cell = (Cell) it.next(); - //System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); int amountOfAliveNeighbours = grid.getNumNeighbors(cell); cell.nextIteration(amountOfAliveNeighbours); - //System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); newCells.add(cell); } From a708cb1093f634d032a131bb4deb91c3c1620a4c Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:18:24 +0300 Subject: [PATCH 089/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ .../unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 239a4dd..0228bff 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -318,3 +318,6 @@ UnitTestCaseAction 1444763800350 TestGameOfLife.java FAIL UnitTestSessionAction 1444763800350 TestGameOfLife FAIL EditAction 1444763837628 TestGameOfLife.java 2146 1 4 1 EditAction 1444763844156 GameOfLife.java 2794 11 22 0 +UnitTestCaseAction 1444763846572 TestGameOfLife.java FAIL +UnitTestSessionAction 1444763846573 TestGameOfLife FAIL +EditAction 1444763904377 TestGameOfLife.java 2114 1 4 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index e00a1b7..0ee4e73 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -51,12 +51,6 @@ public class TestGameOfLife { // assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); // } - - //validateGame - - - - @Test public void testDoOneRound() throws CustomLifeException{ gameOfLife = new GameOfLife(3); From 7950679a6fa02128e10943dac32021e7849a3ef3 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:20:36 +0300 Subject: [PATCH 090/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0228bff..0ca43dd 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -321,3 +321,4 @@ EditAction 1444763844156 GameOfLife.java 2794 11 22 0 UnitTestCaseAction 1444763846572 TestGameOfLife.java FAIL UnitTestSessionAction 1444763846573 TestGameOfLife FAIL EditAction 1444763904377 TestGameOfLife.java 2114 1 4 1 +EditAction 1444764036891 GameOfLife.java 2886 11 24 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index dc6d82a..fd852f6 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -102,6 +102,9 @@ public void doOneRound() throws CustomLifeException { Iterator it = grid.cells.iterator(); + Cell[] assisstantCells = new Cell[numberOfCells]; + + int counter = 0; while(it.hasNext()){ Cell cell = (Cell) it.next(); System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); @@ -112,6 +115,8 @@ public void doOneRound() throws CustomLifeException { System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); newCells.add(cell); + + counter++; } grid.cells.clear(); From 69ce9c803e9d57c32b75ec66f220ec0596fd23b2 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:22:50 +0300 Subject: [PATCH 091/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0ca43dd..552b11d 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -322,3 +322,6 @@ UnitTestCaseAction 1444763846572 TestGameOfLife.java FAIL UnitTestSessionAction 1444763846573 TestGameOfLife FAIL EditAction 1444763904377 TestGameOfLife.java 2114 1 4 1 EditAction 1444764036891 GameOfLife.java 2886 11 24 0 +UnitTestCaseAction 1444764135700 TestGameOfLife.java FAIL +UnitTestSessionAction 1444764135700 TestGameOfLife FAIL +EditAction 1444764169963 GameOfLife.java 2794 11 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index fd852f6..dc6d82a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -102,9 +102,6 @@ public void doOneRound() throws CustomLifeException { Iterator it = grid.cells.iterator(); - Cell[] assisstantCells = new Cell[numberOfCells]; - - int counter = 0; while(it.hasNext()){ Cell cell = (Cell) it.next(); System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); @@ -115,8 +112,6 @@ public void doOneRound() throws CustomLifeException { System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); newCells.add(cell); - - counter++; } grid.cells.clear(); From 933e4b5caddb79b6284ece9c5e9087a35a8b6514 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:23:04 +0300 Subject: [PATCH 092/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 552b11d..0c72734 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -325,3 +325,4 @@ EditAction 1444764036891 GameOfLife.java 2886 11 24 0 UnitTestCaseAction 1444764135700 TestGameOfLife.java FAIL UnitTestSessionAction 1444764135700 TestGameOfLife FAIL EditAction 1444764169963 GameOfLife.java 2794 11 22 0 +EditAction 1444764183994 GameOfLife.java 2804 11 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index dc6d82a..c0ac17d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -102,6 +102,7 @@ public void doOneRound() throws CustomLifeException { Iterator it = grid.cells.iterator(); + /* while(it.hasNext()){ Cell cell = (Cell) it.next(); System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); @@ -113,6 +114,7 @@ public void doOneRound() throws CustomLifeException { newCells.add(cell); } + */ grid.cells.clear(); grid.cells = newCells; From 3156a0f027048b74f2fa04994a4049270c307e80 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:25:43 +0300 Subject: [PATCH 093/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 0c72734..aaa61c5 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -326,3 +326,7 @@ UnitTestCaseAction 1444764135700 TestGameOfLife.java FAIL UnitTestSessionAction 1444764135700 TestGameOfLife FAIL EditAction 1444764169963 GameOfLife.java 2794 11 22 0 EditAction 1444764183994 GameOfLife.java 2804 11 21 0 +RefactoringAction 1444764310822 Cell.java ADD void setState(String) METHOD +RefactoringAction 1444764315138 Cell.java REMOVE setState(String) METHOD +RefactoringAction 1444764342410 Cell.java ADD void setState(String) METHOD +EditAction 1444764343299 Cell.java 1221 8 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 77f7614..349eda6 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -19,6 +19,12 @@ public int getY() { return y; } + + + public void setState(String state) { + this.state = state; + } + public void nextIteration(int numOfLiveCells) { // Rule 1. if (state == "Alive" && numOfLiveCells < 2){ From 46c63faf060175447999d48413c45fc798dc90bc Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:26:20 +0300 Subject: [PATCH 094/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + .../unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index aaa61c5..1f429ca 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -330,3 +330,4 @@ RefactoringAction 1444764310822 Cell.java ADD void setState(String) METHOD RefactoringAction 1444764315138 Cell.java REMOVE setState(String) METHOD RefactoringAction 1444764342410 Cell.java ADD void setState(String) METHOD EditAction 1444764343299 Cell.java 1221 8 21 0 +EditAction 1444764380562 GameOfLife.java 3149 11 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index c0ac17d..356ab7c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -115,6 +115,18 @@ public void doOneRound() throws CustomLifeException { newCells.add(cell); } */ + for (int i = 0; i < squareLength; i++){ + for (int j = 0; j < squareLength; j++){ + Cell cell = new Cell(i, j, "Alive"); + if(!(grid.cells.contains(cell))){ + cell.setState("Dead"); + } + int amountOfAliveNeighbours = grid.getNumNeighbors(cell); + cell.nextIteration(amountOfAliveNeighbours); + newCells.add(cell); + } + } + grid.cells.clear(); grid.cells = newCells; From 0de857b49bccc3f7394fbf143469b93e342d54aa Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:26:55 +0300 Subject: [PATCH 095/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 1f429ca..a55e572 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -331,3 +331,4 @@ RefactoringAction 1444764315138 Cell.java REMOVE setState(String) METHOD RefactoringAction 1444764342410 Cell.java ADD void setState(String) METHOD EditAction 1444764343299 Cell.java 1221 8 21 0 EditAction 1444764380562 GameOfLife.java 3149 11 22 0 +EditAction 1444764415684 GameOfLife.java 3405 11 22 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 356ab7c..3ad7d88 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -118,11 +118,15 @@ public void doOneRound() throws CustomLifeException { for (int i = 0; i < squareLength; i++){ for (int j = 0; j < squareLength; j++){ Cell cell = new Cell(i, j, "Alive"); + System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); if(!(grid.cells.contains(cell))){ cell.setState("Dead"); } int amountOfAliveNeighbours = grid.getNumNeighbors(cell); cell.nextIteration(amountOfAliveNeighbours); + + System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + newCells.add(cell); } } From 18b77fca58229c71bcac36a581b02d8e9ee41652 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:28:00 +0300 Subject: [PATCH 096/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 4 ++++ .../tol/sqatlab/gameoflife/GameOfLife.java | 24 +++---------------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index a55e572..cd71b0c 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -332,3 +332,7 @@ RefactoringAction 1444764342410 Cell.java ADD void setState(String) METHOD EditAction 1444764343299 Cell.java 1221 8 21 0 EditAction 1444764380562 GameOfLife.java 3149 11 22 0 EditAction 1444764415684 GameOfLife.java 3405 11 22 0 +UnitTestCaseAction 1444764417854 TestGameOfLife.java OK +UnitTestSessionAction 1444764417855 TestGameOfLife OK +RefactoringAction 1444764463654 GameOfLife.java REMOVE import java.util.Iterator IMPORT +EditAction 1444764480598 GameOfLife.java 2868 11 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 3ad7d88..0920997 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,7 +1,6 @@ package org.unioulu.tol.sqatlab.gameoflife; import java.util.HashSet; -import java.util.Iterator; import java.util.Random; import java.util.Set; @@ -99,39 +98,22 @@ else if(grid.cells.contains(cell2)){ public void doOneRound() throws CustomLifeException { Set newCells = new HashSet<>(); - - Iterator it = grid.cells.iterator(); - - /* - while(it.hasNext()){ - Cell cell = (Cell) it.next(); - System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); - - int amountOfAliveNeighbours = grid.getNumNeighbors(cell); - cell.nextIteration(amountOfAliveNeighbours); - - System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); - - newCells.add(cell); - } - */ + for (int i = 0; i < squareLength; i++){ for (int j = 0; j < squareLength; j++){ Cell cell = new Cell(i, j, "Alive"); - System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + //System.out.print("x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); if(!(grid.cells.contains(cell))){ cell.setState("Dead"); } int amountOfAliveNeighbours = grid.getNumNeighbors(cell); cell.nextIteration(amountOfAliveNeighbours); - System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); + //System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); newCells.add(cell); } } - - grid.cells.clear(); grid.cells = newCells; } From e87a6b7f829edd30b5e084aba6793a01b3fcb19e Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:28:10 +0300 Subject: [PATCH 097/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index cd71b0c..c7de35d 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -336,3 +336,4 @@ UnitTestCaseAction 1444764417854 TestGameOfLife.java OK UnitTestSessionAction 1444764417855 TestGameOfLife OK RefactoringAction 1444764463654 GameOfLife.java REMOVE import java.util.Iterator IMPORT EditAction 1444764480598 GameOfLife.java 2868 11 21 0 +EditAction 1444764490447 GameOfLife.java 2862 11 21 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 0920997..c6bd76d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -107,10 +107,8 @@ public void doOneRound() throws CustomLifeException { cell.setState("Dead"); } int amountOfAliveNeighbours = grid.getNumNeighbors(cell); - cell.nextIteration(amountOfAliveNeighbours); - + cell.nextIteration(amountOfAliveNeighbours); //System.out.println(" neighbours: " + amountOfAliveNeighbours + " x: " + cell.getX() + " y: " + cell.getY() + " state: " + cell.getState()); - newCells.add(cell); } } From f25df9261f5a7cd01d154dfe1669c89b6b3195e5 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:28:23 +0300 Subject: [PATCH 098/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 5 ++ .../gameoflife/test/TestGameOfLife.java | 76 +++++++++---------- 2 files changed, 43 insertions(+), 38 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index c7de35d..7170b35 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -337,3 +337,8 @@ UnitTestSessionAction 1444764417855 TestGameOfLife OK RefactoringAction 1444764463654 GameOfLife.java REMOVE import java.util.Iterator IMPORT EditAction 1444764480598 GameOfLife.java 2868 11 21 0 EditAction 1444764490447 GameOfLife.java 2862 11 21 0 +RefactoringAction 1444764501067 TestGameOfLife.java ADD void testSetupGameNineCells_ReturnNine() METHOD +RefactoringAction 1444764501068 TestGameOfLife.java ADD void testSetupGameOneCell_ReturnOne() METHOD +RefactoringAction 1444764501069 TestGameOfLife.java ADD void testCreateRandomStates() METHOD +RefactoringAction 1444764501069 TestGameOfLife.java ADD void testPrintCurrentGameState() METHOD +EditAction 1444764503241 TestGameOfLife.java 2038 5 22 9 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index 0ee4e73..f7b3e6f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -12,44 +12,44 @@ public class TestGameOfLife { String[] nineStates = {"Alive", "Alive", "Alive", "Dead", "Dead", "Dead", "Dead", "Dead", "Dead"}; -// @Test -// public void testSetupGameNineCells_ReturnNine() { -// gameOfLife = new GameOfLife(3); -// gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); -// int numberOfCells = gameOfLife.grid.cells.size(); -// -// assertEquals(9, numberOfCells); -// } -// -// @Test -// public void testSetupGameOneCell_ReturnOne() { -// gameOfLife = new GameOfLife(1); -// gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); -// int numberOfCells = gameOfLife.grid.cells.size(); -// -// assertEquals(1, numberOfCells); -// } -// -// @Test -// public void testCreateRandomStates(){ -// gameOfLife = new GameOfLife(2); -// String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); -// -// assertEquals(4, states.length); -// assertEquals(true, states[0].matches("Dead|Alive")); -// assertEquals(true, states[1].matches("Dead|Alive")); -// assertEquals(true, states[2].matches("Dead|Alive")); -// assertEquals(true, states[3].matches("Dead|Alive")); -// } -// -// -// @Test -// public void testPrintCurrentGameState() throws CustomLifeException{ -// gameOfLife = new GameOfLife(3); -// gameOfLife.setupGame(nineStates); -// -// assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); -// } + @Test + public void testSetupGameNineCells_ReturnNine() { + gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); + int numberOfCells = gameOfLife.grid.cells.size(); + + assertEquals(9, numberOfCells); + } + + @Test + public void testSetupGameOneCell_ReturnOne() { + gameOfLife = new GameOfLife(1); + gameOfLife.setupGame(gameOfLife.createRandomStates(gameOfLife.getNumberOfCells())); + int numberOfCells = gameOfLife.grid.cells.size(); + + assertEquals(1, numberOfCells); + } + + @Test + public void testCreateRandomStates(){ + gameOfLife = new GameOfLife(2); + String[] states = gameOfLife.createRandomStates(gameOfLife.getNumberOfCells()); + + assertEquals(4, states.length); + assertEquals(true, states[0].matches("Dead|Alive")); + assertEquals(true, states[1].matches("Dead|Alive")); + assertEquals(true, states[2].matches("Dead|Alive")); + assertEquals(true, states[3].matches("Dead|Alive")); + } + + + @Test + public void testPrintCurrentGameState() throws CustomLifeException{ + gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(nineStates); + + assertEquals("***\n---\n---\n", gameOfLife.printCurrentGameState()); + } @Test public void testDoOneRound() throws CustomLifeException{ From 47db1bb04279b637918f3fe0e6f448bf7163f234 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:32:07 +0300 Subject: [PATCH 099/101] besouro automatic message --- .besouro/2015101320174354/actions.txt | 13 +++++++++++++ .../sqatlab/gameoflife/test/TestGameOfLife.java | 15 ++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index 7170b35..db0b82b 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -342,3 +342,16 @@ RefactoringAction 1444764501068 TestGameOfLife.java ADD void testSetupGameOneCel RefactoringAction 1444764501069 TestGameOfLife.java ADD void testCreateRandomStates() METHOD RefactoringAction 1444764501069 TestGameOfLife.java ADD void testPrintCurrentGameState() METHOD EditAction 1444764503241 TestGameOfLife.java 2038 5 22 9 +RefactoringAction 1444764505679 TestGameOfLife.java REMOVE import org.junit.Before IMPORT +UnitTestCaseAction 1444764513285 TestGameOfLife.java OK +UnitTestSessionAction 1444764513286 TestGameOfLife OK +UnitTestCaseAction 1444764516263 TestGameOfLife.java OK +UnitTestSessionAction 1444764516264 TestGameOfLife OK +UnitTestCaseAction 1444764519543 TestCell.java OK +UnitTestSessionAction 1444764519543 TestCell (1) OK +UnitTestCaseAction 1444764523415 TestGrid.java OK +UnitTestSessionAction 1444764523416 TestGrid (1) OK +RefactoringAction 1444764707299 TestGameOfLife.java ADD void testDoOneRound()/2 METHOD +RefactoringAction 1444764713316 TestGameOfLife.java RENAME testDoOneRound()/2=>void testDoOneRound_W() METHOD +RefactoringAction 1444764716833 TestGameOfLife.java RENAME testDoOneRound_W()=>void testDoOneRound_TwoTimes() METHOD +EditAction 1444764727489 TestGameOfLife.java 2185 6 27 10 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java index f7b3e6f..b5be76f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGameOfLife.java @@ -2,7 +2,6 @@ import static org.junit.Assert.*; -import org.junit.Before; import org.junit.Test; import org.unioulu.tol.sqatlab.gameoflife.CustomLifeException; import org.unioulu.tol.sqatlab.gameoflife.GameOfLife; @@ -55,13 +54,23 @@ public void testPrintCurrentGameState() throws CustomLifeException{ public void testDoOneRound() throws CustomLifeException{ gameOfLife = new GameOfLife(3); gameOfLife.setupGame(nineStates); - //System.out.println(gameOfLife.printCurrentGameState()); + gameOfLife.doOneRound(); - //System.out.println(gameOfLife.printCurrentGameState()); assertEquals("-*-\n-*-\n---\n", gameOfLife.printCurrentGameState()); } + @Test + public void testDoOneRound_TwoTimes() throws CustomLifeException{ + gameOfLife = new GameOfLife(3); + gameOfLife.setupGame(nineStates); + + gameOfLife.doOneRound(); + gameOfLife.doOneRound(); + + assertEquals("---\n---\n---\n", gameOfLife.printCurrentGameState()); + } + From 9b61f85aecc33d4f93e0e1ca0fb2e37d49cbdc03 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 13 Oct 2015 22:35:36 +0300 Subject: [PATCH 100/101] Finished --- .besouro/2015101320174354/actions.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.besouro/2015101320174354/actions.txt b/.besouro/2015101320174354/actions.txt index db0b82b..cf11aa1 100644 --- a/.besouro/2015101320174354/actions.txt +++ b/.besouro/2015101320174354/actions.txt @@ -355,3 +355,5 @@ RefactoringAction 1444764707299 TestGameOfLife.java ADD void testDoOneRound()/2 RefactoringAction 1444764713316 TestGameOfLife.java RENAME testDoOneRound()/2=>void testDoOneRound_W() METHOD RefactoringAction 1444764716833 TestGameOfLife.java RENAME testDoOneRound_W()=>void testDoOneRound_TwoTimes() METHOD EditAction 1444764727489 TestGameOfLife.java 2185 6 27 10 +UnitTestCaseAction 1444764729608 TestGameOfLife.java OK +UnitTestSessionAction 1444764729609 TestGameOfLife OK From 50ed558d981b60187d292fec2df5a0b3233c1c82 Mon Sep 17 00:00:00 2001 From: somename Date: Tue, 13 Oct 2015 22:35:39 +0300 Subject: [PATCH 101/101] besouro automatic message