From 65bb3cf6b8412824c11dd4ce8d48edfdb38e4425 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:19:11 +0800 Subject: [PATCH 01/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 6 ++++++ .besouro/20151009231439788/besouroEpisodes.txt | 0 .besouro/20151009231439788/disagreements.txt | 0 .besouro/20151009231439788/randomHeuristicEpisodes.txt | 0 .besouro/20151009231439788/userComments.txt | 0 .besouro/20151009231439788/zorroEpisodes.txt | 0 src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 5 +++++ 7 files changed, 11 insertions(+) create mode 100644 .besouro/20151009231439788/actions.txt create mode 100644 .besouro/20151009231439788/besouroEpisodes.txt create mode 100644 .besouro/20151009231439788/disagreements.txt create mode 100644 .besouro/20151009231439788/randomHeuristicEpisodes.txt create mode 100644 .besouro/20151009231439788/userComments.txt create mode 100644 .besouro/20151009231439788/zorroEpisodes.txt diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt new file mode 100644 index 0000000..aabe6d2 --- /dev/null +++ b/.besouro/20151009231439788/actions.txt @@ -0,0 +1,6 @@ +FileOpenedAction 1444403680299 TestCell.java 200 1 1 0 +RefactoringAction 1444403694906 TestCell.java RENAME test()=>void testCellState() METHOD +RefactoringAction 1444403910054 Cell.java ADD Cell() METHOD +RefactoringAction 1444403915134 Cell.java RENAME Cell()=>Cell(String) METHOD +RefactoringAction 1444403943297 Cell.java ADD String state FIELD +EditAction 1444403951537 Cell.java 138 1 1 0 diff --git a/.besouro/20151009231439788/besouroEpisodes.txt b/.besouro/20151009231439788/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151009231439788/disagreements.txt b/.besouro/20151009231439788/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151009231439788/randomHeuristicEpisodes.txt b/.besouro/20151009231439788/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151009231439788/userComments.txt b/.besouro/20151009231439788/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151009231439788/zorroEpisodes.txt b/.besouro/20151009231439788/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 b66e9c8..60103c4 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -1,5 +1,10 @@ package org.unioulu.tol.sqatlab.gameoflife; public class Cell { + private String state; + public Cell(String s) + { + this.state = s; + } } From 2246ac73544c10dea47d0a26f450a6ebe509c28e Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:19:11 +0800 Subject: [PATCH 02/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index aabe6d2..8aa55c4 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -4,3 +4,4 @@ RefactoringAction 1444403910054 Cell.java ADD Cell() METHOD RefactoringAction 1444403915134 Cell.java RENAME Cell()=>Cell(String) METHOD RefactoringAction 1444403943297 Cell.java ADD String state FIELD EditAction 1444403951537 Cell.java 138 1 1 0 +EditAction 1444403951925 TestCell.java 234 1 2 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index d8de09e..fa575e5 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -7,8 +7,9 @@ public class TestCell { @Test - public void test() { - fail("Not yet implemented"); + public void testCellState() { + Cell c = new Cell("*"); + assertEquals("*", c.state); } } From b8bdb73be27c22b47e0bf5f3879a12f14953d966 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:21:01 +0800 Subject: [PATCH 03/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 9 +++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index 8aa55c4..b529ec4 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -5,3 +5,12 @@ RefactoringAction 1444403915134 Cell.java RENAME Cell()=>Cell(String) METHOD RefactoringAction 1444403943297 Cell.java ADD String state FIELD EditAction 1444403951537 Cell.java 138 1 1 0 EditAction 1444403951925 TestCell.java 234 1 2 1 +CompilationAction 1444403952476 TestCell.java +RefactoringAction 1444403974675 TestCell.java ADD import org.unioulu.tol.sqatlab.gameoflife.Cell IMPORT +UnitTestCaseAction 1444403991175 TestSudokuVerifier.java OK +UnitTestSessionAction 1444403991181 TestSudokuVerifier OK +UnitTestCaseAction 1444404011298 TestSudokuVerifier.java OK +UnitTestSessionAction 1444404011301 TestSudokuVerifier OK +RefactoringAction 1444404048265 Cell.java ADD String getState() METHOD +RefactoringAction 1444404048267 Cell.java ADD void setState(String) METHOD +EditAction 1444404061817 Cell.java 250 3 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 60103c4..4f5738d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -3,6 +3,14 @@ public class Cell { private String state; + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + public Cell(String s) { this.state = s; From b946d81b781745c16e21a252a9d41abe05321f41 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:24:26 +0800 Subject: [PATCH 04/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 6 ++++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index b529ec4..8bda8d5 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -14,3 +14,9 @@ UnitTestSessionAction 1444404011301 TestSudokuVerifier OK RefactoringAction 1444404048265 Cell.java ADD String getState() METHOD RefactoringAction 1444404048267 Cell.java ADD void setState(String) METHOD EditAction 1444404061817 Cell.java 250 3 3 0 +CompilationAction 1444404062049 TestCell.java +CompilationAction 1444404062286 TestCell.java +CompilationAction 1444404081652 TestCell.java +UnitTestCaseAction 1444404084996 TestCell.java OK +UnitTestSessionAction 1444404085001 TestCell OK +EditAction 1444404266513 TestCell.java 287 1 2 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index fa575e5..f43ec8f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -3,13 +3,14 @@ import static org.junit.Assert.*; import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.Cell; public class TestCell { @Test public void testCellState() { Cell c = new Cell("*"); - assertEquals("*", c.state); + assertEquals("-", c.getState()); } } From 79ebe3127dbd54e610005157d31ce8d67c3255a5 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:24:38 +0800 Subject: [PATCH 05/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index 8bda8d5..3ff15a3 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -20,3 +20,6 @@ CompilationAction 1444404081652 TestCell.java UnitTestCaseAction 1444404084996 TestCell.java OK UnitTestSessionAction 1444404085001 TestCell OK EditAction 1444404266513 TestCell.java 287 1 2 1 +UnitTestCaseAction 1444404268456 TestCell.java FAIL +UnitTestSessionAction 1444404268457 TestCell FAIL +EditAction 1444404278633 TestCell.java 287 1 2 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index f43ec8f..469739e 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 testCellState() { Cell c = new Cell("*"); - assertEquals("-", c.getState()); + assertEquals("*", c.getState()); } } From 78a979511b68c3dee98cd2826362603888340aa8 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:30:46 +0800 Subject: [PATCH 06/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 12 ++++++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 13 +++++++++++++ 2 files changed, 25 insertions(+) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index 3ff15a3..f189832 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -23,3 +23,15 @@ EditAction 1444404266513 TestCell.java 287 1 2 1 UnitTestCaseAction 1444404268456 TestCell.java FAIL UnitTestSessionAction 1444404268457 TestCell FAIL EditAction 1444404278633 TestCell.java 287 1 2 1 +UnitTestCaseAction 1444404280915 TestCell.java OK +UnitTestSessionAction 1444404280915 TestCell OK +FileOpenedAction 1444404316484 Grid.java 68 0 0 0 +FileOpenedAction 1444404318810 TestGrid.java 199 1 1 0 +RefactoringAction 1444404357329 TestGrid.java RENAME test()=>void testGrid() METHOD +RefactoringAction 1444404388532 TestGrid.java ADD import org.unioulu.tol.sqatlab.gameoflife.Grid IMPORT +RefactoringAction 1444404401862 Grid.java ADD Grid(int) METHOD +RefactoringAction 1444404470381 Grid.java ADD Cell FIELD +FileOpenedAction 1444404528049 Cell.java 250 3 3 0 +RefactoringAction 1444404640183 Grid.java ADD Cell METHOD +RefactoringAction 1444404640184 Grid.java ADD void setGrid(Cell METHOD +EditAction 1444404646165 Grid.java 260 3 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 19dbf0b..5f5a900 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -1,5 +1,18 @@ package org.unioulu.tol.sqatlab.gameoflife; public class Grid { + private Cell[][] grid; + + public Cell[][] getGrid() { + return grid; + } + public void setGrid(Cell[][] grid) { + this.grid = grid; + } + + public Grid(int i) { + this.grid = new Cell[i][i]; + } + } From ee99e641cc7c28c0e4ce228d0a854aeaf4c4cf38 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:30:46 +0800 Subject: [PATCH 07/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index f189832..25ac01d 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -35,3 +35,4 @@ FileOpenedAction 1444404528049 Cell.java 250 3 3 0 RefactoringAction 1444404640183 Grid.java ADD Cell METHOD RefactoringAction 1444404640184 Grid.java ADD void setGrid(Cell METHOD EditAction 1444404646165 Grid.java 260 3 3 0 +EditAction 1444404646392 TestGrid.java 250 1 1 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 9614d55..a76e4f5 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -2,12 +2,15 @@ import static org.junit.Assert.*; import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.Grid; public class TestGrid { @Test - public void test() { - fail("Not yet implemented"); + public void testGrid() { + Grid g = new Grid(5); + + } } From 8e5300688a7a1ab61ec48ad8f4637e041505707e Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:32:29 +0800 Subject: [PATCH 08/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index 25ac01d..b69216c 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -36,3 +36,5 @@ RefactoringAction 1444404640183 Grid.java ADD Cell METHOD RefactoringAction 1444404640184 Grid.java ADD void setGrid(Cell METHOD EditAction 1444404646165 Grid.java 260 3 3 0 EditAction 1444404646392 TestGrid.java 250 1 1 0 +FileOpenedAction 1444404701570 Cell.java 250 3 3 0 +EditAction 1444404749636 TestGrid.java 330 1 3 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index a76e4f5..30d7aaa 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -9,8 +9,8 @@ public class TestGrid { @Test public void testGrid() { Grid g = new Grid(5); - - + g.getGrid()[1][1].setState("-"); + assertEquals("-", g.getGrid()[1][1].getState()); } } From 12c411e727a4ca1f5933af37fbb082d17be8fb68 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:35:11 +0800 Subject: [PATCH 09/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index b69216c..f06e68a 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -38,3 +38,8 @@ EditAction 1444404646165 Grid.java 260 3 3 0 EditAction 1444404646392 TestGrid.java 250 1 1 0 FileOpenedAction 1444404701570 Cell.java 250 3 3 0 EditAction 1444404749636 TestGrid.java 330 1 3 1 +UnitTestCaseAction 1444404752929 TestGrid.java FAIL +UnitTestSessionAction 1444404752932 TestGrid FAIL +UnitTestCaseAction 1444404892941 TestGrid.java FAIL +UnitTestSessionAction 1444404892942 TestGrid FAIL +EditAction 1444404911494 TestGrid.java 330 1 3 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 30d7aaa..41e7af7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -9,7 +9,7 @@ public class TestGrid { @Test public void testGrid() { Grid g = new Grid(5); - g.getGrid()[1][1].setState("-"); + g.getGrid()[1][1].setState("*"); assertEquals("-", g.getGrid()[1][1].getState()); } From b9f3948f1b89394c4762fc50227a2688c6e8e254 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:36:20 +0800 Subject: [PATCH 10/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index f06e68a..5e923db 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -43,3 +43,8 @@ UnitTestSessionAction 1444404752932 TestGrid FAIL UnitTestCaseAction 1444404892941 TestGrid.java FAIL UnitTestSessionAction 1444404892942 TestGrid FAIL EditAction 1444404911494 TestGrid.java 330 1 3 1 +UnitTestCaseAction 1444404913542 TestGrid.java FAIL +UnitTestSessionAction 1444404913543 TestGrid FAIL +RefactoringAction 1444404933643 Grid.java ADD static void main(String METHOD +RefactoringAction 1444404944698 Grid.java ADD import org.junit.Assert.assertEquals IMPORT +EditAction 1444404980291 Grid.java 462 4 6 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 5f5a900..5777e83 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -1,5 +1,7 @@ package org.unioulu.tol.sqatlab.gameoflife; +import static org.junit.Assert.assertEquals; + public class Grid { private Cell[][] grid; @@ -15,4 +17,9 @@ public Grid(int i) { this.grid = new Cell[i][i]; } + public static void main(String[] args) { + Grid g = new Grid(5); + g.getGrid()[1][1].setState("*"); + System.out.println(g.getGrid()[1][1].getState()); + } } From fc930113094c6215b958654f6646dcf27894c4b8 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:37:15 +0800 Subject: [PATCH 11/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index 5e923db..3359597 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -48,3 +48,5 @@ UnitTestSessionAction 1444404913543 TestGrid FAIL RefactoringAction 1444404933643 Grid.java ADD static void main(String METHOD RefactoringAction 1444404944698 Grid.java ADD import org.junit.Assert.assertEquals IMPORT EditAction 1444404980291 Grid.java 462 4 6 0 +FileOpenedAction 1444404995026 Cell.java 250 3 3 0 +EditAction 1444405035009 Grid.java 418 4 5 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 5777e83..4eba432 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -1,7 +1,5 @@ package org.unioulu.tol.sqatlab.gameoflife; -import static org.junit.Assert.assertEquals; - public class Grid { private Cell[][] grid; @@ -20,6 +18,6 @@ public Grid(int i) { public static void main(String[] args) { Grid g = new Grid(5); g.getGrid()[1][1].setState("*"); - System.out.println(g.getGrid()[1][1].getState()); + //System.out.println(g.getGrid()[1][1].getState()); } } From cfcb4d72e3eddd26665c58aa96b6fbabc18db684 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:39:17 +0800 Subject: [PATCH 12/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index 3359597..ae5a364 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -50,3 +50,4 @@ RefactoringAction 1444404944698 Grid.java ADD import org.junit.Assert.assertEqua EditAction 1444404980291 Grid.java 462 4 6 0 FileOpenedAction 1444404995026 Cell.java 250 3 3 0 EditAction 1444405035009 Grid.java 418 4 5 0 +EditAction 1444405157894 Grid.java 420 4 4 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 4eba432..8bfb4a3 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -17,7 +17,7 @@ public Grid(int i) { public static void main(String[] args) { Grid g = new Grid(5); - g.getGrid()[1][1].setState("*"); + //g.getGrid()[1][1].setState("*"); //System.out.println(g.getGrid()[1][1].getState()); } } From 1f9db00a177d82b03842f41986ae315dee36f1cf Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:39:51 +0800 Subject: [PATCH 13/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index ae5a364..c5d0ec2 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -51,3 +51,4 @@ EditAction 1444404980291 Grid.java 462 4 6 0 FileOpenedAction 1444404995026 Cell.java 250 3 3 0 EditAction 1444405035009 Grid.java 418 4 5 0 EditAction 1444405157894 Grid.java 420 4 4 0 +EditAction 1444405191671 Grid.java 420 4 5 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 8bfb4a3..d3444d3 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -17,7 +17,7 @@ public Grid(int i) { public static void main(String[] args) { Grid g = new Grid(5); - //g.getGrid()[1][1].setState("*"); + (g.getGrid())[1][1].setState("*"); //System.out.println(g.getGrid()[1][1].getState()); } } From 1671a2a73c622c4790acd6fc985e09b0afb93ff2 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 9 Oct 2015 23:40:05 +0800 Subject: [PATCH 14/45] besouro automatic message --- .besouro/20151009231439788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151009231439788/actions.txt b/.besouro/20151009231439788/actions.txt index c5d0ec2..61a1a06 100644 --- a/.besouro/20151009231439788/actions.txt +++ b/.besouro/20151009231439788/actions.txt @@ -52,3 +52,4 @@ FileOpenedAction 1444404995026 Cell.java 250 3 3 0 EditAction 1444405035009 Grid.java 418 4 5 0 EditAction 1444405157894 Grid.java 420 4 4 0 EditAction 1444405191671 Grid.java 420 4 5 0 +EditAction 1444405205845 Grid.java 420 4 5 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index d3444d3..c8342b6 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -17,7 +17,7 @@ public Grid(int i) { public static void main(String[] args) { Grid g = new Grid(5); - (g.getGrid())[1][1].setState("*"); + (g.getGrid())[0][0].setState("*"); //System.out.println(g.getGrid()[1][1].getState()); } } From 36fcb2f59ab5f40bb5d4a1711c8074ad9be1946d Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 00:30:37 +0800 Subject: [PATCH 15/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 4 ++++ .besouro/20151014002642788/besouroEpisodes.txt | 0 .besouro/20151014002642788/disagreements.txt | 0 .../randomHeuristicEpisodes.txt | 0 .besouro/20151014002642788/userComments.txt | 0 .besouro/20151014002642788/zorroEpisodes.txt | 0 src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 16 ++++++++++++---- .../tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 8 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .besouro/20151014002642788/actions.txt create mode 100644 .besouro/20151014002642788/besouroEpisodes.txt create mode 100644 .besouro/20151014002642788/disagreements.txt create mode 100644 .besouro/20151014002642788/randomHeuristicEpisodes.txt create mode 100644 .besouro/20151014002642788/userComments.txt create mode 100644 .besouro/20151014002642788/zorroEpisodes.txt diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt new file mode 100644 index 0000000..6eee45a --- /dev/null +++ b/.besouro/20151014002642788/actions.txt @@ -0,0 +1,4 @@ +FileOpenedAction 1444753603434 TestGrid.java 330 1 3 1 +UnitTestCaseAction 1444753828577 TestGrid.java FAIL +UnitTestSessionAction 1444753828582 TestGrid FAIL +EditAction 1444753837294 TestGrid.java 330 1 3 1 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151014002642788/disagreements.txt b/.besouro/20151014002642788/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151014002642788/userComments.txt b/.besouro/20151014002642788/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index c8342b6..5147981 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -11,13 +11,21 @@ public void setGrid(Cell[][] grid) { this.grid = grid; } - public Grid(int i) { - this.grid = new Cell[i][i]; + public Grid(int n) { + this.grid = new Cell[n][n]; + int i = 0, j = 0; + for (; i < n; i++) + { + for (j = 0; j < n; j++) + { + grid[i][j] = new Cell(""); + } + } } public static void main(String[] args) { Grid g = new Grid(5); - (g.getGrid())[0][0].setState("*"); - //System.out.println(g.getGrid()[1][1].getState()); + g.getGrid()[0][0].setState("*"); + System.out.println(g.getGrid()[0][0].getState()); } } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 41e7af7..30d7aaa 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -9,7 +9,7 @@ public class TestGrid { @Test public void testGrid() { Grid g = new Grid(5); - g.getGrid()[1][1].setState("*"); + g.getGrid()[1][1].setState("-"); assertEquals("-", g.getGrid()[1][1].getState()); } From 64ae32e55e0d32c968b2eccf5fb4d1bd85b792d2 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 00:39:00 +0800 Subject: [PATCH 16/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 4 ++++ .besouro/20151014002642788/besouroEpisodes.txt | 1 + .besouro/20151014002642788/randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 6eee45a..fa4c5b1 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -2,3 +2,7 @@ FileOpenedAction 1444753603434 TestGrid.java 330 1 3 1 UnitTestCaseAction 1444753828577 TestGrid.java FAIL UnitTestSessionAction 1444753828582 TestGrid FAIL EditAction 1444753837294 TestGrid.java 330 1 3 1 +UnitTestCaseAction 1444753839850 TestGrid.java OK +UnitTestSessionAction 1444753839855 TestGrid OK +RefactoringAction 1444754339071 TestGrid.java RENAME testGrid()=>void testCreatGrid() METHOD +EditAction 1444754340771 TestGrid.java 335 1 3 1 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index e69de29..972d9a1 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -0,0 +1 @@ +1444753839855 regression 2 236 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index e69de29..1820663 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -0,0 +1 @@ +1444753839855 regression 2 236 false diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index e69de29..1820663 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -0,0 +1 @@ +1444753839855 regression 2 236 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 30d7aaa..c7b3839 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -7,7 +7,7 @@ public class TestGrid { @Test - public void testGrid() { + public void testCreatGrid() { Grid g = new Grid(5); g.getGrid()[1][1].setState("-"); assertEquals("-", g.getGrid()[1][1].getState()); From 0f2091b2b84fb644c6e8656d9380468e2f4237a3 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 00:39:05 +0800 Subject: [PATCH 17/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index fa4c5b1..72d585c 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -6,3 +6,5 @@ UnitTestCaseAction 1444753839850 TestGrid.java OK UnitTestSessionAction 1444753839855 TestGrid OK RefactoringAction 1444754339071 TestGrid.java RENAME testGrid()=>void testCreatGrid() METHOD EditAction 1444754340771 TestGrid.java 335 1 3 1 +RefactoringAction 1444754344650 TestGrid.java RENAME testCreatGrid()=>void testCreateGrid() METHOD +EditAction 1444754345428 TestGrid.java 336 1 3 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index c7b3839..6190137 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -7,7 +7,7 @@ public class TestGrid { @Test - public void testCreatGrid() { + public void testCreateGrid() { Grid g = new Grid(5); g.getGrid()[1][1].setState("-"); assertEquals("-", g.getGrid()[1][1].getState()); From cf63db1643637966efe7fc0a607bf32f930d5890 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 00:46:58 +0800 Subject: [PATCH 18/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 12 ++++++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 14 ++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 72d585c..31492aa 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -8,3 +8,15 @@ RefactoringAction 1444754339071 TestGrid.java RENAME testGrid()=>void testCreatG EditAction 1444754340771 TestGrid.java 335 1 3 1 RefactoringAction 1444754344650 TestGrid.java RENAME testCreatGrid()=>void testCreateGrid() METHOD EditAction 1444754345428 TestGrid.java 336 1 3 1 +RefactoringAction 1444754363157 TestGrid.java ADD void testCreateGrid()/2 METHOD +RefactoringAction 1444754369695 TestGrid.java RENAME testCreateGrid()/2=>void testGrid() METHOD +RefactoringAction 1444754372208 TestGrid.java RENAME testGrid()=>void testShowGrid() METHOD +RefactoringAction 1444754391254 TestGrid.java RENAME testShowGrid()=>void testGrid() METHOD +RefactoringAction 1444754393816 TestGrid.java RENAME testGrid()=>void testDisGrid() METHOD +RefactoringAction 1444754395854 TestGrid.java RENAME testDisGrid()=>void testDisplGrid() METHOD +RefactoringAction 1444754397401 TestGrid.java RENAME testDisplGrid()=>void testDisplyaGrid() METHOD +RefactoringAction 1444754399933 TestGrid.java RENAME testDisplyaGrid()=>void testDisplGrid() METHOD +RefactoringAction 1444754401464 TestGrid.java RENAME testDisplGrid()=>void testDisplayGrid() METHOD +RefactoringAction 1444754553307 Grid.java ADD void display() METHOD +RefactoringAction 1444754633325 Grid.java ADD int size FIELD +EditAction 1444754818240 Grid.java 762 5 11 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 5147981..692db4e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -2,6 +2,7 @@ public class Grid { private Cell[][] grid; + private int size; public Cell[][] getGrid() { return grid; @@ -12,6 +13,7 @@ public void setGrid(Cell[][] grid) { } public Grid(int n) { + this.size = n; this.grid = new Cell[n][n]; int i = 0, j = 0; for (; i < n; i++) @@ -28,4 +30,16 @@ public static void main(String[] args) { g.getGrid()[0][0].setState("*"); System.out.println(g.getGrid()[0][0].getState()); } + + public void display() { + int i = 0, j = 0; + for (; i < size; i++) + { + for (j = 0; j < size; j++) + { + System.out.println(grid[i][j].getState()); + } + System.out.println(); + } + } } From 014e4c79945a2f431b8ffd1edc0b82f84150ad0a Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 00:47:02 +0800 Subject: [PATCH 19/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 1 + .../unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 31492aa..9318f42 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -20,3 +20,4 @@ RefactoringAction 1444754401464 TestGrid.java RENAME testDisplGrid()=>void testD RefactoringAction 1444754553307 Grid.java ADD void display() METHOD RefactoringAction 1444754633325 Grid.java ADD int size FIELD EditAction 1444754818240 Grid.java 762 5 11 0 +EditAction 1444754821983 TestGrid.java 613 2 9 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 6190137..1e89c3e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -12,5 +12,16 @@ public void testCreateGrid() { g.getGrid()[1][1].setState("-"); assertEquals("-", g.getGrid()[1][1].getState()); } + + @Test + public void testDisplayGrid() { + Grid g = new Grid(2); + g.getGrid()[0][0].setState("-"); + g.getGrid()[0][1].setState("-"); + g.getGrid()[1][0].setState("-"); + g.getGrid()[1][1].setState("-"); + g.display(); + //assertEquals("-", g.getGrid()[1][1].getState()); + } } From 0d2b4116e9f770dfe01d78a8519e4020622a093b Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 00:47:47 +0800 Subject: [PATCH 20/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 4 ++++ .besouro/20151014002642788/besouroEpisodes.txt | 1 + .besouro/20151014002642788/randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 6 ------ 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 9318f42..7428458 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -21,3 +21,7 @@ RefactoringAction 1444754553307 Grid.java ADD void display() METHOD RefactoringAction 1444754633325 Grid.java ADD int size FIELD EditAction 1444754818240 Grid.java 762 5 11 0 EditAction 1444754821983 TestGrid.java 613 2 9 1 +UnitTestCaseAction 1444754826309 TestGrid.java OK +UnitTestSessionAction 1444754826311 TestGrid OK +RefactoringAction 1444754865125 Grid.java REMOVE main(String METHOD +EditAction 1444754867366 Grid.java 604 4 8 0 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index 972d9a1..f45bae1 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -1 +1,2 @@ 1444753839855 regression 2 236 true +1444754826311 test-addition 1 487 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index 1820663..7536ca4 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -1 +1,2 @@ 1444753839855 regression 2 236 false +1444754826311 test-addition 1 487 true diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index 1820663..976d6b0 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -1 +1,2 @@ 1444753839855 regression 2 236 false +1444754826311 test-addition 1 986 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 692db4e..23c2cbc 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -24,12 +24,6 @@ public Grid(int n) { } } } - - public static void main(String[] args) { - Grid g = new Grid(5); - g.getGrid()[0][0].setState("*"); - System.out.println(g.getGrid()[0][0].getState()); - } public void display() { int i = 0, j = 0; From add19241546f0f3b5c29b4f2955c9ef74eb76470 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 00:48:01 +0800 Subject: [PATCH 21/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 7428458..f4b40cf 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -25,3 +25,4 @@ UnitTestCaseAction 1444754826309 TestGrid.java OK UnitTestSessionAction 1444754826311 TestGrid OK RefactoringAction 1444754865125 Grid.java REMOVE main(String METHOD EditAction 1444754867366 Grid.java 604 4 8 0 +EditAction 1444754881132 Grid.java 602 4 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 23c2cbc..c8f4b83 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -31,7 +31,7 @@ public void display() { { for (j = 0; j < size; j++) { - System.out.println(grid[i][j].getState()); + System.out.print(grid[i][j].getState()); } System.out.println(); } From 910eb37af3a8298fcbf2b25ee1df38dbb10cd56e Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 03:39:15 +0800 Subject: [PATCH 22/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 9 +++++++++ .besouro/20151014002642788/besouroEpisodes.txt | 1 + .../20151014002642788/randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 1 + .../tol/sqatlab/gameoflife/test/TestGrid.java | 15 +++++++++++++-- 5 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index f4b40cf..952de4e 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -26,3 +26,12 @@ UnitTestSessionAction 1444754826311 TestGrid OK RefactoringAction 1444754865125 Grid.java REMOVE main(String METHOD EditAction 1444754867366 Grid.java 604 4 8 0 EditAction 1444754881132 Grid.java 602 4 8 0 +UnitTestCaseAction 1444754885111 TestGrid.java OK +UnitTestSessionAction 1444754885112 TestGrid OK +RefactoringAction 1444765123130 TestGrid.java ADD void testDisplayGrid()/2 METHOD +RefactoringAction 1444765130161 TestGrid.java RENAME testDisplayGrid()/2=>void testGrid() METHOD +RefactoringAction 1444765132189 TestGrid.java RENAME testGrid()=>void test() METHOD +RefactoringAction 1444765136705 TestGrid.java RENAME test()=>void testCount() METHOD +RefactoringAction 1444765143726 TestGrid.java RENAME testCreateGrid()=>void testCreate() METHOD +RefactoringAction 1444765147738 TestGrid.java RENAME testDisplayGrid()=>void testDisplay() METHOD +EditAction 1444765154966 TestGrid.java 876 3 15 1 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index f45bae1..357363a 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -1,2 +1,3 @@ 1444753839855 regression 2 236 true 1444754826311 test-addition 1 487 true +1444754885112 refactoring 2A 19 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index 7536ca4..4ae9a36 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -1,2 +1,3 @@ 1444753839855 regression 2 236 false 1444754826311 test-addition 1 487 true +1444754885112 refactoring 2A 19 false diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index 976d6b0..4810834 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -1,2 +1,3 @@ 1444753839855 regression 2 236 false 1444754826311 test-addition 1 986 false +1444754885112 refactoring 2A 58 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 1e89c3e..a63e02e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -7,14 +7,25 @@ public class TestGrid { @Test - public void testCreateGrid() { + public void testCreate() { Grid g = new Grid(5); g.getGrid()[1][1].setState("-"); assertEquals("-", g.getGrid()[1][1].getState()); } @Test - public void testDisplayGrid() { + public void testDisplay() { + Grid g = new Grid(2); + g.getGrid()[0][0].setState("-"); + g.getGrid()[0][1].setState("-"); + g.getGrid()[1][0].setState("-"); + g.getGrid()[1][1].setState("-"); + g.display(); + //assertEquals("-", g.getGrid()[1][1].getState()); + } + + @Test + public void testCount() { Grid g = new Grid(2); g.getGrid()[0][0].setState("-"); g.getGrid()[0][1].setState("-"); From 3da2d588749b436af71746b0df2c413c40e1bda7 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 03:40:59 +0800 Subject: [PATCH 23/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 952de4e..206a5d9 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -35,3 +35,5 @@ RefactoringAction 1444765136705 TestGrid.java RENAME test()=>void testCount() ME RefactoringAction 1444765143726 TestGrid.java RENAME testCreateGrid()=>void testCreate() METHOD RefactoringAction 1444765147738 TestGrid.java RENAME testDisplayGrid()=>void testDisplay() METHOD EditAction 1444765154966 TestGrid.java 876 3 15 1 +RefactoringAction 1444765252676 Grid.java ADD Object count(int, int) METHOD +EditAction 1444765259600 TestGrid.java 842 3 15 2 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index a63e02e..2f083e8 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -31,8 +31,7 @@ public void testCount() { g.getGrid()[0][1].setState("-"); g.getGrid()[1][0].setState("-"); g.getGrid()[1][1].setState("-"); - g.display(); - //assertEquals("-", g.getGrid()[1][1].getState()); + assertEquals(0, g.count(0, 0)); } } From 79d4cd36e527c36f548d5c28dfa54a81e5f83398 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 03:41:16 +0800 Subject: [PATCH 24/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 206a5d9..dda424d 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -37,3 +37,5 @@ RefactoringAction 1444765147738 TestGrid.java RENAME testDisplayGrid()=>void tes EditAction 1444765154966 TestGrid.java 876 3 15 1 RefactoringAction 1444765252676 Grid.java ADD Object count(int, int) METHOD EditAction 1444765259600 TestGrid.java 842 3 15 2 +CompilationAction 1444765259840 TestGrid.java +EditAction 1444765276517 Grid.java 695 5 9 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index c8f4b83..a11e5fa 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -36,4 +36,9 @@ public void display() { System.out.println(); } } + + public Object count(int i, int j) { + // TODO Auto-generated method stub + return null; + } } From 7810b9f2b2efe9c90f310b48f4de9cccb2f9b83f Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:00:37 +0800 Subject: [PATCH 25/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 5 + .../20151014002642788/besouroEpisodes.txt | 2 + .../randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 7 +- .../unioulu/tol/sqatlab/gameoflife/Grid.java | 165 +++++++++++++++++- 5 files changed, 174 insertions(+), 6 deletions(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index dda424d..4d6e705 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -39,3 +39,8 @@ RefactoringAction 1444765252676 Grid.java ADD Object count(int, int) METHOD EditAction 1444765259600 TestGrid.java 842 3 15 2 CompilationAction 1444765259840 TestGrid.java EditAction 1444765276517 Grid.java 695 5 9 0 +UnitTestCaseAction 1444765278351 TestGrid.java FAIL +UnitTestSessionAction 1444765278351 TestGrid FAIL +UnitTestCaseAction 1444766024571 TestGrid.java OK +UnitTestSessionAction 1444766024571 TestGrid OK +EditAction 1444766437664 Grid.java 3302 5 10 0 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index 357363a..b9f1f63 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -1,3 +1,5 @@ 1444753839855 regression 2 236 true 1444754826311 test-addition 1 487 true 1444754885112 refactoring 2A 19 true +1444766024571 test-first 2 901 true +1444766024572 test-first 2 901 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index 4ae9a36..ddd6b1f 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -1,3 +1,4 @@ 1444753839855 regression 2 236 false 1444754826311 test-addition 1 487 true 1444754885112 refactoring 2A 19 false +1444766024571 test-first 2 901 true diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index 4810834..b5551e9 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -1,3 +1,4 @@ -1444753839855 regression 2 236 false -1444754826311 test-addition 1 986 false -1444754885112 refactoring 2A 58 false +1444753839855 regression 2 236 true +1444754826311 test-addition 1 986 true +1444754885112 refactoring 2A 58 true +1444766024571 test-first 2 11139 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index a11e5fa..907a0eb 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -37,8 +37,167 @@ public void display() { } } - public Object count(int i, int j) { - // TODO Auto-generated method stub - return null; + public int count(int i, int j) { + int cnt = 0; + if (i == 0 && j == 0) + { + if (grid[0][1].getState().equals("*")) + { + cnt++; + } + if (grid[1][0].getState().equals("*")) + { + cnt++; + } + if (grid[1][1].getState().equals("*")) + { + cnt++; + } + return cnt; + } + else if (i == 0 && j == size - 1) + { + if (grid[0][size - 2].getState().equals("*")) + { + cnt++; + } + if (grid[1][size - 1].getState().equals("*")) + { + cnt++; + } + if (grid[1][size - 2].getState().equals("*")) + { + cnt++; + } + return cnt; + } + else if (i == size - 1 && j == 0) + { + if (grid[size - 2][0].getState().equals("*")) + { + cnt++; + } + if (grid[size - 1][1].getState().equals("*")) + { + cnt++; + } + if (grid[size - 2][1].getState().equals("*")) + { + cnt++; + } + return cnt; + } + else if (i == size - 1 && j == size - 1) + { + if (grid[size - 2][size - 1].getState().equals("*")) + { + cnt++; + } + if (grid[size - 1][size - 2].getState().equals("*")) + { + cnt++; + } + if (grid[size - 2][size - 2].getState().equals("*")) + { + cnt++; + } + return cnt; + } + else if (i == 0) + { + if (grid[0][j - 1].getState().equals("*")) + { + cnt++; + } + if (grid[0][j + 1].getState().equals("*")) + { + cnt++; + } + if (grid[1][j - 1].getState().equals("*")) + { + cnt++; + } + if (grid[1][j + 1].getState().equals("*")) + { + cnt++; + } + if (grid[1][j].getState().equals("*")) + { + cnt++; + } + return cnt; + } + else if (i == size - 1) + { + if (grid[size - 1][j - 1].getState().equals("*")) + { + cnt++; + } + if (grid[size - 1][j + 1].getState().equals("*")) + { + cnt++; + } + if (grid[size - 2][j - 1].getState().equals("*")) + { + cnt++; + } + if (grid[size - 2][j + 1].getState().equals("*")) + { + cnt++; + } + if (grid[size - 2][j].getState().equals("*")) + { + cnt++; + } + return cnt; + } + else if (j == 0) + { + if (grid[i - 1][0].getState().equals("*")) + { + cnt++; + } + if (grid[i - 1][1].getState().equals("*")) + { + cnt++; + } + if (grid[i][1].getState().equals("*")) + { + cnt++; + } + if (grid[i + 1][0].getState().equals("*")) + { + cnt++; + } + if (grid[i + 1][1].getState().equals("*")) + { + cnt++; + } + return cnt; + } + else if (j == size - 1) + { + if (grid[i - 1][size - 2].getState().equals("*")) + { + cnt++; + } + if (grid[i - 1][size - 1].getState().equals("*")) + { + cnt++; + } + if (grid[i][size - 2].getState().equals("*")) + { + cnt++; + } + if (grid[i + 1][size - 2].getState().equals("*")) + { + cnt++; + } + if (grid[i + 1][size - 1].getState().equals("*")) + { + cnt++; + } + return cnt; + } } } From 4c5b82525e6dfb26c78f0fb3e3e6f564dc7b322e Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:02:15 +0800 Subject: [PATCH 26/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 2 ++ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 35 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 4d6e705..8857a95 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -44,3 +44,5 @@ UnitTestSessionAction 1444765278351 TestGrid FAIL UnitTestCaseAction 1444766024571 TestGrid.java OK UnitTestSessionAction 1444766024571 TestGrid OK EditAction 1444766437664 Grid.java 3302 5 10 0 +CompilationAction 1444766437900 Grid.java +EditAction 1444766535761 Grid.java 3869 5 10 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 907a0eb..194f179 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -199,5 +199,40 @@ else if (j == size - 1) } return cnt; } + else + { + if (grid[i - 1][j - 1].getState().equals("*")) + { + cnt++; + } + if (grid[i - 1][j].getState().equals("*")) + { + cnt++; + } + if (grid[i - 1][j + 1].getState().equals("*")) + { + cnt++; + } + if (grid[i][j - 1].getState().equals("*")) + { + cnt++; + } + if (grid[i][j + 1].getState().equals("*")) + { + cnt++; + } + if (grid[i + 1][j - 1].getState().equals("*")) + { + cnt++; + } + if (grid[i + 1][j].getState().equals("*")) + { + cnt++; + } + if (grid[i + 1][j + 1].getState().equals("*")) + { + cnt++; + } + } } } From 997d093b63f806a369e2c3fec32f5c9925d752c6 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:02:44 +0800 Subject: [PATCH 27/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 2 files changed, 3 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 8857a95..9350a23 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -46,3 +46,5 @@ UnitTestSessionAction 1444766024571 TestGrid OK EditAction 1444766437664 Grid.java 3302 5 10 0 CompilationAction 1444766437900 Grid.java EditAction 1444766535761 Grid.java 3869 5 10 0 +CompilationAction 1444766536010 Grid.java +EditAction 1444766564539 Grid.java 3884 5 10 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 194f179..60615c7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -233,6 +233,7 @@ else if (j == size - 1) { cnt++; } + return cnt; } } } From 43d8879b8e018960cbf23323762db778f953b4ad Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:05:57 +0800 Subject: [PATCH 28/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 3 +++ .../tol/sqatlab/gameoflife/test/TestGrid.java | 19 ++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 9350a23..176b746 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -48,3 +48,6 @@ CompilationAction 1444766437900 Grid.java EditAction 1444766535761 Grid.java 3869 5 10 0 CompilationAction 1444766536010 Grid.java EditAction 1444766564539 Grid.java 3884 5 10 0 +RefactoringAction 1444766596318 TestGrid.java ADD void testCount()/2 METHOD +RefactoringAction 1444766605357 TestGrid.java RENAME testCount()/2=>void testCount2() METHOD +EditAction 1444766757282 TestGrid.java 1324 4 28 5 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 2f083e8..0c285e2 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -33,5 +33,22 @@ public void testCount() { g.getGrid()[1][1].setState("-"); assertEquals(0, g.count(0, 0)); } - + + @Test + public void testCount2() { + Grid g = new Grid(3); + g.getGrid()[0][0].setState("*"); + g.getGrid()[0][1].setState("*"); + g.getGrid()[0][2].setState("*"); + g.getGrid()[1][0].setState("*"); + g.getGrid()[1][1].setState("-"); + g.getGrid()[1][2].setState("*"); + g.getGrid()[2][0].setState("*"); + g.getGrid()[2][1].setState("*"); + g.getGrid()[2][2].setState("*"); + assertEquals(8, g.count(1, 1)); + assertEquals(2, g.count(0, 0)); + assertEquals(4, g.count(0, 1)); + } + } From aa42527038228f794ca1a78e01f07dcaee4067f8 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:08:16 +0800 Subject: [PATCH 29/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 6 ++++++ .besouro/20151014002642788/besouroEpisodes.txt | 6 ++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 1 + .../tol/sqatlab/gameoflife/test/TestGrid.java | 17 +++++++++++++++++ 5 files changed, 31 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 176b746..eb5ffb0 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -51,3 +51,9 @@ EditAction 1444766564539 Grid.java 3884 5 10 0 RefactoringAction 1444766596318 TestGrid.java ADD void testCount()/2 METHOD RefactoringAction 1444766605357 TestGrid.java RENAME testCount()/2=>void testCount2() METHOD EditAction 1444766757282 TestGrid.java 1324 4 28 5 +UnitTestCaseAction 1444766759757 TestGrid.java OK +UnitTestSessionAction 1444766759758 TestGrid OK +RefactoringAction 1444766807582 TestGrid.java ADD void testCount2()/2 METHOD +RefactoringAction 1444766816107 TestGrid.java RENAME testCount2()/2=>void test() METHOD +RefactoringAction 1444766818622 TestGrid.java RENAME test()=>void testTick() METHOD +EditAction 1444766896740 TestGrid.java 1743 5 41 5 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index b9f1f63..081ea55 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -3,3 +3,9 @@ 1444754885112 refactoring 2A 19 true 1444766024571 test-first 2 901 true 1444766024572 test-first 2 901 true +1444766759758 test-last 1 322 false +1444766759759 test-last 1 322 false +1444766759760 test-last 1 322 false +1444766759761 test-last 1 322 false +1444766759762 test-last 1 322 false +1444766759763 test-last 1 322 false diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index ddd6b1f..da271cb 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -2,3 +2,4 @@ 1444754826311 test-addition 1 487 true 1444754885112 refactoring 2A 19 false 1444766024571 test-first 2 901 true +1444766759758 test-last 1 322 false diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index b5551e9..7c92e81 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -2,3 +2,4 @@ 1444754826311 test-addition 1 986 true 1444754885112 refactoring 2A 58 true 1444766024571 test-first 2 11139 true +1444766759758 test-last 1 735 false diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 0c285e2..6e4841c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -51,4 +51,21 @@ public void testCount2() { assertEquals(4, g.count(0, 1)); } + @Test + public void testTick() { + Grid g = new Grid(3); + g.getGrid()[0][0].setState("*"); + g.getGrid()[0][1].setState("*"); + g.getGrid()[0][2].setState("*"); + g.getGrid()[1][0].setState("*"); + g.getGrid()[1][1].setState("-"); + g.getGrid()[1][2].setState("*"); + g.getGrid()[2][0].setState("*"); + g.getGrid()[2][1].setState("*"); + g.getGrid()[2][2].setState("*"); + g.display(); + g.tick(); + g.display(); + } + } From 0ebd5f2fb517731cf6ae0e363553cee4b64d0aea Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:20:03 +0800 Subject: [PATCH 30/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 5 +++ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 40 +++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index eb5ffb0..a619c24 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -57,3 +57,8 @@ RefactoringAction 1444766807582 TestGrid.java ADD void testCount2()/2 METHOD RefactoringAction 1444766816107 TestGrid.java RENAME testCount2()/2=>void test() METHOD RefactoringAction 1444766818622 TestGrid.java RENAME test()=>void testTick() METHOD EditAction 1444766896740 TestGrid.java 1743 5 41 5 +CompilationAction 1444766896967 TestGrid.java +UnitTestCaseAction 1444766902284 TestGrid.java FAIL +UnitTestSessionAction 1444766902285 TestGrid FAIL +RefactoringAction 1444766912395 Grid.java ADD void tick() METHOD +EditAction 1444767603448 Grid.java 4561 6 14 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 60615c7..459c67c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -236,4 +236,44 @@ else if (j == size - 1) return cnt; } } + + public void tick() { + Grid help = new Grid(size); + int i = 0, j = 0; + for (; i < size; i++) + { + for (j = 0; j < size; j++) + { + if (grid[i][j].getState().equals("*")) + { + if (count(i, j) == 2 || count(i, j) == 3) + { + help.getGrid()[i][j].setState("*"); + } + else + { + help.getGrid()[i][j].setState("-"); + } + } + else + { + if (count(i, j) == 3) + { + help.getGrid()[i][j].setState("*"); + } + else + { + help.getGrid()[i][j].setState("-"); + } + } + } + } + for (i = 0; i < size; i++) + { + for (j = 0; j < size; j++) + { + grid[i][j].setState(help.getGrid()[i][i].getState()); + } + } + } } From e4a1b3c1412a310311322234d25694aa37c8bca1 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:21:24 +0800 Subject: [PATCH 31/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 3 +++ .besouro/20151014002642788/besouroEpisodes.txt | 1 + .besouro/20151014002642788/randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index a619c24..70ac2e7 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -62,3 +62,6 @@ UnitTestCaseAction 1444766902284 TestGrid.java FAIL UnitTestSessionAction 1444766902285 TestGrid FAIL RefactoringAction 1444766912395 Grid.java ADD void tick() METHOD EditAction 1444767603448 Grid.java 4561 6 14 0 +UnitTestCaseAction 1444767610496 TestGrid.java OK +UnitTestSessionAction 1444767610497 TestGrid OK +EditAction 1444767684579 TestGrid.java 1743 5 41 5 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index 081ea55..f2ea443 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -9,3 +9,4 @@ 1444766759761 test-last 1 322 false 1444766759762 test-last 1 322 false 1444766759763 test-last 1 322 false +1444767610497 test-first 1 802 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index da271cb..5781940 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -3,3 +3,4 @@ 1444754885112 refactoring 2A 19 false 1444766024571 test-first 2 901 true 1444766759758 test-last 1 322 false +1444767610497 test-first 1 802 true diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index 7c92e81..45ba5ea 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -3,3 +3,4 @@ 1444754885112 refactoring 2A 58 true 1444766024571 test-first 2 11139 true 1444766759758 test-last 1 735 false +1444767610497 test-first 1 850 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 6e4841c..16341ad 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -58,7 +58,7 @@ public void testTick() { g.getGrid()[0][1].setState("*"); g.getGrid()[0][2].setState("*"); g.getGrid()[1][0].setState("*"); - g.getGrid()[1][1].setState("-"); + g.getGrid()[1][1].setState("*"); g.getGrid()[1][2].setState("*"); g.getGrid()[2][0].setState("*"); g.getGrid()[2][1].setState("*"); From fa61ea2e0204bbdb50adf43160ae622c1c7cbe2d Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:23:08 +0800 Subject: [PATCH 32/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 3 +++ .besouro/20151014002642788/besouroEpisodes.txt | 1 + .besouro/20151014002642788/randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 70ac2e7..2730cc2 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -65,3 +65,6 @@ EditAction 1444767603448 Grid.java 4561 6 14 0 UnitTestCaseAction 1444767610496 TestGrid.java OK UnitTestSessionAction 1444767610497 TestGrid OK EditAction 1444767684579 TestGrid.java 1743 5 41 5 +UnitTestCaseAction 1444767686376 TestGrid.java OK +UnitTestSessionAction 1444767686377 TestGrid OK +EditAction 1444767788335 TestGrid.java 1743 5 41 5 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index f2ea443..57834dd 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -10,3 +10,4 @@ 1444766759762 test-last 1 322 false 1444766759763 test-last 1 322 false 1444767610497 test-first 1 802 true +1444767686377 regression 1 1 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index 5781940..cfd03ca 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -4,3 +4,4 @@ 1444766024571 test-first 2 901 true 1444766759758 test-last 1 322 false 1444767610497 test-first 1 802 true +1444767686377 regression 1 1 false diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index 45ba5ea..926a6fd 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -4,3 +4,4 @@ 1444766024571 test-first 2 11139 true 1444766759758 test-last 1 735 false 1444767610497 test-first 1 850 true +1444767686377 regression 1 75 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 16341ad..6e4841c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -58,7 +58,7 @@ public void testTick() { g.getGrid()[0][1].setState("*"); g.getGrid()[0][2].setState("*"); g.getGrid()[1][0].setState("*"); - g.getGrid()[1][1].setState("*"); + g.getGrid()[1][1].setState("-"); g.getGrid()[1][2].setState("*"); g.getGrid()[2][0].setState("*"); g.getGrid()[2][1].setState("*"); From 67d7a7c38d3102b0f0f1eff31cf0f5909726940b Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:26:53 +0800 Subject: [PATCH 33/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 3 +++ .besouro/20151014002642788/besouroEpisodes.txt | 1 + .besouro/20151014002642788/randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 1 + 5 files changed, 7 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 2730cc2..6a12f15 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -68,3 +68,6 @@ EditAction 1444767684579 TestGrid.java 1743 5 41 5 UnitTestCaseAction 1444767686376 TestGrid.java OK UnitTestSessionAction 1444767686377 TestGrid OK EditAction 1444767788335 TestGrid.java 1743 5 41 5 +UnitTestCaseAction 1444767930144 TestGrid.java OK +UnitTestSessionAction 1444767930145 TestGrid OK +EditAction 1444768013735 TestGrid.java 1777 5 42 6 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index 57834dd..9649086 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -11,3 +11,4 @@ 1444766759763 test-last 1 322 false 1444767610497 test-first 1 802 true 1444767686377 regression 1 1 true +1444767930145 regression 1 141 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index cfd03ca..3b9ca4c 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -5,3 +5,4 @@ 1444766759758 test-last 1 322 false 1444767610497 test-first 1 802 true 1444767686377 regression 1 1 false +1444767930145 regression 1 141 false diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index 926a6fd..9727fbd 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -5,3 +5,4 @@ 1444766759758 test-last 1 735 false 1444767610497 test-first 1 850 true 1444767686377 regression 1 75 true +1444767930145 regression 1 243 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 6e4841c..1abebfd 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -49,6 +49,7 @@ public void testCount2() { assertEquals(8, g.count(1, 1)); assertEquals(2, g.count(0, 0)); assertEquals(4, g.count(0, 1)); + assertEquals(4, g.count(1, 0)); } @Test From 21198d5e2d081d33bd45a5a954b96ea96a2eeae9 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:30:15 +0800 Subject: [PATCH 34/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 5 +++++ .besouro/20151014002642788/besouroEpisodes.txt | 2 ++ .besouro/20151014002642788/randomHeuristicEpisodes.txt | 2 ++ .besouro/20151014002642788/zorroEpisodes.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 ++ 5 files changed, 13 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 6a12f15..fc0899e 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -71,3 +71,8 @@ EditAction 1444767788335 TestGrid.java 1743 5 41 5 UnitTestCaseAction 1444767930144 TestGrid.java OK UnitTestSessionAction 1444767930145 TestGrid OK EditAction 1444768013735 TestGrid.java 1777 5 42 6 +UnitTestCaseAction 1444768015724 TestGrid.java OK +UnitTestSessionAction 1444768015724 TestGrid OK +UnitTestCaseAction 1444768104107 TestGrid.java OK +UnitTestSessionAction 1444768104108 TestGrid OK +EditAction 1444768215238 TestGrid.java 1845 5 44 8 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index 9649086..ab1cc88 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -12,3 +12,5 @@ 1444767610497 test-first 1 802 true 1444767686377 regression 1 1 true 1444767930145 regression 1 141 true +1444768015724 test-addition 1 1 true +1444768104108 regression 1 0 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index 3b9ca4c..7cec910 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -6,3 +6,5 @@ 1444767610497 test-first 1 802 true 1444767686377 regression 1 1 false 1444767930145 regression 1 141 false +1444768015724 test-addition 1 1 true +1444768104108 regression 1 0 false diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index 9727fbd..f76d14f 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -6,3 +6,5 @@ 1444767610497 test-first 1 850 true 1444767686377 regression 1 75 true 1444767930145 regression 1 243 true +1444768015724 test-addition 1 85 true +1444768104108 regression 1 88 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 1abebfd..1c8a985 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -50,6 +50,8 @@ public void testCount2() { assertEquals(2, g.count(0, 0)); assertEquals(4, g.count(0, 1)); assertEquals(4, g.count(1, 0)); + assertEquals(4, g.count(2, 1)); + assertEquals(4, g.count(1, 2)); } @Test From 6f5688de80dd2a984cdc95273ab11747b78292d8 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:32:31 +0800 Subject: [PATCH 35/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 3 +++ .besouro/20151014002642788/besouroEpisodes.txt | 1 + .besouro/20151014002642788/randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 ++ 5 files changed, 8 insertions(+) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index fc0899e..44bc1d6 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -76,3 +76,6 @@ UnitTestSessionAction 1444768015724 TestGrid OK UnitTestCaseAction 1444768104107 TestGrid.java OK UnitTestSessionAction 1444768104108 TestGrid OK EditAction 1444768215238 TestGrid.java 1845 5 44 8 +UnitTestCaseAction 1444768217415 TestGrid.java OK +UnitTestSessionAction 1444768217415 TestGrid OK +EditAction 1444768351212 TestGrid.java 1872 5 46 8 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index ab1cc88..2b5c315 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -14,3 +14,4 @@ 1444767930145 regression 1 141 true 1444768015724 test-addition 1 1 true 1444768104108 regression 1 0 true +1444768217415 test-addition 1 2 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index 7cec910..190db12 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -8,3 +8,4 @@ 1444767930145 regression 1 141 false 1444768015724 test-addition 1 1 true 1444768104108 regression 1 0 false +1444768217415 test-addition 1 2 false diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index f76d14f..68f0379 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -8,3 +8,4 @@ 1444767930145 regression 1 243 true 1444768015724 test-addition 1 85 true 1444768104108 regression 1 88 true +1444768217415 test-addition 1 113 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 1c8a985..298d46e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -69,6 +69,8 @@ public void testTick() { g.display(); g.tick(); g.display(); + g.tick(); + g.display(); } } From 3e40b8bcbdc10cb35f1e299d7c1b97327d75d7c5 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:34:33 +0800 Subject: [PATCH 36/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 4 ++++ .besouro/20151014002642788/besouroEpisodes.txt | 1 + .../randomHeuristicEpisodes.txt | 1 + .besouro/20151014002642788/zorroEpisodes.txt | 1 + .../tol/sqatlab/gameoflife/GameOfLife.java | 18 +++++++++++++++++- 5 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 44bc1d6..e45fdd2 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -79,3 +79,7 @@ EditAction 1444768215238 TestGrid.java 1845 5 44 8 UnitTestCaseAction 1444768217415 TestGrid.java OK UnitTestSessionAction 1444768217415 TestGrid OK EditAction 1444768351212 TestGrid.java 1872 5 46 8 +UnitTestCaseAction 1444768353167 TestGrid.java OK +UnitTestSessionAction 1444768353167 TestGrid OK +RefactoringAction 1444768422089 GameOfLife.java ADD static void main(String METHOD +EditAction 1444768472991 GameOfLife.java 526 1 15 0 diff --git a/.besouro/20151014002642788/besouroEpisodes.txt b/.besouro/20151014002642788/besouroEpisodes.txt index 2b5c315..dc42537 100644 --- a/.besouro/20151014002642788/besouroEpisodes.txt +++ b/.besouro/20151014002642788/besouroEpisodes.txt @@ -15,3 +15,4 @@ 1444768015724 test-addition 1 1 true 1444768104108 regression 1 0 true 1444768217415 test-addition 1 2 true +1444768353167 refactoring 1A 1 true diff --git a/.besouro/20151014002642788/randomHeuristicEpisodes.txt b/.besouro/20151014002642788/randomHeuristicEpisodes.txt index 190db12..60477a5 100644 --- a/.besouro/20151014002642788/randomHeuristicEpisodes.txt +++ b/.besouro/20151014002642788/randomHeuristicEpisodes.txt @@ -9,3 +9,4 @@ 1444768015724 test-addition 1 1 true 1444768104108 regression 1 0 false 1444768217415 test-addition 1 2 false +1444768353167 refactoring 1A 1 true diff --git a/.besouro/20151014002642788/zorroEpisodes.txt b/.besouro/20151014002642788/zorroEpisodes.txt index 68f0379..420d76f 100644 --- a/.besouro/20151014002642788/zorroEpisodes.txt +++ b/.besouro/20151014002642788/zorroEpisodes.txt @@ -9,3 +9,4 @@ 1444768015724 test-addition 1 85 true 1444768104108 regression 1 88 true 1444768217415 test-addition 1 113 true +1444768353167 refactoring 1A 135 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index dbd5f88..f67c401 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,5 +1,21 @@ package org.unioulu.tol.sqatlab.gameoflife; public class GameOfLife { - + public static void main(String[] args) { + Grid g = new Grid(3); + g.getGrid()[0][0].setState("*"); + g.getGrid()[0][1].setState("*"); + g.getGrid()[0][2].setState("*"); + g.getGrid()[1][0].setState("*"); + g.getGrid()[1][1].setState("-"); + g.getGrid()[1][2].setState("*"); + g.getGrid()[2][0].setState("*"); + g.getGrid()[2][1].setState("*"); + g.getGrid()[2][2].setState("*"); + g.display(); + g.tick(); + g.display(); + g.tick(); + g.display(); + } } From 8b91f9bed0607209754098ec9cf55536be0eea7f Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:36:05 +0800 Subject: [PATCH 37/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index e45fdd2..bfc6259 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -83,3 +83,4 @@ UnitTestCaseAction 1444768353167 TestGrid.java OK UnitTestSessionAction 1444768353167 TestGrid OK RefactoringAction 1444768422089 GameOfLife.java ADD static void main(String METHOD EditAction 1444768472991 GameOfLife.java 526 1 15 0 +EditAction 1444768565553 GameOfLife.java 351 1 10 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index f67c401..376b584 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -2,16 +2,11 @@ public class GameOfLife { public static void main(String[] args) { - Grid g = new Grid(3); + Grid g = new Grid(2); g.getGrid()[0][0].setState("*"); g.getGrid()[0][1].setState("*"); - g.getGrid()[0][2].setState("*"); g.getGrid()[1][0].setState("*"); - g.getGrid()[1][1].setState("-"); - g.getGrid()[1][2].setState("*"); - g.getGrid()[2][0].setState("*"); - g.getGrid()[2][1].setState("*"); - g.getGrid()[2][2].setState("*"); + g.getGrid()[1][1].setState("*"); g.display(); g.tick(); g.display(); From 2139182f47a527ec9755edcbe5063dd9f247483f Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:36:32 +0800 Subject: [PATCH 38/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index bfc6259..37e60e1 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -84,3 +84,4 @@ UnitTestSessionAction 1444768353167 TestGrid OK RefactoringAction 1444768422089 GameOfLife.java ADD static void main(String METHOD EditAction 1444768472991 GameOfLife.java 526 1 15 0 EditAction 1444768565553 GameOfLife.java 351 1 10 0 +EditAction 1444768592851 GameOfLife.java 351 1 10 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 376b584..060fcc6 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -5,7 +5,7 @@ public static void main(String[] args) { Grid g = new Grid(2); g.getGrid()[0][0].setState("*"); g.getGrid()[0][1].setState("*"); - g.getGrid()[1][0].setState("*"); + g.getGrid()[1][0].setState("-"); g.getGrid()[1][1].setState("*"); g.display(); g.tick(); From 73bbc19ea5a4489142b54f53318560339e1b12fa Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:36:49 +0800 Subject: [PATCH 39/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 37e60e1..d389ee6 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -85,3 +85,4 @@ RefactoringAction 1444768422089 GameOfLife.java ADD static void main(String METH EditAction 1444768472991 GameOfLife.java 526 1 15 0 EditAction 1444768565553 GameOfLife.java 351 1 10 0 EditAction 1444768592851 GameOfLife.java 351 1 10 0 +EditAction 1444768609382 GameOfLife.java 351 1 10 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 060fcc6..5a41064 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -6,7 +6,7 @@ public static void main(String[] args) { g.getGrid()[0][0].setState("*"); g.getGrid()[0][1].setState("*"); g.getGrid()[1][0].setState("-"); - g.getGrid()[1][1].setState("*"); + g.getGrid()[1][1].setState("-"); g.display(); g.tick(); g.display(); From 688131f07acb01282d293857f29c25d07718f257 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:39:06 +0800 Subject: [PATCH 40/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 1 + .../tol/sqatlab/gameoflife/GameOfLife.java | 22 +++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index d389ee6..ea02045 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -86,3 +86,4 @@ EditAction 1444768472991 GameOfLife.java 526 1 15 0 EditAction 1444768565553 GameOfLife.java 351 1 10 0 EditAction 1444768592851 GameOfLife.java 351 1 10 0 EditAction 1444768609382 GameOfLife.java 351 1 10 0 +EditAction 1444768746747 GameOfLife.java 671 1 15 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 5a41064..31d3913 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -2,15 +2,29 @@ public class GameOfLife { public static void main(String[] args) { - Grid g = new Grid(2); + Grid g = new Grid(3); g.getGrid()[0][0].setState("*"); g.getGrid()[0][1].setState("*"); - g.getGrid()[1][0].setState("-"); + g.getGrid()[0][2].setState("*"); + g.getGrid()[1][0].setState("*"); g.getGrid()[1][1].setState("-"); + g.getGrid()[1][2].setState("*"); + g.getGrid()[2][0].setState("*"); + g.getGrid()[2][1].setState("*"); + g.getGrid()[2][2].setState("*"); g.display(); + int i = 0, j= 0; + for(; i< 3;i++) + { + for(j = 0; j< 3;j++) + { + System.out.print(g.count(i, j)); + } + System.out.println(); + } g.tick(); g.display(); - g.tick(); - g.display(); + //g.tick(); + //g.display(); } } From 0dc56999b601c42c9a2e4b40927cee915165390a Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:51:04 +0800 Subject: [PATCH 41/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 1 + .../unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 13 ++----------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index ea02045..12743e7 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -87,3 +87,4 @@ EditAction 1444768565553 GameOfLife.java 351 1 10 0 EditAction 1444768592851 GameOfLife.java 351 1 10 0 EditAction 1444768609382 GameOfLife.java 351 1 10 0 EditAction 1444768746747 GameOfLife.java 671 1 15 0 +EditAction 1444769464013 GameOfLife.java 526 1 15 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 31d3913..f67c401 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -13,18 +13,9 @@ public static void main(String[] args) { g.getGrid()[2][1].setState("*"); g.getGrid()[2][2].setState("*"); g.display(); - int i = 0, j= 0; - for(; i< 3;i++) - { - for(j = 0; j< 3;j++) - { - System.out.print(g.count(i, j)); - } - System.out.println(); - } g.tick(); g.display(); - //g.tick(); - //g.display(); + g.tick(); + g.display(); } } From 7e3686eba4cfb4a1f6d37e54436e572db396cbec Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:51:07 +0800 Subject: [PATCH 42/45] besouro automatic message --- .besouro/20151014002642788/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151014002642788/actions.txt b/.besouro/20151014002642788/actions.txt index 12743e7..2c70f55 100644 --- a/.besouro/20151014002642788/actions.txt +++ b/.besouro/20151014002642788/actions.txt @@ -88,3 +88,4 @@ EditAction 1444768592851 GameOfLife.java 351 1 10 0 EditAction 1444768609382 GameOfLife.java 351 1 10 0 EditAction 1444768746747 GameOfLife.java 671 1 15 0 EditAction 1444769464013 GameOfLife.java 526 1 15 0 +EditAction 1444769467298 Grid.java 4561 6 14 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 459c67c..51949d2 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -272,7 +272,7 @@ public void tick() { { for (j = 0; j < size; j++) { - grid[i][j].setState(help.getGrid()[i][i].getState()); + grid[i][j].setState(help.getGrid()[i][j].getState()); } } } From 3cedb2f5ad2851e71924281554300e4bc6f87186 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:51:30 +0800 Subject: [PATCH 43/45] besouro automatic message From b6b3ca5a352d593e38b417f575ec7a406f774c5b Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:51:32 +0800 Subject: [PATCH 44/45] besouro automatic message From ba62ce2e36a19b55d0343602ba845da10352b231 Mon Sep 17 00:00:00 2001 From: somename Date: Wed, 14 Oct 2015 04:51:38 +0800 Subject: [PATCH 45/45] besouro automatic message --- .besouro/20151014045132265/actions.txt | 1 + .besouro/20151014045132265/besouroEpisodes.txt | 0 .besouro/20151014045132265/disagreements.txt | 0 .besouro/20151014045132265/randomHeuristicEpisodes.txt | 0 .besouro/20151014045132265/userComments.txt | 0 .besouro/20151014045132265/zorroEpisodes.txt | 0 6 files changed, 1 insertion(+) create mode 100644 .besouro/20151014045132265/actions.txt create mode 100644 .besouro/20151014045132265/besouroEpisodes.txt create mode 100644 .besouro/20151014045132265/disagreements.txt create mode 100644 .besouro/20151014045132265/randomHeuristicEpisodes.txt create mode 100644 .besouro/20151014045132265/userComments.txt create mode 100644 .besouro/20151014045132265/zorroEpisodes.txt diff --git a/.besouro/20151014045132265/actions.txt b/.besouro/20151014045132265/actions.txt new file mode 100644 index 0000000..482d840 --- /dev/null +++ b/.besouro/20151014045132265/actions.txt @@ -0,0 +1 @@ +FileOpenedAction 1444769492453 GameOfLife.java 526 1 15 0 diff --git a/.besouro/20151014045132265/besouroEpisodes.txt b/.besouro/20151014045132265/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151014045132265/disagreements.txt b/.besouro/20151014045132265/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151014045132265/randomHeuristicEpisodes.txt b/.besouro/20151014045132265/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151014045132265/userComments.txt b/.besouro/20151014045132265/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151014045132265/zorroEpisodes.txt b/.besouro/20151014045132265/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29