From 2c9bec4b43390089de60b6ca7ccd2f61900050b0 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:27:12 +0300 Subject: [PATCH 01/81] besouro automatic message --- .besouro/20151008112510477/actions.txt | 8 ++ .../20151008112510477/besouroEpisodes.txt | 0 .besouro/20151008112510477/disagreements.txt | 0 .../randomHeuristicEpisodes.txt | 0 .besouro/20151008112510477/userComments.txt | 0 .besouro/20151008112510477/zorroEpisodes.txt | 0 .classpath | 14 +-- .gitattributes | 34 +++---- .gitignore | 88 +++++++++---------- .project | 34 +++---- .../unioulu/tol/sqatlab/gameoflife/Cell.java | 10 +-- .../tol/sqatlab/gameoflife/GameOfLife.java | 10 +-- .../unioulu/tol/sqatlab/gameoflife/Grid.java | 10 +-- .../tol/sqatlab/gameoflife/test/TestCell.java | 41 ++++++--- .../tol/sqatlab/gameoflife/test/TestGrid.java | 26 +++--- 15 files changed, 148 insertions(+), 127 deletions(-) create mode 100644 .besouro/20151008112510477/actions.txt create mode 100644 .besouro/20151008112510477/besouroEpisodes.txt create mode 100644 .besouro/20151008112510477/disagreements.txt create mode 100644 .besouro/20151008112510477/randomHeuristicEpisodes.txt create mode 100644 .besouro/20151008112510477/userComments.txt create mode 100644 .besouro/20151008112510477/zorroEpisodes.txt diff --git a/.besouro/20151008112510477/actions.txt b/.besouro/20151008112510477/actions.txt new file mode 100644 index 0000000..648f9da --- /dev/null +++ b/.besouro/20151008112510477/actions.txt @@ -0,0 +1,8 @@ +FileOpenedAction 1444292711120 TestCell.java 214 1 1 0 +RefactoringAction 1444292726004 TestCell.java ADD void test_isCellAlive FIELD +RefactoringAction 1444292728532 TestCell.java RENAME test_isCellAlive=>void test_isCellAlive() METHOD +RefactoringAction 1444292748358 TestCell.java ADD void initialize() METHOD +RefactoringAction 1444292765074 TestCell.java RENAME initialize()=>void initializeCell() METHOD +RefactoringAction 1444292789152 TestCell.java ADD Cell testCell FIELD +RefactoringAction 1444292801622 TestCell.java ADD import org.unioulu.tol.sqatlab.gameoflife.Cell IMPORT +EditAction 1444292831199 TestCell.java 471 3 3 0 diff --git a/.besouro/20151008112510477/besouroEpisodes.txt b/.besouro/20151008112510477/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151008112510477/disagreements.txt b/.besouro/20151008112510477/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151008112510477/randomHeuristicEpisodes.txt b/.besouro/20151008112510477/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151008112510477/userComments.txt b/.besouro/20151008112510477/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151008112510477/zorroEpisodes.txt b/.besouro/20151008112510477/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.classpath b/.classpath index 3e0fb27..2d74975 100644 --- a/.classpath +++ b/.classpath @@ -1,7 +1,7 @@ - - - - - - - + + + + + + + diff --git a/.gitattributes b/.gitattributes index bdb0cab..7351b55 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,17 +1,17 @@ -# Auto detect text files and perform LF normalization -* text=auto - -# Custom for Visual Studio -*.cs diff=csharp - -# Standard to msysgit -*.doc diff=astextplain -*.DOC diff=astextplain -*.docx diff=astextplain -*.DOCX diff=astextplain -*.dot diff=astextplain -*.DOT diff=astextplain -*.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore index 80e4de2..4926921 100644 --- a/.gitignore +++ b/.gitignore @@ -1,44 +1,44 @@ -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# ========================= -# Operating System Files -# ========================= - -# OSX -# ========================= - -.DS_Store -.AppleDouble -.LSOverride - -# Thumbnails -._* - -# Files that might appear on external disk -.Spotlight-V100 -.Trashes - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk -/bin/ +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk +/bin/ diff --git a/.project b/.project index a31ebfd..4cbf201 100644 --- a/.project +++ b/.project @@ -1,17 +1,17 @@ - - - GameOfLife - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - + + + GameOfLife + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index b66e9c8..0127ebf 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -1,5 +1,5 @@ -package org.unioulu.tol.sqatlab.gameoflife; - -public class Cell { - -} +package org.unioulu.tol.sqatlab.gameoflife; + +public class Cell { + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index dbd5f88..975cdf4 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,5 +1,5 @@ -package org.unioulu.tol.sqatlab.gameoflife; - -public class GameOfLife { - -} +package org.unioulu.tol.sqatlab.gameoflife; + +public class GameOfLife { + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 19dbf0b..23a1681 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -1,5 +1,5 @@ -package org.unioulu.tol.sqatlab.gameoflife; - -public class Grid { - -} +package org.unioulu.tol.sqatlab.gameoflife; + +public class Grid { + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index d8de09e..2f6f5fd 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -1,14 +1,27 @@ -package org.unioulu.tol.sqatlab.gameoflife.test; - -import static org.junit.Assert.*; - -import org.junit.Test; - -public class TestCell { - - @Test - public void test() { - fail("Not yet implemented"); - } - -} +package org.unioulu.tol.sqatlab.gameoflife.test; + +import static org.junit.Assert.*; + +import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.Cell; + +public class TestCell { + + private Cell testCell = new Cell(); + + @Test + public void test() { + fail("Not yet implemented"); + } + + //Initialization functions + public void initializeCell() { + testCell = new Cell(); + } + + @Test + public void test_isCellAlive () { + initializeCell(); + } + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 9614d55..c31384d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -1,13 +1,13 @@ -package org.unioulu.tol.sqatlab.gameoflife.test; - -import static org.junit.Assert.*; -import org.junit.Test; - -public class TestGrid { - - @Test - public void test() { - fail("Not yet implemented"); - } - -} +package org.unioulu.tol.sqatlab.gameoflife.test; + +import static org.junit.Assert.*; +import org.junit.Test; + +public class TestGrid { + + @Test + public void test() { + fail("Not yet implemented"); + } + +} From 510c1a9038aa4a5c9426f8c0e01bdfe4afdab4b9 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:28:17 +0300 Subject: [PATCH 02/81] besouro automatic message --- .besouro/20151008112510477/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 1 + 2 files changed, 2 insertions(+) diff --git a/.besouro/20151008112510477/actions.txt b/.besouro/20151008112510477/actions.txt index 648f9da..a64c7c7 100644 --- a/.besouro/20151008112510477/actions.txt +++ b/.besouro/20151008112510477/actions.txt @@ -6,3 +6,4 @@ RefactoringAction 1444292765074 TestCell.java RENAME initialize()=>void initiali RefactoringAction 1444292789152 TestCell.java ADD Cell testCell FIELD RefactoringAction 1444292801622 TestCell.java ADD import org.unioulu.tol.sqatlab.gameoflife.Cell IMPORT EditAction 1444292831199 TestCell.java 471 3 3 0 +EditAction 1444292896339 TestCell.java 511 3 4 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 2f6f5fd..547cb2e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -22,6 +22,7 @@ public void initializeCell() { @Test public void test_isCellAlive () { initializeCell(); + boolean result = testCell.isAlive(); } } From fe71c51bec35fc9b873659c32e9984a98934b1e4 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:28:46 +0300 Subject: [PATCH 03/81] besouro automatic message --- .besouro/20151008112510477/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 1 + 2 files changed, 3 insertions(+) diff --git a/.besouro/20151008112510477/actions.txt b/.besouro/20151008112510477/actions.txt index a64c7c7..7fb4241 100644 --- a/.besouro/20151008112510477/actions.txt +++ b/.besouro/20151008112510477/actions.txt @@ -7,3 +7,5 @@ RefactoringAction 1444292789152 TestCell.java ADD Cell testCell FIELD RefactoringAction 1444292801622 TestCell.java ADD import org.unioulu.tol.sqatlab.gameoflife.Cell IMPORT EditAction 1444292831199 TestCell.java 471 3 3 0 EditAction 1444292896339 TestCell.java 511 3 4 0 +CompilationAction 1444292899037 TestCell.java +EditAction 1444292925605 TestCell.java 545 3 5 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 547cb2e..bdf1351 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -23,6 +23,7 @@ public void initializeCell() { public void test_isCellAlive () { initializeCell(); boolean result = testCell.isAlive(); + assertEquals(testCell, true ); } } From f5ed759b697eccf1723635473e013631ccddcf02 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:28:58 +0300 Subject: [PATCH 04/81] besouro automatic message --- .besouro/20151008112510477/actions.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.besouro/20151008112510477/actions.txt b/.besouro/20151008112510477/actions.txt index 7fb4241..4b2f309 100644 --- a/.besouro/20151008112510477/actions.txt +++ b/.besouro/20151008112510477/actions.txt @@ -9,3 +9,4 @@ EditAction 1444292831199 TestCell.java 471 3 3 0 EditAction 1444292896339 TestCell.java 511 3 4 0 CompilationAction 1444292899037 TestCell.java EditAction 1444292925605 TestCell.java 545 3 5 1 +CompilationAction 1444292928441 TestCell.java From 28f1d2ecad3d569846d4e95591a75fccb4156e4a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:48:24 +0300 Subject: [PATCH 05/81] besouro automatic message From e71bf10a23637d2c7565972b17aed42d7233d7c3 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:49:11 +0300 Subject: [PATCH 06/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 7 +++++++ .besouro/20151008114825807/besouroEpisodes.txt | 0 .besouro/20151008114825807/disagreements.txt | 0 .besouro/20151008114825807/randomHeuristicEpisodes.txt | 0 .besouro/20151008114825807/userComments.txt | 0 .besouro/20151008114825807/zorroEpisodes.txt | 0 src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 6 +++--- 8 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .besouro/20151008114825807/actions.txt create mode 100644 .besouro/20151008114825807/besouroEpisodes.txt create mode 100644 .besouro/20151008114825807/disagreements.txt create mode 100644 .besouro/20151008114825807/randomHeuristicEpisodes.txt create mode 100644 .besouro/20151008114825807/userComments.txt create mode 100644 .besouro/20151008114825807/zorroEpisodes.txt diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt new file mode 100644 index 0000000..47f915f --- /dev/null +++ b/.besouro/20151008114825807/actions.txt @@ -0,0 +1,7 @@ +FileOpenedAction 1444294105969 TestCell.java 545 3 5 1 +RefactoringAction 1444294109697 TestCell.java RENAME test_isCellAlive()=>void test_get() METHOD +RefactoringAction 1444294111706 TestCell.java RENAME test_get()=>void test_getCellStatus() METHOD +CompilationAction 1444294120826 TestCell.java +CompilationAction 1444294120948 TestCell.java +RefactoringAction 1444294135705 Cell.java ADD boolean isAlive FIELD +EditAction 1444294150286 Cell.java 154 0 0 0 diff --git a/.besouro/20151008114825807/besouroEpisodes.txt b/.besouro/20151008114825807/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151008114825807/disagreements.txt b/.besouro/20151008114825807/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151008114825807/randomHeuristicEpisodes.txt b/.besouro/20151008114825807/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151008114825807/userComments.txt b/.besouro/20151008114825807/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20151008114825807/zorroEpisodes.txt b/.besouro/20151008114825807/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 0127ebf..d279a9b 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 { + + //Initially start with dead status + private boolean isAlive = false; + + } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index bdf1351..347263d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -20,10 +20,10 @@ public void initializeCell() { } @Test - public void test_isCellAlive () { + public void test_getCellStatus () { initializeCell(); - boolean result = testCell.isAlive(); - assertEquals(testCell, true ); + boolean result = testCell.getStatus(); + assertEquals(testCell, true || false ); } } From c76972ddc41d1df6f063f0e2c25a2e770f07b122 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:49:40 +0300 Subject: [PATCH 07/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 47f915f..9ab0245 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -5,3 +5,6 @@ CompilationAction 1444294120826 TestCell.java CompilationAction 1444294120948 TestCell.java RefactoringAction 1444294135705 Cell.java ADD boolean isAlive FIELD EditAction 1444294150286 Cell.java 154 0 0 0 +CompilationAction 1444294154978 TestCell.java +RefactoringAction 1444294169232 Cell.java ADD boolean getStatus() METHOD +EditAction 1444294179643 Cell.java 206 1 1 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index d279a9b..a4e9a07 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -5,6 +5,8 @@ public class Cell { //Initially start with dead status private boolean isAlive = false; - + public boolean getStatus () { + return isAlive; + } } From 779a7ba6a748b3700f89e2768d17c5ebcde6e148 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:51:51 +0300 Subject: [PATCH 08/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 8 ++++++++ .../unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 9 ++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 9ab0245..039e396 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -8,3 +8,11 @@ EditAction 1444294150286 Cell.java 154 0 0 0 CompilationAction 1444294154978 TestCell.java RefactoringAction 1444294169232 Cell.java ADD boolean getStatus() METHOD EditAction 1444294179643 Cell.java 206 1 1 0 +FileOpenedAction 1444294214049 TestSudokuVerifier.java 2318 9 16 11 +FileOpenedAction 1444294237425 TestSudokuVerifier.java 2318 9 16 11 +CompilationAction 1444294248325 TestCell.java +CompilationAction 1444294294381 TestCell.java +UnitTestCaseAction 1444294299243 TestCell.java FAIL +UnitTestSessionAction 1444294299245 TestCell FAIL +RefactoringAction 1444294306960 TestCell.java REMOVE test() METHOD +EditAction 1444294310544 TestCell.java 515 2 4 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 347263d..7e2fe2c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -9,11 +9,6 @@ public class TestCell { private Cell testCell = new Cell(); - @Test - public void test() { - fail("Not yet implemented"); - } - //Initialization functions public void initializeCell() { testCell = new Cell(); @@ -22,8 +17,8 @@ public void initializeCell() { @Test public void test_getCellStatus () { initializeCell(); - boolean result = testCell.getStatus(); - assertEquals(testCell, true || false ); + boolean r = testCell.getStatus(); + assertEquals( ((Object)r).getClass().getName(), "java.lang.Boolean" ); } } From bc7697c792f9e5b60f2ba118ab9876be13afc143 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:53:33 +0300 Subject: [PATCH 09/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 10 ++++++++++ .../unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 039e396..3252c20 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -16,3 +16,13 @@ UnitTestCaseAction 1444294299243 TestCell.java FAIL UnitTestSessionAction 1444294299245 TestCell FAIL RefactoringAction 1444294306960 TestCell.java REMOVE test() METHOD EditAction 1444294310544 TestCell.java 515 2 4 1 +RefactoringAction 1444294326994 TestCell.java ADD void testGet FIELD +RefactoringAction 1444294329504 TestCell.java RENAME testGet=>void test_ FIELD +RefactoringAction 1444294335513 TestCell.java RENAME test_=>void test_get FIELD +RefactoringAction 1444294339021 TestCell.java RENAME test_get=>void test_setTo FIELD +RefactoringAction 1444294341029 TestCell.java RENAME test_setTo=>void test FIELD +RefactoringAction 1444294343038 TestCell.java RENAME test=>void test_setT FIELD +RefactoringAction 1444294347046 TestCell.java RENAME test_setT=>void test_setToAliveAndReturn FIELD +RefactoringAction 1444294349061 TestCell.java RENAME test_setToAliveAndReturn=>void test_setToAliveAndReturnStatus FIELD +RefactoringAction 1444294351572 TestCell.java RENAME test_setToAliveAndReturnStatus=>void test_setToAliveAndReturnStatus() METHOD +EditAction 1444294412414 TestCell.java 692 3 8 2 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 7e2fe2c..bd2d7d9 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -20,5 +20,13 @@ public void test_getCellStatus () { boolean r = testCell.getStatus(); assertEquals( ((Object)r).getClass().getName(), "java.lang.Boolean" ); } + + @Test + public void test_setToAliveAndReturnStatus() { + initializeCell(); + testCell.setToAlive(); + boolean r = testCell.getStatus(); + assertEquals ( r, true ); + } } From ea463c3b3e411b43c76d7601e9811508748f7574 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:54:04 +0300 Subject: [PATCH 10/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 3252c20..698ab83 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -26,3 +26,8 @@ RefactoringAction 1444294347046 TestCell.java RENAME test_setT=>void test_setToA RefactoringAction 1444294349061 TestCell.java RENAME test_setToAliveAndReturn=>void test_setToAliveAndReturnStatus FIELD RefactoringAction 1444294351572 TestCell.java RENAME test_setToAliveAndReturnStatus=>void test_setToAliveAndReturnStatus() METHOD EditAction 1444294412414 TestCell.java 692 3 8 2 +CompilationAction 1444294416006 TestCell.java +UnitTestCaseAction 1444294420330 TestCell.java FAIL +UnitTestSessionAction 1444294420331 TestCell FAIL +RefactoringAction 1444294438602 Cell.java ADD void setToAlive() METHOD +EditAction 1444294443332 Cell.java 262 2 2 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index a4e9a07..5dcc310 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -8,5 +8,9 @@ public class Cell { public boolean getStatus () { return isAlive; } + + public void setToAlive () { + isAlive = true; + } } From 0c7b6ad8d72d09c3f4e3a8dd9088e133655b0fa4 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:55:28 +0300 Subject: [PATCH 11/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 5 +++++ .besouro/20151008114825807/besouroEpisodes.txt | 2 ++ .besouro/20151008114825807/randomHeuristicEpisodes.txt | 1 + .besouro/20151008114825807/zorroEpisodes.txt | 1 + .../unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 9 +++++++++ 5 files changed, 18 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 698ab83..31fb808 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -31,3 +31,8 @@ UnitTestCaseAction 1444294420330 TestCell.java FAIL UnitTestSessionAction 1444294420331 TestCell FAIL RefactoringAction 1444294438602 Cell.java ADD void setToAlive() METHOD EditAction 1444294443332 Cell.java 262 2 2 0 +UnitTestCaseAction 1444294453652 TestCell.java OK +UnitTestSessionAction 1444294453653 TestCell OK +RefactoringAction 1444294465295 TestCell.java ADD void test_setToAliveAndReturnStatus()/2 METHOD +RefactoringAction 1444294481314 TestCell.java RENAME test_setToAliveAndReturnStatus()/2=>void test_setToAliveAnd FIELD +EditAction 1444294527296 TestCell.java 908 4 13 3 diff --git a/.besouro/20151008114825807/besouroEpisodes.txt b/.besouro/20151008114825807/besouroEpisodes.txt index e69de29..2c7a96a 100644 --- a/.besouro/20151008114825807/besouroEpisodes.txt +++ b/.besouro/20151008114825807/besouroEpisodes.txt @@ -0,0 +1,2 @@ +1444294453653 test-first 1 347 true +1444294453654 test-last 1 347 false diff --git a/.besouro/20151008114825807/randomHeuristicEpisodes.txt b/.besouro/20151008114825807/randomHeuristicEpisodes.txt index e69de29..8e7c0d7 100644 --- a/.besouro/20151008114825807/randomHeuristicEpisodes.txt +++ b/.besouro/20151008114825807/randomHeuristicEpisodes.txt @@ -0,0 +1 @@ +1444294453653 test-first 1 347 true diff --git a/.besouro/20151008114825807/zorroEpisodes.txt b/.besouro/20151008114825807/zorroEpisodes.txt index e69de29..8e7c0d7 100644 --- a/.besouro/20151008114825807/zorroEpisodes.txt +++ b/.besouro/20151008114825807/zorroEpisodes.txt @@ -0,0 +1 @@ +1444294453653 test-first 1 347 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index bd2d7d9..1e3f3f3 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -28,5 +28,14 @@ public void test_setToAliveAndReturnStatus() { boolean r = testCell.getStatus(); assertEquals ( r, true ); } + + @Test + public void test_setToAliveAndThenToDeadAndReturnStatus() { + initializeCell(); + testCell.setToAlive(); + testCell.setToDead(); + boolean r = testCell.getStatus(); + assertEquals ( r, false ); + } } From a4e091292238081c484b96aa81f61b878f15a6c1 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:55:54 +0300 Subject: [PATCH 12/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 31fb808..ed1a8a5 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -36,3 +36,8 @@ UnitTestSessionAction 1444294453653 TestCell OK RefactoringAction 1444294465295 TestCell.java ADD void test_setToAliveAndReturnStatus()/2 METHOD RefactoringAction 1444294481314 TestCell.java RENAME test_setToAliveAndReturnStatus()/2=>void test_setToAliveAnd FIELD EditAction 1444294527296 TestCell.java 908 4 13 3 +CompilationAction 1444294531037 TestCell.java +UnitTestCaseAction 1444294535632 TestCell.java FAIL +UnitTestSessionAction 1444294535634 TestCell FAIL +RefactoringAction 1444294549130 Cell.java ADD void setToDead() METHOD +EditAction 1444294552883 Cell.java 318 3 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 5dcc310..fa74d26 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -12,5 +12,9 @@ public boolean getStatus () { public void setToAlive () { isAlive = true; } + + public void setToDead () { + isAlive = false; + } } From 2cf6470aa617add8ceb1795aac4584a82a4adb3c Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:56:18 +0300 Subject: [PATCH 13/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ .besouro/20151008114825807/besouroEpisodes.txt | 2 ++ .besouro/20151008114825807/randomHeuristicEpisodes.txt | 1 + .besouro/20151008114825807/zorroEpisodes.txt | 1 + 4 files changed, 7 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index ed1a8a5..b76a3e9 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -41,3 +41,6 @@ UnitTestCaseAction 1444294535632 TestCell.java FAIL UnitTestSessionAction 1444294535634 TestCell FAIL RefactoringAction 1444294549130 Cell.java ADD void setToDead() METHOD EditAction 1444294552883 Cell.java 318 3 3 0 +UnitTestCaseAction 1444294561627 TestCell.java OK +UnitTestSessionAction 1444294561630 TestCell OK +EditAction 1444294577013 TestCell.java 908 4 13 3 diff --git a/.besouro/20151008114825807/besouroEpisodes.txt b/.besouro/20151008114825807/besouroEpisodes.txt index 2c7a96a..4d5fd58 100644 --- a/.besouro/20151008114825807/besouroEpisodes.txt +++ b/.besouro/20151008114825807/besouroEpisodes.txt @@ -1,2 +1,4 @@ 1444294453653 test-first 1 347 true 1444294453654 test-last 1 347 false +1444294561630 test-first 1 96 true +1444294561631 test-first 1 96 true diff --git a/.besouro/20151008114825807/randomHeuristicEpisodes.txt b/.besouro/20151008114825807/randomHeuristicEpisodes.txt index 8e7c0d7..8b85302 100644 --- a/.besouro/20151008114825807/randomHeuristicEpisodes.txt +++ b/.besouro/20151008114825807/randomHeuristicEpisodes.txt @@ -1 +1,2 @@ 1444294453653 test-first 1 347 true +1444294561630 test-first 1 96 true diff --git a/.besouro/20151008114825807/zorroEpisodes.txt b/.besouro/20151008114825807/zorroEpisodes.txt index 8e7c0d7..0eef3b1 100644 --- a/.besouro/20151008114825807/zorroEpisodes.txt +++ b/.besouro/20151008114825807/zorroEpisodes.txt @@ -1 +1,2 @@ 1444294453653 test-first 1 347 true +1444294561630 test-first 1 107 true From 59e50696f50f6b484978b352c0e7fc1fdc96c5db Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 11:56:37 +0300 Subject: [PATCH 14/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index b76a3e9..1d58443 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -44,3 +44,4 @@ EditAction 1444294552883 Cell.java 318 3 3 0 UnitTestCaseAction 1444294561627 TestCell.java OK UnitTestSessionAction 1444294561630 TestCell OK EditAction 1444294577013 TestCell.java 908 4 13 3 +EditAction 1444294596357 TestCell.java 907 4 13 3 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 1e3f3f3..233201e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -9,7 +9,7 @@ public class TestCell { private Cell testCell = new Cell(); - //Initialization functions + //Initialization function public void initializeCell() { testCell = new Cell(); } From 736b7382b9f81f02e4fc8faff02711e0c3d9c538 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:03:55 +0300 Subject: [PATCH 15/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 7 +++++++ .../tol/sqatlab/gameoflife/test/TestCell.java | 13 +++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 1d58443..1dbf777 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -45,3 +45,10 @@ UnitTestCaseAction 1444294561627 TestCell.java OK UnitTestSessionAction 1444294561630 TestCell OK EditAction 1444294577013 TestCell.java 908 4 13 3 EditAction 1444294596357 TestCell.java 907 4 13 3 +RefactoringAction 1444294618160 TestCell.java ADD void test_ra FIELD +RefactoringAction 1444294622171 TestCell.java RENAME test_ra=>void test_randomInitiliaz FIELD +RefactoringAction 1444294623683 TestCell.java RENAME test_randomInitiliaz=>void test_randomInitil FIELD +RefactoringAction 1444294633201 TestCell.java RENAME test_randomInitil=>void test_randomCellStatus FIELD +RefactoringAction 1444294635214 TestCell.java RENAME test_randomCellStatus=>void test_randomCellStatusInitia FIELD +RefactoringAction 1444294639725 TestCell.java RENAME test_randomCellStatusInitia=>void test_randomCellStatusInitialization() METHOD +EditAction 1444295033600 TestCell.java 1171 5 15 3 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 233201e..2cfc012 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -37,5 +37,18 @@ public void test_setToAliveAndThenToDeadAndReturnStatus() { boolean r = testCell.getStatus(); assertEquals ( r, false ); } + + @Test + public void test_randomCellStatusInitialization () { + boolean dead, alive = false; + while ( dead == false && alive == false ) { + initializeCell(); + if (testCell.getStatus()) { + alive = true; + } else { + dead = true; + } + } + } } From 0d650f86ca0341175e440a98d2b3310b20a52ea6 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:04:58 +0300 Subject: [PATCH 16/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 1dbf777..f80da1e 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -52,3 +52,8 @@ RefactoringAction 1444294633201 TestCell.java RENAME test_randomInitil=>void tes RefactoringAction 1444294635214 TestCell.java RENAME test_randomCellStatus=>void test_randomCellStatusInitia FIELD RefactoringAction 1444294639725 TestCell.java RENAME test_randomCellStatusInitia=>void test_randomCellStatusInitialization() METHOD EditAction 1444295033600 TestCell.java 1171 5 15 3 +CompilationAction 1444295037302 TestCell.java +CompilationAction 1444295049401 TestCell.java +CompilationAction 1444295049622 TestCell.java +CompilationAction 1444295067703 TestCell.java +EditAction 1444295097049 TestCell.java 1286 5 16 3 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 2cfc012..1eaed0c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -39,8 +39,11 @@ public void test_setToAliveAndThenToDeadAndReturnStatus() { } @Test + //Test to make sure that the cell can get both dead and alive + //status when it is created public void test_randomCellStatusInitialization () { - boolean dead, alive = false; + boolean dead = false; + boolean alive = false; while ( dead == false && alive == false ) { initializeCell(); if (testCell.getStatus()) { From a2f14bceb8104a98dff84844a440469cf3b0a0de Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:07:12 +0300 Subject: [PATCH 17/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index f80da1e..cae49a1 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -57,3 +57,5 @@ CompilationAction 1444295049401 TestCell.java CompilationAction 1444295049622 TestCell.java CompilationAction 1444295067703 TestCell.java EditAction 1444295097049 TestCell.java 1286 5 16 3 +RefactoringAction 1444295125362 Cell.java ADD static void main() METHOD +EditAction 1444295231075 Cell.java 446 4 4 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index fa74d26..094d974 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -5,6 +5,14 @@ public class Cell { //Initially start with dead status private boolean isAlive = false; + public static void main () { + if ( Math.random() < 0.5 ) { + isAlive = false; + } else { + isAlive = true; + } + } + public boolean getStatus () { return isAlive; } From e8990facb3f269caa12ab989cc5138d04f3bf7a2 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:08:09 +0300 Subject: [PATCH 18/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 5 ++ .../20151008114825807/besouroEpisodes.txt | 64 +++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20151008114825807/zorroEpisodes.txt | 1 + .../unioulu/tol/sqatlab/gameoflife/Cell.java | 2 +- .../tol/sqatlab/gameoflife/test/TestCell.java | 3 +- 6 files changed, 74 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index cae49a1..0dcf4f1 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -59,3 +59,8 @@ CompilationAction 1444295067703 TestCell.java EditAction 1444295097049 TestCell.java 1286 5 16 3 RefactoringAction 1444295125362 Cell.java ADD static void main() METHOD EditAction 1444295231075 Cell.java 446 4 4 0 +CompilationAction 1444295234721 Cell.java +CompilationAction 1444295248983 Cell.java +UnitTestCaseAction 1444295254362 TestCell.java OK +UnitTestSessionAction 1444295254363 TestCell OK +EditAction 1444295288248 TestCell.java 1365 5 16 3 diff --git a/.besouro/20151008114825807/besouroEpisodes.txt b/.besouro/20151008114825807/besouroEpisodes.txt index 4d5fd58..29661cc 100644 --- a/.besouro/20151008114825807/besouroEpisodes.txt +++ b/.besouro/20151008114825807/besouroEpisodes.txt @@ -2,3 +2,67 @@ 1444294453654 test-last 1 347 false 1444294561630 test-first 1 96 true 1444294561631 test-first 1 96 true +1444295254363 refactoring 3 677 true +1444295254364 refactoring 3 677 true +1444295254365 refactoring 3 677 true +1444295254366 refactoring 3 677 true +1444295254367 refactoring 3 677 true +1444295254368 refactoring 3 677 true +1444295254369 refactoring 3 677 true +1444295254370 refactoring 3 677 true +1444295254371 refactoring 3 677 true +1444295254372 refactoring 3 677 true +1444295254373 refactoring 3 677 true +1444295254374 refactoring 3 677 true +1444295254375 refactoring 3 677 true +1444295254376 refactoring 3 677 true +1444295254377 refactoring 3 677 true +1444295254378 refactoring 3 677 true +1444295254379 refactoring 3 677 true +1444295254380 refactoring 3 677 true +1444295254381 refactoring 3 677 true +1444295254382 refactoring 3 677 true +1444295254383 refactoring 3 677 true +1444295254384 refactoring 3 677 true +1444295254385 refactoring 3 677 true +1444295254386 refactoring 3 677 true +1444295254387 refactoring 3 677 true +1444295254388 refactoring 3 677 true +1444295254389 refactoring 3 677 true +1444295254390 refactoring 3 677 true +1444295254391 refactoring 3 677 true +1444295254392 refactoring 3 677 true +1444295254393 refactoring 3 677 true +1444295254394 refactoring 3 677 true +1444295254395 refactoring 3 677 true +1444295254396 refactoring 3 677 true +1444295254397 refactoring 3 677 true +1444295254398 refactoring 3 677 true +1444295254399 refactoring 3 677 true +1444295254400 refactoring 3 677 true +1444295254401 refactoring 3 677 true +1444295254402 refactoring 3 677 true +1444295254403 refactoring 3 677 true +1444295254404 refactoring 3 677 true +1444295254405 refactoring 3 677 true +1444295254406 refactoring 3 677 true +1444295254407 refactoring 3 677 true +1444295254408 refactoring 3 677 true +1444295254409 refactoring 3 677 true +1444295254410 refactoring 3 677 true +1444295254411 refactoring 3 677 true +1444295254412 refactoring 3 677 true +1444295254413 refactoring 3 677 true +1444295254414 refactoring 3 677 true +1444295254415 refactoring 3 677 true +1444295254416 refactoring 3 677 true +1444295254417 refactoring 3 677 true +1444295254418 refactoring 3 677 true +1444295254419 refactoring 3 677 true +1444295254420 refactoring 3 677 true +1444295254421 refactoring 3 677 true +1444295254422 refactoring 3 677 true +1444295254423 refactoring 3 677 true +1444295254424 refactoring 3 677 true +1444295254425 refactoring 3 677 true +1444295254426 refactoring 3 677 true diff --git a/.besouro/20151008114825807/randomHeuristicEpisodes.txt b/.besouro/20151008114825807/randomHeuristicEpisodes.txt index 8b85302..1d32242 100644 --- a/.besouro/20151008114825807/randomHeuristicEpisodes.txt +++ b/.besouro/20151008114825807/randomHeuristicEpisodes.txt @@ -1,2 +1,3 @@ 1444294453653 test-first 1 347 true 1444294561630 test-first 1 96 true +1444295254363 refactoring 3 677 true diff --git a/.besouro/20151008114825807/zorroEpisodes.txt b/.besouro/20151008114825807/zorroEpisodes.txt index 0eef3b1..5c1d147 100644 --- a/.besouro/20151008114825807/zorroEpisodes.txt +++ b/.besouro/20151008114825807/zorroEpisodes.txt @@ -1,2 +1,3 @@ 1444294453653 test-first 1 347 true 1444294561630 test-first 1 107 true +1444295254363 refactoring 3 692 true diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 094d974..5527316 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -3,7 +3,7 @@ public class Cell { //Initially start with dead status - private boolean isAlive = false; + private static boolean isAlive = false; public static void main () { if ( Math.random() < 0.5 ) { diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 1eaed0c..9028fc8 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -40,7 +40,8 @@ public void test_setToAliveAndThenToDeadAndReturnStatus() { @Test //Test to make sure that the cell can get both dead and alive - //status when it is created + //status when it is created. Essentially, perform a while- + //loop up until both statuses are recognized. public void test_randomCellStatusInitialization () { boolean dead = false; boolean alive = false; From ea2f47d6aa3718a634e83d4d92ea28144e2e180d Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:08:43 +0300 Subject: [PATCH 19/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 0dcf4f1..ea1b2c5 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -64,3 +64,5 @@ CompilationAction 1444295248983 Cell.java UnitTestCaseAction 1444295254362 TestCell.java OK UnitTestSessionAction 1444295254363 TestCell OK EditAction 1444295288248 TestCell.java 1365 5 16 3 +RefactoringAction 1444295313916 TestGrid.java REMOVE test() METHOD +EditAction 1444295322028 TestGrid.java 154 0 0 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index c31384d..8d82dfe 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -6,8 +6,5 @@ public class TestGrid { @Test - public void test() { - fail("Not yet implemented"); - } - + } From 547a04bf3db781149274673b2ebbb79cae8d239e Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:10:27 +0300 Subject: [PATCH 20/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 15 +++++++++++++++ .../tol/sqatlab/gameoflife/test/TestGrid.java | 12 ++++++++++++ 2 files changed, 27 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index ea1b2c5..e11e37c 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -66,3 +66,18 @@ UnitTestSessionAction 1444295254363 TestCell OK EditAction 1444295288248 TestCell.java 1365 5 16 3 RefactoringAction 1444295313916 TestGrid.java REMOVE test() METHOD EditAction 1444295322028 TestGrid.java 154 0 0 0 +CompilationAction 1444295325784 TestGrid.java +CompilationAction 1444295325785 TestGrid.java +RefactoringAction 1444295335440 TestGrid.java ADD import org.unioulu.tol.sqatlab.gameoflife.Cell IMPORT +RefactoringAction 1444295340957 TestGrid.java RENAME initializeCell()=>void initializeGrid() METHOD +RefactoringAction 1444295366498 TestGrid.java ADD Grid testGrid FIELD +RefactoringAction 1444295371760 TestGrid.java ADD import org.unioulu.tol.sqatlab.gameoflife.Grid IMPORT +CompilationAction 1444295380262 TestGrid.java +CompilationAction 1444295380263 TestGrid.java +CompilationAction 1444295380380 TestGrid.java +RefactoringAction 1444295395037 TestGrid.java ADD void test_getCellStatus() METHOD +RefactoringAction 1444295404045 TestGrid.java RENAME test_getCellStatus()=>void test_create() METHOD +RefactoringAction 1444295405552 TestGrid.java RENAME test_create()=>void test_createA() METHOD +RefactoringAction 1444295408059 TestGrid.java RENAME test_createA()=>void test_createA10() METHOD +RefactoringAction 1444295412067 TestGrid.java RENAME test_createA10()=>void test_createA10By10Grid() METHOD +EditAction 1444295425773 TestGrid.java 437 2 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 8d82dfe..f3e3408 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -2,9 +2,21 @@ import static org.junit.Assert.*; import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.Cell; +import org.unioulu.tol.sqatlab.gameoflife.Grid; public class TestGrid { + private Grid testGrid = new Grid(); + + //Initialization function + public void initializeGrid() { + testGrid = new Grid(); + } + @Test + public void test_createA10By10Grid () { + + } } From 22c1585374eb65d129a36eeac7f7dce64c0a8da2 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:12:04 +0300 Subject: [PATCH 21/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index e11e37c..7224357 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -81,3 +81,5 @@ RefactoringAction 1444295405552 TestGrid.java RENAME test_create()=>void test_cr RefactoringAction 1444295408059 TestGrid.java RENAME test_createA()=>void test_createA10() METHOD RefactoringAction 1444295412067 TestGrid.java RENAME test_createA10()=>void test_createA10By10Grid() METHOD EditAction 1444295425773 TestGrid.java 437 2 1 0 +RefactoringAction 1444295523022 Cell.java RENAME main()=>Cell() METHOD +EditAction 1444295523334 Cell.java 441 4 4 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 5527316..734e2f0 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -5,7 +5,7 @@ public class Cell { //Initially start with dead status private static boolean isAlive = false; - public static void main () { + public Cell () { if ( Math.random() < 0.5 ) { isAlive = false; } else { From 3653578d01fc321a40d93e748826ee6ecd7b9824 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:12:44 +0300 Subject: [PATCH 22/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 7224357..d6bf160 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -83,3 +83,6 @@ RefactoringAction 1444295412067 TestGrid.java RENAME test_createA10()=>void test EditAction 1444295425773 TestGrid.java 437 2 1 0 RefactoringAction 1444295523022 Cell.java RENAME main()=>Cell() METHOD EditAction 1444295523334 Cell.java 441 4 4 0 +UnitTestCaseAction 1444295530536 TestCell.java OK +UnitTestSessionAction 1444295530537 TestCell OK +EditAction 1444295562499 TestGrid.java 442 2 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 f3e3408..ff7a22b 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 { //Initialization function public void initializeGrid() { - testGrid = new Grid(); + testGrid = new Grid(10,10); } @Test From 7e86629c6fb67772fe1b01b1e69fecc6313a3783 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:13:39 +0300 Subject: [PATCH 23/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 6 ++++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index d6bf160..fc554e4 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -86,3 +86,9 @@ EditAction 1444295523334 Cell.java 441 4 4 0 UnitTestCaseAction 1444295530536 TestCell.java OK UnitTestSessionAction 1444295530537 TestCell OK EditAction 1444295562499 TestGrid.java 442 2 1 0 +CompilationAction 1444295566853 TestGrid.java +RefactoringAction 1444295579132 TestGrid.java RENAME initializeGrid()=>void initializeGrid(int) METHOD +RefactoringAction 1444295580643 TestGrid.java RENAME initializeGrid(int)=>void initializeGrid(int, int) METHOD +CompilationAction 1444295596157 TestGrid.java +CompilationAction 1444295596274 TestGrid.java +EditAction 1444295617779 TestGrid.java 511 2 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index ff7a22b..a4a7bda 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -10,13 +10,14 @@ public class TestGrid { private Grid testGrid = new Grid(); //Initialization function - public void initializeGrid() { - testGrid = new Grid(10,10); + public void initializeGrid ( int w, int h ) { + testGrid = new Grid(w,h); } @Test public void test_createA10By10Grid () { - + initializeGrid ( 10, 10 ); + initializeGrid ( 10, 10 ); } } From 2d03aadff5fa466aeab541bb6f95095589eeb87b Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:14:22 +0300 Subject: [PATCH 24/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index fc554e4..c665298 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -92,3 +92,5 @@ RefactoringAction 1444295580643 TestGrid.java RENAME initializeGrid(int)=>void i CompilationAction 1444295596157 TestGrid.java CompilationAction 1444295596274 TestGrid.java EditAction 1444295617779 TestGrid.java 511 2 3 0 +CompilationAction 1444295621874 TestGrid.java +EditAction 1444295661593 TestGrid.java 550 2 4 1 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index a4a7bda..f272427 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -17,7 +17,8 @@ public void initializeGrid ( int w, int h ) { @Test public void test_createA10By10Grid () { initializeGrid ( 10, 10 ); - initializeGrid ( 10, 10 ); + String size = testGrid.getSize(); + assertEquals(size, "10x10"); } } From a82e1d0091f1388294db4325d898afa1df2039f2 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:19:51 +0300 Subject: [PATCH 25/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 13 +++++++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 7 +++++++ 2 files changed, 20 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index c665298..a7970c5 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -94,3 +94,16 @@ CompilationAction 1444295596274 TestGrid.java EditAction 1444295617779 TestGrid.java 511 2 3 0 CompilationAction 1444295621874 TestGrid.java EditAction 1444295661593 TestGrid.java 550 2 4 1 +CompilationAction 1444295667443 TestGrid.java +CompilationAction 1444295667444 TestGrid.java +RefactoringAction 1444295738101 Grid.java ADD static void ArrayList() METHOD +RefactoringAction 1444295744608 Grid.java REMOVE ArrayList() METHOD +RefactoringAction 1444295755613 Grid.java ADD ArrayList gridArray FIELD +RefactoringAction 1444295763074 Grid.java ADD import java.util.ArrayList IMPORT +RefactoringAction 1444295832140 Grid.java REMOVE gridArray FIELD +RefactoringAction 1444295862156 Grid.java ADD ArrayList gridArray FIELD +RefactoringAction 1444295867164 Grid.java REMOVE gridArray FIELD +RefactoringAction 1444295878176 Grid.java ADD static Grid() METHOD +RefactoringAction 1444295890181 Grid.java ADD ArrayList<> gridArray FIELD +RefactoringAction 1444295990227 Grid.java RENAME Grid()=>Grid(int, int) METHOD +EditAction 1444295990257 Grid.java 228 1 0 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 23a1681..4d657a1 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -1,5 +1,12 @@ package org.unioulu.tol.sqatlab.gameoflife; +import java.util.ArrayList; + public class Grid { + private static ArrayList gridArray = new ArrayList(); + + public Grid(int width, int height) { + + } } From 098c8343f505e95f334b89dc37a7a6a0956cbfe4 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:24:58 +0300 Subject: [PATCH 26/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 9 +++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 14 +++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index a7970c5..20efdd7 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -107,3 +107,12 @@ RefactoringAction 1444295878176 Grid.java ADD static Grid() METHOD RefactoringAction 1444295890181 Grid.java ADD ArrayList<> gridArray FIELD RefactoringAction 1444295990227 Grid.java RENAME Grid()=>Grid(int, int) METHOD EditAction 1444295990257 Grid.java 228 1 0 0 +CompilationAction 1444295994125 TestGrid.java +CompilationAction 1444295994169 TestGrid.java +RefactoringAction 1444296003240 Grid.java REMOVE gridArray FIELD +RefactoringAction 1444296088298 Grid.java ADD ArrayList FIELD +CompilationAction 1444296250326 TestGrid.java +CompilationAction 1444296250327 TestGrid.java +RefactoringAction 1444296291618 Grid.java ADD int Integer FIELD +RefactoringAction 1444296295128 Grid.java REMOVE Integer FIELD +EditAction 1444296297424 Grid.java 366 1 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 4d657a1..31dfd14 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -4,9 +4,21 @@ public class Grid { - private static ArrayList gridArray = new ArrayList(); + private static ArrayList[][] gridArray = new ArrayList[0][0]; public Grid(int width, int height) { + int i = 0; + int b = 0; + + while ( i < width) { + while ( b < height ) { + gridArray[i][b].add(0); + b++; + } + i++; + } } + + } From d4ddfbfd4fdb47832a1e22fb097c7c682c087145 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:34:44 +0300 Subject: [PATCH 27/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 34 +++++++++++++++++++ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 20efdd7..54d3f53 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -116,3 +116,37 @@ CompilationAction 1444296250327 TestGrid.java RefactoringAction 1444296291618 Grid.java ADD int Integer FIELD RefactoringAction 1444296295128 Grid.java REMOVE Integer FIELD EditAction 1444296297424 Grid.java 366 1 3 0 +RefactoringAction 1444296403214 Grid.java REMOVE gridArray FIELD +RefactoringAction 1444296405222 Grid.java ADD ArrayList> gridArray FIELD +RefactoringAction 1444296490234 Grid.java REMOVE gridArray FIELD +RefactoringAction 1444296514749 Grid.java RENAME Grid(int, int)=>List> gridArray FIELD +RefactoringAction 1444296572164 Grid.java ADD import java.awt.List IMPORT +RefactoringAction 1444296680321 Grid.java RENAME gridArray=>List> ls2d FIELD +RefactoringAction 1444296683827 Grid.java REMOVE import java.awt.List IMPORT +RefactoringAction 1444296688333 Grid.java REMOVE ls2d FIELD +RefactoringAction 1444296695847 Grid.java RENAME Grid(int, int)=>ArrayList FIELD +CompilationAction 1444296705910 Grid.java +CompilationAction 1444296705911 Grid.java +CompilationAction 1444296705912 Grid.java +CompilationAction 1444296705913 Grid.java +RefactoringAction 1444296803417 Grid.java REMOVE gridArray FIELD +RefactoringAction 1444296806922 Grid.java ADD List FIELD +RefactoringAction 1444296812599 Grid.java ADD import java.awt.List IMPORT +CompilationAction 1444296827431 Grid.java +CompilationAction 1444296827432 Grid.java +CompilationAction 1444296827433 Grid.java +CompilationAction 1444296827434 Grid.java +CompilationAction 1444296827673 Grid.java +CompilationAction 1444296827674 Grid.java +CompilationAction 1444296827674 TestGrid.java +CompilationAction 1444296827675 TestGrid.java +RefactoringAction 1444296847465 Grid.java RENAME gridArray=>List list FIELD +RefactoringAction 1444296858477 Grid.java RENAME list=>List FIELD +RefactoringAction 1444296861989 Grid.java REMOVE import java.awt.List IMPORT +CompilationAction 1444296863414 Grid.java +CompilationAction 1444296863415 Grid.java +CompilationAction 1444296863612 Grid.java +CompilationAction 1444296863613 Grid.java +CompilationAction 1444296863613 TestGrid.java +CompilationAction 1444296863614 TestGrid.java +EditAction 1444296883641 Grid.java 370 1 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 31dfd14..60ccac7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -4,7 +4,7 @@ public class Grid { - private static ArrayList[][] gridArray = new ArrayList[0][0]; + private static List[][] gridArray = new ArrayList[0][0]; public Grid(int width, int height) { int i = 0; From 8623f9857f6ab617e4f10e8832581575801d7f60 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:35:30 +0300 Subject: [PATCH 28/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 8 ++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 54d3f53..4670e10 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -150,3 +150,11 @@ CompilationAction 1444296863613 Grid.java CompilationAction 1444296863613 TestGrid.java CompilationAction 1444296863614 TestGrid.java EditAction 1444296883641 Grid.java 370 1 3 0 +CompilationAction 1444296887038 Grid.java +CompilationAction 1444296887040 Grid.java +CompilationAction 1444296897338 Grid.java +CompilationAction 1444296897339 Grid.java +CompilationAction 1444296897604 TestGrid.java +CompilationAction 1444296897606 TestGrid.java +RefactoringAction 1444296923535 Grid.java ADD string getSize() METHOD +EditAction 1444296929098 Grid.java 419 2 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 60ccac7..6ac179e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -4,7 +4,7 @@ public class Grid { - private static List[][] gridArray = new ArrayList[0][0]; + private static ArrayList[][] gridArray = new ArrayList[0][0]; public Grid(int width, int height) { int i = 0; @@ -20,5 +20,10 @@ public Grid(int width, int height) { } + public String getSize () { + + + } + } From 018d97b84b87e548c3c500fd2dece93a68c9a20a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:37:39 +0300 Subject: [PATCH 29/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 8 ++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 4670e10..4e998ff 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -158,3 +158,11 @@ CompilationAction 1444296897604 TestGrid.java CompilationAction 1444296897606 TestGrid.java RefactoringAction 1444296923535 Grid.java ADD string getSize() METHOD EditAction 1444296929098 Grid.java 419 2 3 0 +CompilationAction 1444296935051 Grid.java +CompilationAction 1444296935052 TestGrid.java +RefactoringAction 1444296950574 Grid.java ADD Grid() METHOD +CompilationAction 1444296953812 Grid.java +CompilationAction 1444296954056 Grid.java +CompilationAction 1444296967137 Grid.java +CompilationAction 1444296967349 Grid.java +EditAction 1444297057716 Grid.java 518 3 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 6ac179e..cb88ad3 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -6,6 +6,10 @@ public class Grid { private static ArrayList[][] gridArray = new ArrayList[0][0]; + public Grid() { + // ... + } + public Grid(int width, int height) { int i = 0; int b = 0; @@ -21,8 +25,8 @@ public Grid(int width, int height) { } public String getSize () { - - + String str = gridArray.size() + "x" + gridArray[0].size() + return } From 4da215b02c520e7c59ff80f50eeb570fda0e0402 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:39:24 +0300 Subject: [PATCH 30/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 18 ++++++++++++++++++ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 9 +++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 4e998ff..31f1e25 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -166,3 +166,21 @@ CompilationAction 1444296954056 Grid.java CompilationAction 1444296967137 Grid.java CompilationAction 1444296967349 Grid.java EditAction 1444297057716 Grid.java 518 3 3 0 +CompilationAction 1444297061329 Grid.java +CompilationAction 1444297061329 Grid.java +CompilationAction 1444297061330 Grid.java +RefactoringAction 1444297087292 Grid.java REMOVE gridArray FIELD +RefactoringAction 1444297089800 Grid.java ADD int FIELD +RefactoringAction 1444297094807 Grid.java RENAME grid=>int FIELD +CompilationAction 1444297135319 Grid.java +CompilationAction 1444297135320 Grid.java +CompilationAction 1444297135320 Grid.java +CompilationAction 1444297135519 Grid.java +CompilationAction 1444297135520 Grid.java +CompilationAction 1444297135520 Grid.java +CompilationAction 1444297161261 Grid.java +CompilationAction 1444297161262 Grid.java +CompilationAction 1444297161262 Grid.java +CompilationAction 1444297161477 Grid.java +CompilationAction 1444297161478 Grid.java +EditAction 1444297163211 Grid.java 538 3 6 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index cb88ad3..de997c0 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -4,19 +4,20 @@ public class Grid { - private static ArrayList[][] gridArray = new ArrayList[0][0]; + private static int[][] gridArray = new int[0][0]; public Grid() { // ... } public Grid(int width, int height) { + gridArray = new int[width][height]; int i = 0; int b = 0; while ( i < width) { while ( b < height ) { - gridArray[i][b].add(0); + gridArray[i][b] = 0; b++; } i++; @@ -25,8 +26,8 @@ public Grid(int width, int height) { } public String getSize () { - String str = gridArray.size() + "x" + gridArray[0].size() - return + String str = gridArray.length + "x" + gridArray[0].length; + return str; } From 3ea05f3bbe009c8a676a7d54f1134b264c5765d4 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:40:03 +0300 Subject: [PATCH 31/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 8 ++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 -- src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 7 +++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 31f1e25..4b69d96 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -184,3 +184,11 @@ CompilationAction 1444297161262 Grid.java CompilationAction 1444297161477 Grid.java CompilationAction 1444297161478 Grid.java EditAction 1444297163211 Grid.java 538 3 6 0 +UnitTestCaseAction 1444297179862 TestCell.java OK +UnitTestSessionAction 1444297179863 TestCell OK +UnitTestCaseAction 1444297188144 TestGrid.java OK +UnitTestSessionAction 1444297188145 TestGrid OK +RefactoringAction 1444297196456 TestGrid.java ADD void test_createA10By10Grid()/2 METHOD +RefactoringAction 1444297199464 TestGrid.java RENAME test_createA10By10Grid()/2=>void test_createA50By10Grid() METHOD +RefactoringAction 1444297200975 TestGrid.java RENAME test_createA50By10Grid()=>void test_createA50ByGrid() METHOD +EditAction 1444297201937 TestGrid.java 706 3 7 2 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index de997c0..8ff0d91 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 java.util.ArrayList; - public class Grid { private static int[][] gridArray = new int[0][0]; diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index f272427..ce9576f 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -21,4 +21,11 @@ public void test_createA10By10Grid () { assertEquals(size, "10x10"); } + @Test + public void test_createA50By43Grid () { + initializeGrid ( 10, 10 ); + String size = testGrid.getSize(); + assertEquals(size, "10x10"); + } + } From dd6c7bd496bf1e67ea91f27a8438ffb43cc3161d Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:40:14 +0300 Subject: [PATCH 32/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 4b69d96..5067246 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -192,3 +192,4 @@ RefactoringAction 1444297196456 TestGrid.java ADD void test_createA10By10Grid()/ RefactoringAction 1444297199464 TestGrid.java RENAME test_createA10By10Grid()/2=>void test_createA50By10Grid() METHOD RefactoringAction 1444297200975 TestGrid.java RENAME test_createA50By10Grid()=>void test_createA50ByGrid() METHOD EditAction 1444297201937 TestGrid.java 706 3 7 2 +EditAction 1444297213578 TestGrid.java 706 3 7 2 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index ce9576f..10997e6 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -23,9 +23,9 @@ public void test_createA10By10Grid () { @Test public void test_createA50By43Grid () { - initializeGrid ( 10, 10 ); + initializeGrid ( 50, 43 ); String size = testGrid.getSize(); - assertEquals(size, "10x10"); + assertEquals(size, "50x43"); } } From 616e65ebb2077c4145e3c43d27f1026e4ded7767 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:41:41 +0300 Subject: [PATCH 33/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 5067246..ad68771 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -193,3 +193,8 @@ RefactoringAction 1444297199464 TestGrid.java RENAME test_createA10By10Grid()/2= RefactoringAction 1444297200975 TestGrid.java RENAME test_createA50By10Grid()=>void test_createA50ByGrid() METHOD EditAction 1444297201937 TestGrid.java 706 3 7 2 EditAction 1444297213578 TestGrid.java 706 3 7 2 +UnitTestCaseAction 1444297221559 TestGrid.java OK +UnitTestSessionAction 1444297221561 TestGrid OK +RefactoringAction 1444297266077 TestGrid.java ADD void test_ FIELD +RefactoringAction 1444297273587 TestGrid.java RENAME test_=>void test_getCell() METHOD +EditAction 1444297300237 TestGrid.java 811 4 9 2 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 10997e6..056550a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -28,4 +28,10 @@ public void test_createA50By43Grid () { assertEquals(size, "50x43"); } + @Test + public void test_getCell () { + initializeGrid ( 50, 50 ); + testGrid.GetCell(10,10); + } + } From fee8463dd5e0933bc45c6165fc0741469d217d97 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:42:34 +0300 Subject: [PATCH 34/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 9 +++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 3 +++ .../unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index ad68771..f63eda5 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -198,3 +198,12 @@ UnitTestSessionAction 1444297221561 TestGrid OK RefactoringAction 1444297266077 TestGrid.java ADD void test_ FIELD RefactoringAction 1444297273587 TestGrid.java RENAME test_=>void test_getCell() METHOD EditAction 1444297300237 TestGrid.java 811 4 9 2 +CompilationAction 1444297303681 TestGrid.java +CompilationAction 1444297306064 TestGrid.java +CompilationAction 1444297306171 TestGrid.java +CompilationAction 1444297309969 TestGrid.java +CompilationAction 1444297310095 TestGrid.java +RefactoringAction 1444297324980 Grid.java ADD int get FIELD +RefactoringAction 1444297328993 Grid.java RENAME get=>int getCell() METHOD +RefactoringAction 1444297341013 Grid.java RENAME getCell()=>int getCell(int, int) METHOD +EditAction 1444297353472 Grid.java 575 4 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 8ff0d91..4ccbe54 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -28,5 +28,8 @@ public String getSize () { return str; } + public int getCell (int x, int y) { + return gridArray(x,y); + } } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 056550a..109dfa0 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -29,9 +29,9 @@ public void test_createA50By43Grid () { } @Test - public void test_getCell () { + public void test_getCellFromGrid () { initializeGrid ( 50, 50 ); - testGrid.GetCell(10,10); + testGrid.getCell(10,10); } } From 720f62245892617b992f756491381d7e55e4877d Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:42:44 +0300 Subject: [PATCH 35/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index f63eda5..63e38a3 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -207,3 +207,5 @@ RefactoringAction 1444297324980 Grid.java ADD int get FIELD RefactoringAction 1444297328993 Grid.java RENAME get=>int getCell() METHOD RefactoringAction 1444297341013 Grid.java RENAME getCell()=>int getCell(int, int) METHOD EditAction 1444297353472 Grid.java 575 4 7 0 +CompilationAction 1444297356857 Grid.java +EditAction 1444297363429 Grid.java 576 4 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 4ccbe54..fccc87c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -29,7 +29,7 @@ public String getSize () { } public int getCell (int x, int y) { - return gridArray(x,y); + return gridArray[x][y]; } } From 365fe5ef5bca28db79e9c17e9222d92e46fc43f1 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:48:26 +0300 Subject: [PATCH 36/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 22 +++++++++++++++++++ .../unioulu/tol/sqatlab/gameoflife/Cell.java | 12 +++++----- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 63e38a3..e9ab3d5 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -209,3 +209,25 @@ RefactoringAction 1444297341013 Grid.java RENAME getCell()=>int getCell(int, int EditAction 1444297353472 Grid.java 575 4 7 0 CompilationAction 1444297356857 Grid.java EditAction 1444297363429 Grid.java 576 4 7 0 +UnitTestCaseAction 1444297372038 TestGrid.java OK +UnitTestSessionAction 1444297372038 TestGrid OK +UnitTestCaseAction 1444297372312 TestGrid.java OK +UnitTestSessionAction 1444297372313 TestGrid OK +FileOpenedAction 1444297448902 Cell.java 441 4 4 0 +FileOpenedAction 1444297450339 GameOfLife.java 79 0 0 0 +FileOpenedAction 1444297456968 Cell.java 441 4 4 0 +FileOpenedAction 1444297457770 Grid.java 576 4 7 0 +FileOpenedAction 1444297458365 TestCell.java 1365 5 16 3 +FileOpenedAction 1444297459308 TestGrid.java 819 4 9 2 +RefactoringAction 1444297594890 TestCell.java REMOVE test_randomCellStatusInitialization() METHOD +RefactoringAction 1444297594891 TestCell.java REMOVE test_getCellStatus() METHOD +RefactoringAction 1444297594892 TestCell.java REMOVE test_setToAliveAndThenToDeadAndReturnStatus() METHOD +RefactoringAction 1444297594893 TestCell.java REMOVE test_setToAliveAndReturnStatus() METHOD +RefactoringAction 1444297596909 TestCell.java ADD void test_getCellStatus() METHOD +RefactoringAction 1444297596910 TestCell.java ADD void test_setToAliveAndReturnStatus() METHOD +RefactoringAction 1444297596911 TestCell.java ADD void test_setToAliveAndThenToDeadAndReturnStatus() METHOD +RefactoringAction 1444297596912 TestCell.java ADD void test_randomCellStatusInitialization() METHOD +RefactoringAction 1444297660485 Cell.java REMOVE isAlive FIELD +RefactoringAction 1444297662991 Cell.java ADD String life FIELD +RefactoringAction 1444297666496 Cell.java RENAME life=>String Life FIELD +EditAction 1444297704989 Cell.java 414 4 4 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 734e2f0..e52a660 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -3,26 +3,26 @@ public class Cell { //Initially start with dead status - private static boolean isAlive = false; + private static String Life = "-"; public Cell () { if ( Math.random() < 0.5 ) { - isAlive = false; + Life = "-"; } else { - isAlive = true; + Life = "*"; } } public boolean getStatus () { - return isAlive; + return Life; } public void setToAlive () { - isAlive = true; + Life = "*"; } public void setToDead () { - isAlive = false; + Life = "-"; } } From a23c6b691757bbf678782b59caa0da954ec3834f Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:50:49 +0300 Subject: [PATCH 37/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 12 ++++++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Cell.java | 2 +- .../tol/sqatlab/gameoflife/test/TestCell.java | 14 +++++++------- .../tol/sqatlab/gameoflife/test/TestGrid.java | 5 +++++ 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index e9ab3d5..e956766 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -231,3 +231,15 @@ RefactoringAction 1444297660485 Cell.java REMOVE isAlive FIELD RefactoringAction 1444297662991 Cell.java ADD String life FIELD RefactoringAction 1444297666496 Cell.java RENAME life=>String Life FIELD EditAction 1444297704989 Cell.java 414 4 4 0 +CompilationAction 1444297708458 Cell.java +CompilationAction 1444297716666 Cell.java +CompilationAction 1444297716930 TestCell.java +CompilationAction 1444297775901 TestCell.java +UnitTestCaseAction 1444297777017 TestCell.java OK +UnitTestSessionAction 1444297777018 TestCell OK +RefactoringAction 1444297837867 TestGrid.java ADD void test_get FIELD +RefactoringAction 1444297840377 TestGrid.java RENAME test_get=>void test_getCellStatus FIELD +RefactoringAction 1444297841885 TestGrid.java RENAME test_getCellStatus=>void test_getCellStatu FIELD +RefactoringAction 1444297844394 TestGrid.java RENAME test_getCellStatu=>void test_getCellStatusFromGrid FIELD +RefactoringAction 1444297846902 TestGrid.java RENAME test_getCellStatusFromGrid=>void test_getCellStatusFromGrid() METHOD +EditAction 1444297848208 TestGrid.java 884 5 9 2 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index e52a660..5fb4815 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -13,7 +13,7 @@ public Cell () { } } - public boolean getStatus () { + public String getStatus () { return Life; } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 9028fc8..8d6ba56 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -17,16 +17,16 @@ public void initializeCell() { @Test public void test_getCellStatus () { initializeCell(); - boolean r = testCell.getStatus(); - assertEquals( ((Object)r).getClass().getName(), "java.lang.Boolean" ); + String r = testCell.getStatus(); + assertEquals( ((Object)r).getClass().getName(), "java.lang.String" ); } @Test public void test_setToAliveAndReturnStatus() { initializeCell(); testCell.setToAlive(); - boolean r = testCell.getStatus(); - assertEquals ( r, true ); + String r = testCell.getStatus(); + assertEquals ( r, "*" ); } @Test @@ -34,8 +34,8 @@ public void test_setToAliveAndThenToDeadAndReturnStatus() { initializeCell(); testCell.setToAlive(); testCell.setToDead(); - boolean r = testCell.getStatus(); - assertEquals ( r, false ); + String r = testCell.getStatus(); + assertEquals ( r, "-" ); } @Test @@ -47,7 +47,7 @@ public void test_randomCellStatusInitialization () { boolean alive = false; while ( dead == false && alive == false ) { initializeCell(); - if (testCell.getStatus()) { + if (testCell.getStatus() == "*") { alive = true; } else { dead = true; diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 109dfa0..3cfef32 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -34,4 +34,9 @@ public void test_getCellFromGrid () { testGrid.getCell(10,10); } + @Test + public void test_getCellStatusFromGrid () { + + } + } From bf1ff28cba9db9e47ce617a8e8b83c6de8667ece Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:52:28 +0300 Subject: [PATCH 38/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index e956766..c395700 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -243,3 +243,4 @@ RefactoringAction 1444297841885 TestGrid.java RENAME test_getCellStatus=>void te RefactoringAction 1444297844394 TestGrid.java RENAME test_getCellStatu=>void test_getCellStatusFromGrid FIELD RefactoringAction 1444297846902 TestGrid.java RENAME test_getCellStatusFromGrid=>void test_getCellStatusFromGrid() METHOD EditAction 1444297848208 TestGrid.java 884 5 9 2 +EditAction 1444297947325 Grid.java 579 4 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index fccc87c..de782f2 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -2,7 +2,7 @@ public class Grid { - private static int[][] gridArray = new int[0][0]; + private static Cell[][] gridArray = new Cell[0][0]; public Grid() { // ... @@ -28,7 +28,7 @@ public String getSize () { return str; } - public int getCell (int x, int y) { + public Cell getCell (int x, int y) { return gridArray[x][y]; } From 984a14b46960691f81a8803753dd9380712f5bc1 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:53:36 +0300 Subject: [PATCH 39/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 8 ++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index c395700..5fd0064 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -244,3 +244,11 @@ RefactoringAction 1444297844394 TestGrid.java RENAME test_getCellStatu=>void tes RefactoringAction 1444297846902 TestGrid.java RENAME test_getCellStatusFromGrid=>void test_getCellStatusFromGrid() METHOD EditAction 1444297848208 TestGrid.java 884 5 9 2 EditAction 1444297947325 Grid.java 579 4 7 0 +CompilationAction 1444297950823 Grid.java +CompilationAction 1444297950824 Grid.java +CompilationAction 1444297963159 Grid.java +CompilationAction 1444297963160 Grid.java +RefactoringAction 1444297991889 Grid.java ADD String getCell FIELD +RefactoringAction 1444297991890 Grid.java ADD void Status(int, int) METHOD +RefactoringAction 1444298001919 Grid.java RENAME getCell=>String getCellStatus FIELD +EditAction 1444298015025 Grid.java 688 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index de782f2..7fc544e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -9,13 +9,13 @@ public Grid() { } public Grid(int width, int height) { - gridArray = new int[width][height]; + gridArray = new Cell[width][height]; int i = 0; int b = 0; while ( i < width) { while ( b < height ) { - gridArray[i][b] = 0; + gridArray[i][b] = new Cell(); b++; } i++; @@ -32,4 +32,8 @@ public Cell getCell (int x, int y) { return gridArray[x][y]; } + public String getCellStatus Status ( int x, int y ) { + return getCell(x,y).getStatus(); + } + } From bb0e30071ef2247c6b3cd3bf61fe1d9f5868528c Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:55:53 +0300 Subject: [PATCH 40/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 8 +++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 5fd0064..47b289f 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -252,3 +252,7 @@ RefactoringAction 1444297991889 Grid.java ADD String getCell FIELD RefactoringAction 1444297991890 Grid.java ADD void Status(int, int) METHOD RefactoringAction 1444298001919 Grid.java RENAME getCell=>String getCellStatus FIELD EditAction 1444298015025 Grid.java 688 5 8 0 +CompilationAction 1444298018437 Grid.java +CompilationAction 1444298018437 Grid.java +CompilationAction 1444298022099 Grid.java +EditAction 1444298152308 TestGrid.java 1076 5 9 2 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 7fc544e..4355001 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -32,7 +32,7 @@ public Cell getCell (int x, int y) { return gridArray[x][y]; } - public String getCellStatus Status ( int x, int y ) { + public String getCellStatus ( int x, int y ) { return getCell(x,y).getStatus(); } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 3cfef32..49d6fe3 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -36,7 +36,13 @@ public void test_getCellFromGrid () { @Test public void test_getCellStatusFromGrid () { - + initializeGrid ( 50, 50 ); + String str = testGrid.getCellStatus ( 20, 10 ); + if (str == "*" || str == "-") { + assert(true); + } else { + fail("Life of a cell was not * or -.") + } } } From 142106402bc9850cb7e2c04c3026d2d639b11e91 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:58:55 +0300 Subject: [PATCH 41/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 47b289f..e2a37d0 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -256,3 +256,8 @@ CompilationAction 1444298018437 Grid.java CompilationAction 1444298018437 Grid.java CompilationAction 1444298022099 Grid.java EditAction 1444298152308 TestGrid.java 1076 5 9 2 +CompilationAction 1444298155704 TestGrid.java +RefactoringAction 1444298292906 GameOfLife.java ADD Boolean running FIELD +RefactoringAction 1444298319924 GameOfLife.java ADD void main FIELD +RefactoringAction 1444298321928 GameOfLife.java RENAME main=>void main() METHOD +EditAction 1444298334053 GameOfLife.java 201 1 1 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 975cdf4..5ec8c36 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,5 +1,13 @@ package org.unioulu.tol.sqatlab.gameoflife; public class GameOfLife { + + private static Boolean running = true; + + public void main () { + while (running) { + running = false; + } + } } From aaaab688c73b69b850df68d2c4fd77c5ec3b55e7 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 12:59:27 +0300 Subject: [PATCH 42/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index e2a37d0..85257b6 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -261,3 +261,6 @@ RefactoringAction 1444298292906 GameOfLife.java ADD Boolean running FIELD RefactoringAction 1444298319924 GameOfLife.java ADD void main FIELD RefactoringAction 1444298321928 GameOfLife.java RENAME main=>void main() METHOD EditAction 1444298334053 GameOfLife.java 201 1 1 0 +UnitTestCaseAction 1444298342975 TestGrid.java FAIL +UnitTestSessionAction 1444298342977 TestGrid FAIL +EditAction 1444298365718 TestGrid.java 1077 5 12 2 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 49d6fe3..9aef01b 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -41,7 +41,7 @@ public void test_getCellStatusFromGrid () { if (str == "*" || str == "-") { assert(true); } else { - fail("Life of a cell was not * or -.") + fail("Life of a cell was not * or -."); } } From 905948cc604bcf1b4a721bf862e1d580cd266253 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:05:29 +0300 Subject: [PATCH 43/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 11 +++++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 85257b6..d732047 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -264,3 +264,14 @@ EditAction 1444298334053 GameOfLife.java 201 1 1 0 UnitTestCaseAction 1444298342975 TestGrid.java FAIL UnitTestSessionAction 1444298342977 TestGrid FAIL EditAction 1444298365718 TestGrid.java 1077 5 12 2 +UnitTestCaseAction 1444298370674 TestGrid.java FAIL +UnitTestSessionAction 1444298370675 TestGrid FAIL +UnitTestCaseAction 1444298430182 TestGrid.java FAIL +UnitTestSessionAction 1444298430183 TestGrid FAIL +UnitTestCaseAction 1444298530960 TestGrid.java FAIL +UnitTestSessionAction 1444298530961 TestGrid FAIL +UnitTestCaseAction 1444298633343 TestGrid.java FAIL +UnitTestSessionAction 1444298633344 TestGrid FAIL +UnitTestCaseAction 1444298711980 TestGrid.java FAIL +UnitTestSessionAction 1444298711981 TestGrid FAIL +EditAction 1444298727865 Grid.java 719 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 4355001..39af750 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -33,7 +33,8 @@ public Cell getCell (int x, int y) { } public String getCellStatus ( int x, int y ) { - return getCell(x,y).getStatus(); + //return getCell(x,y).getStatus(); + return getCell(1,1).getStatus(); } } From bf2aaa4b1c630f79bad98865f2fc286ca4bdd769 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:05:44 +0300 Subject: [PATCH 44/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index d732047..b8c81c5 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -275,3 +275,6 @@ UnitTestSessionAction 1444298633344 TestGrid FAIL UnitTestCaseAction 1444298711980 TestGrid.java FAIL UnitTestSessionAction 1444298711981 TestGrid FAIL EditAction 1444298727865 Grid.java 719 5 8 0 +UnitTestCaseAction 1444298733473 TestGrid.java FAIL +UnitTestSessionAction 1444298733474 TestGrid FAIL +EditAction 1444298742751 Grid.java 719 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 39af750..444efa3 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -34,7 +34,7 @@ public Cell getCell (int x, int y) { public String getCellStatus ( int x, int y ) { //return getCell(x,y).getStatus(); - return getCell(1,1).getStatus(); + return getCell(0,0).getStatus(); } } From 3c4f9f916e232c5037c2fa983d31acc03f7f5547 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:06:10 +0300 Subject: [PATCH 45/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index b8c81c5..ec46212 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -278,3 +278,6 @@ EditAction 1444298727865 Grid.java 719 5 8 0 UnitTestCaseAction 1444298733473 TestGrid.java FAIL UnitTestSessionAction 1444298733474 TestGrid FAIL EditAction 1444298742751 Grid.java 719 5 8 0 +UnitTestCaseAction 1444298748620 TestGrid.java OK +UnitTestSessionAction 1444298748621 TestGrid OK +EditAction 1444298769004 Grid.java 719 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 444efa3..4ab951b 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -2,7 +2,7 @@ public class Grid { - private static Cell[][] gridArray = new Cell[0][0]; + private static Cell[][] gridArray = new Cell[1][1]; public Grid() { // ... From af3b078b69387ec1cc3a766842a47cf2eb00c32a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:06:24 +0300 Subject: [PATCH 46/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index ec46212..3a6469a 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -281,3 +281,6 @@ EditAction 1444298742751 Grid.java 719 5 8 0 UnitTestCaseAction 1444298748620 TestGrid.java OK UnitTestSessionAction 1444298748621 TestGrid OK EditAction 1444298769004 Grid.java 719 5 8 0 +UnitTestCaseAction 1444298774456 TestGrid.java OK +UnitTestSessionAction 1444298774457 TestGrid OK +EditAction 1444298783287 Grid.java 719 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 4ab951b..cf0ec00 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -34,7 +34,7 @@ public Cell getCell (int x, int y) { public String getCellStatus ( int x, int y ) { //return getCell(x,y).getStatus(); - return getCell(0,0).getStatus(); + return getCell(1,1).getStatus(); } } From ca7c615794ada2b6f2a39056131e355858571052 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:06:35 +0300 Subject: [PATCH 47/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 3a6469a..0a49ca8 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -284,3 +284,6 @@ EditAction 1444298769004 Grid.java 719 5 8 0 UnitTestCaseAction 1444298774456 TestGrid.java OK UnitTestSessionAction 1444298774457 TestGrid OK EditAction 1444298783287 Grid.java 719 5 8 0 +UnitTestCaseAction 1444298787764 TestGrid.java FAIL +UnitTestSessionAction 1444298787765 TestGrid FAIL +EditAction 1444298793656 Grid.java 681 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index cf0ec00..248567e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -33,8 +33,7 @@ public Cell getCell (int x, int y) { } public String getCellStatus ( int x, int y ) { - //return getCell(x,y).getStatus(); - return getCell(1,1).getStatus(); + return getCell(x,y).getStatus(); } } From fcf7b9dc06972255e1148a555f0ecd4f6a14fa46 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:07:52 +0300 Subject: [PATCH 48/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 0a49ca8..8952e1c 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -287,3 +287,4 @@ EditAction 1444298783287 Grid.java 719 5 8 0 UnitTestCaseAction 1444298787764 TestGrid.java FAIL UnitTestSessionAction 1444298787765 TestGrid FAIL EditAction 1444298793656 Grid.java 681 5 8 0 +EditAction 1444298870650 Grid.java 681 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 248567e..4355001 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -2,7 +2,7 @@ public class Grid { - private static Cell[][] gridArray = new Cell[1][1]; + private static Cell[][] gridArray = new Cell[0][0]; public Grid() { // ... From 1d1ea9dbaacd975b337b2a0c8b308b26ae8007f7 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:08:16 +0300 Subject: [PATCH 49/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 8952e1c..7411dac 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -288,3 +288,4 @@ UnitTestCaseAction 1444298787764 TestGrid.java FAIL UnitTestSessionAction 1444298787765 TestGrid FAIL EditAction 1444298793656 Grid.java 681 5 8 0 EditAction 1444298870650 Grid.java 681 5 8 0 +EditAction 1444298894593 Grid.java 697 5 9 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 4355001..6a8e3a8 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -9,18 +9,18 @@ public Grid() { } public Grid(int width, int height) { - gridArray = new Cell[width][height]; + Cell[][] temp = new Cell[width][height]; int i = 0; int b = 0; while ( i < width) { while ( b < height ) { - gridArray[i][b] = new Cell(); + temp[i][b] = new Cell(); b++; } i++; } - + gridArray = temp; } public String getSize () { From a6a1ca4d14c126c1abf9f7345b0d6a62c8dfd4af Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:10:03 +0300 Subject: [PATCH 50/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 7411dac..bbb9c79 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -289,3 +289,6 @@ UnitTestSessionAction 1444298787765 TestGrid FAIL EditAction 1444298793656 Grid.java 681 5 8 0 EditAction 1444298870650 Grid.java 681 5 8 0 EditAction 1444298894593 Grid.java 697 5 9 0 +UnitTestCaseAction 1444298900298 TestGrid.java FAIL +UnitTestSessionAction 1444298900299 TestGrid FAIL +EditAction 1444299001622 Grid.java 701 5 9 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 6a8e3a8..146220a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -20,6 +20,7 @@ public Grid(int width, int height) { } i++; } + gridArray = temp; } From bbfd1d4ebc98982d00c78fb9220263bd9d58846f Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:11:12 +0300 Subject: [PATCH 51/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 11 +++++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index bbb9c79..c11bb87 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -292,3 +292,14 @@ EditAction 1444298894593 Grid.java 697 5 9 0 UnitTestCaseAction 1444298900298 TestGrid.java FAIL UnitTestSessionAction 1444298900299 TestGrid FAIL EditAction 1444299001622 Grid.java 701 5 9 0 +UnitTestCaseAction 1444299006985 TestGrid.java FAIL +UnitTestSessionAction 1444299006986 TestGrid FAIL +UnitTestCaseAction 1444299060454 TestGrid.java FAIL +UnitTestSessionAction 1444299060455 TestGrid FAIL +RefactoringAction 1444299066920 Grid.java REMOVE getCellStatus(int, int) METHOD +RefactoringAction 1444299066921 Grid.java REMOVE getCell(int, int) METHOD +RefactoringAction 1444299066922 Grid.java REMOVE getSize() METHOD +RefactoringAction 1444299068936 Grid.java ADD String getSize() METHOD +RefactoringAction 1444299068937 Grid.java ADD Cell getCell(int, int) METHOD +RefactoringAction 1444299068938 Grid.java ADD String getCellStatus(int, int) METHOD +EditAction 1444299071132 Grid.java 705 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 146220a..f675b2a 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -13,13 +13,13 @@ public Grid(int width, int height) { int i = 0; int b = 0; - while ( i < width) { + /*while ( i < width) { while ( b < height ) { temp[i][b] = new Cell(); b++; } i++; - } + }*/ gridArray = temp; } From 6d69deacb18c9b4601014802a23b360fa61a6072 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:11:29 +0300 Subject: [PATCH 52/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index c11bb87..71dc834 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -303,3 +303,6 @@ RefactoringAction 1444299068936 Grid.java ADD String getSize() METHOD RefactoringAction 1444299068937 Grid.java ADD Cell getCell(int, int) METHOD RefactoringAction 1444299068938 Grid.java ADD String getCellStatus(int, int) METHOD EditAction 1444299071132 Grid.java 705 5 8 0 +UnitTestCaseAction 1444299079704 TestGrid.java FAIL +UnitTestSessionAction 1444299079707 TestGrid FAIL +EditAction 1444299087867 Grid.java 741 5 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index f675b2a..06c26d6 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -34,6 +34,7 @@ public Cell getCell (int x, int y) { } public String getCellStatus ( int x, int y ) { + System.out.println(getCell(x,y)) return getCell(x,y).getStatus(); } From eb1abf2532c1e35716949370e4383dc3d19109ea Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:11:38 +0300 Subject: [PATCH 53/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 71dc834..4f094df 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -306,3 +306,5 @@ EditAction 1444299071132 Grid.java 705 5 8 0 UnitTestCaseAction 1444299079704 TestGrid.java FAIL UnitTestSessionAction 1444299079707 TestGrid FAIL EditAction 1444299087867 Grid.java 741 5 7 0 +CompilationAction 1444299091849 Grid.java +EditAction 1444299097461 Grid.java 742 5 9 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 06c26d6..6f44a0b 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -34,7 +34,7 @@ public Cell getCell (int x, int y) { } public String getCellStatus ( int x, int y ) { - System.out.println(getCell(x,y)) + System.out.println(getCell(x,y)); return getCell(x,y).getStatus(); } From 7f7ab099ce976a267594e69889a356f6fa0cad8c Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:11:52 +0300 Subject: [PATCH 54/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 4f094df..1231908 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -308,3 +308,6 @@ UnitTestSessionAction 1444299079707 TestGrid FAIL EditAction 1444299087867 Grid.java 741 5 7 0 CompilationAction 1444299091849 Grid.java EditAction 1444299097461 Grid.java 742 5 9 0 +UnitTestCaseAction 1444299102439 TestGrid.java FAIL +UnitTestSessionAction 1444299102440 TestGrid FAIL +EditAction 1444299111062 Grid.java 738 5 10 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 6f44a0b..f47c38b 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -13,13 +13,13 @@ public Grid(int width, int height) { int i = 0; int b = 0; - /*while ( i < width) { + while ( i < width) { while ( b < height ) { temp[i][b] = new Cell(); b++; } i++; - }*/ + } gridArray = temp; } From 3a461cfa8e8e6f4027a250e0ae5133f8dca8ef1f Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:14:15 +0300 Subject: [PATCH 55/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 6 ++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 15 +++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 1231908..1d76347 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -311,3 +311,9 @@ EditAction 1444299097461 Grid.java 742 5 9 0 UnitTestCaseAction 1444299102439 TestGrid.java FAIL UnitTestSessionAction 1444299102440 TestGrid FAIL EditAction 1444299111062 Grid.java 738 5 10 0 +UnitTestCaseAction 1444299119822 TestGrid.java FAIL +UnitTestSessionAction 1444299119823 TestGrid FAIL +UnitTestCaseAction 1444299120390 TestGrid.java FAIL +UnitTestSessionAction 1444299120391 TestGrid FAIL +RefactoringAction 1444299242729 Grid.java ADD import java.util.Arrays IMPORT +EditAction 1444299254248 Grid.java 672 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index f47c38b..9e52354 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 java.util.Arrays; + public class Grid { private static Cell[][] gridArray = new Cell[0][0]; @@ -9,17 +11,10 @@ public Grid() { } public Grid(int width, int height) { - Cell[][] temp = new Cell[width][height]; - int i = 0; - int b = 0; + Cell[][] gridArray = new Cell[width][height]; + + Arrays.fill(gridArray,new Cell()); - while ( i < width) { - while ( b < height ) { - temp[i][b] = new Cell(); - b++; - } - i++; - } gridArray = temp; } From 97ffd69c69354765bbfaba576b46d95b953294d2 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:14:23 +0300 Subject: [PATCH 56/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 1d76347..a3d4121 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -317,3 +317,4 @@ UnitTestCaseAction 1444299120390 TestGrid.java FAIL UnitTestSessionAction 1444299120391 TestGrid FAIL RefactoringAction 1444299242729 Grid.java ADD import java.util.Arrays IMPORT EditAction 1444299254248 Grid.java 672 5 8 0 +EditAction 1444299261714 Grid.java 647 5 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 9e52354..e0df9cd 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -15,8 +15,6 @@ public Grid(int width, int height) { Arrays.fill(gridArray,new Cell()); - - gridArray = temp; } public String getSize () { From bdaae0261cbff2ea7966ed0eef557c62281b05dc Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:15:18 +0300 Subject: [PATCH 57/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 15 +++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index a3d4121..fdbb60c 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -318,3 +318,6 @@ UnitTestSessionAction 1444299120391 TestGrid FAIL RefactoringAction 1444299242729 Grid.java ADD import java.util.Arrays IMPORT EditAction 1444299254248 Grid.java 672 5 8 0 EditAction 1444299261714 Grid.java 647 5 7 0 +UnitTestCaseAction 1444299267605 TestGrid.java FAIL +UnitTestSessionAction 1444299267607 TestGrid FAIL +EditAction 1444299317133 Grid.java 743 5 10 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index e0df9cd..efeb3ca 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 java.util.Arrays; - public class Grid { private static Cell[][] gridArray = new Cell[0][0]; @@ -12,9 +10,18 @@ public Grid() { public Grid(int width, int height) { Cell[][] gridArray = new Cell[width][height]; - - Arrays.fill(gridArray,new Cell()); + int i = 0; + int b = 0; + + while ( i < width) { + while ( b < height ) { + temp[i][b] = new Cell(); + b++; + } + i++; + } + gridArray = temp; } public String getSize () { From 225a4c7aa4f5b2b7ea30a2d8be40f174feff7d10 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:17:46 +0300 Subject: [PATCH 58/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 11 +++++++++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 9 ++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index fdbb60c..d9108f0 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -321,3 +321,14 @@ EditAction 1444299261714 Grid.java 647 5 7 0 UnitTestCaseAction 1444299267605 TestGrid.java FAIL UnitTestSessionAction 1444299267607 TestGrid FAIL EditAction 1444299317133 Grid.java 743 5 10 0 +CompilationAction 1444299321286 Grid.java +CompilationAction 1444299336449 Grid.java +UnitTestCaseAction 1444299337663 TestGrid.java FAIL +UnitTestSessionAction 1444299337664 TestGrid FAIL +UnitTestCaseAction 1444299391245 TestGrid.java FAIL +UnitTestSessionAction 1444299391247 TestGrid FAIL +UnitTestCaseAction 1444299412819 TestGrid.java FAIL +UnitTestSessionAction 1444299412820 TestGrid FAIL +UnitTestCaseAction 1444299425202 TestGrid.java FAIL +UnitTestSessionAction 1444299425203 TestGrid FAIL +EditAction 1444299465005 Grid.java 683 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index efeb3ca..3ca16a7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -2,26 +2,25 @@ public class Grid { - private static Cell[][] gridArray = new Cell[0][0]; + private static Cell[][] gridArray = new Cell[1][1]; public Grid() { // ... } public Grid(int width, int height) { - Cell[][] gridArray = new Cell[width][height]; + gridArray = new Cell[width][height]; int i = 0; int b = 0; while ( i < width) { while ( b < height ) { - temp[i][b] = new Cell(); + gridArray[i][b] = new Cell(); b++; } i++; } - gridArray = temp; } public String getSize () { @@ -34,8 +33,8 @@ public Cell getCell (int x, int y) { } public String getCellStatus ( int x, int y ) { - System.out.println(getCell(x,y)); return getCell(x,y).getStatus(); + } } From e8a4a5827975ff5cf0fec49d865d8c0f22da5a75 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:18:24 +0300 Subject: [PATCH 59/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index d9108f0..64c1433 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -332,3 +332,7 @@ UnitTestSessionAction 1444299412820 TestGrid FAIL UnitTestCaseAction 1444299425202 TestGrid.java FAIL UnitTestSessionAction 1444299425203 TestGrid FAIL EditAction 1444299465005 Grid.java 683 5 8 0 +UnitTestCaseAction 1444299474674 TestGrid.java FAIL +UnitTestSessionAction 1444299474675 TestGrid FAIL +RefactoringAction 1444299491615 Grid.java ADD import java.util.Arrays IMPORT +EditAction 1444299503340 Grid.java 676 5 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 3ca16a7..18204c3 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 java.util.Arrays; + public class Grid { private static Cell[][] gridArray = new Cell[1][1]; @@ -14,10 +16,7 @@ public Grid(int width, int height) { int b = 0; while ( i < width) { - while ( b < height ) { - gridArray[i][b] = new Cell(); - b++; - } + Arrays.fill(gridArray[i], new Cell()); i++; } From 509480b9682081ae3a5bae5bb200b4732bf4b7a5 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:20:04 +0300 Subject: [PATCH 60/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 -- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 64c1433..1d1b301 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -336,3 +336,6 @@ UnitTestCaseAction 1444299474674 TestGrid.java FAIL UnitTestSessionAction 1444299474675 TestGrid FAIL RefactoringAction 1444299491615 Grid.java ADD import java.util.Arrays IMPORT EditAction 1444299503340 Grid.java 676 5 8 0 +UnitTestCaseAction 1444299509635 TestGrid.java OK +UnitTestSessionAction 1444299509637 TestGrid OK +EditAction 1444299603289 GameOfLife.java 261 1 1 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 5ec8c36..200162d 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -3,9 +3,13 @@ public class GameOfLife { private static Boolean running = true; + private static gameGrid = new Grid(10,10); public void main () { while (running) { + + + running = false; } } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 18204c3..68f5646 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -13,7 +13,6 @@ public Grid() { public Grid(int width, int height) { gridArray = new Cell[width][height]; int i = 0; - int b = 0; while ( i < width) { Arrays.fill(gridArray[i], new Cell()); @@ -33,7 +32,6 @@ public Cell getCell (int x, int y) { public String getCellStatus ( int x, int y ) { return getCell(x,y).getStatus(); - } } From e18a7ff647d8b16149326f9bf4d57143afe684d0 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:27:57 +0300 Subject: [PATCH 61/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 38 +++++++++++++++++++ .../tol/sqatlab/gameoflife/GameOfLife.java | 32 +++++++++++++++- 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 1d1b301..534762f 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -339,3 +339,41 @@ EditAction 1444299503340 Grid.java 676 5 8 0 UnitTestCaseAction 1444299509635 TestGrid.java OK UnitTestSessionAction 1444299509637 TestGrid OK EditAction 1444299603289 GameOfLife.java 261 1 1 0 +CompilationAction 1444299607499 GameOfLife.java +CompilationAction 1444299607500 GameOfLife.java +RefactoringAction 1444299616809 GameOfLife.java ADD Grid gameGrid FIELD +RefactoringAction 1444299663333 GameOfLife.java ADD int askInteger() METHOD +RefactoringAction 1444299691908 GameOfLife.java ADD void print() METHOD +RefactoringAction 1444299696420 GameOfLife.java RENAME print()=>void print(String) METHOD +RefactoringAction 1444299724971 GameOfLife.java RENAME print(String)=>void println(String) METHOD +RefactoringAction 1444299731487 GameOfLife.java ADD void println(String)/2 METHOD +CompilationAction 1444299733356 GameOfLife.java +CompilationAction 1444299733357 GameOfLife.java +CompilationAction 1444299733574 GameOfLife.java +CompilationAction 1444299733575 GameOfLife.java +CompilationAction 1444299733576 GameOfLife.java +CompilationAction 1444299733577 GameOfLife.java +RefactoringAction 1444299810598 GameOfLife.java RENAME askInteger()=>int askInteger(String) METHOD +RefactoringAction 1444299855657 GameOfLife.java RENAME askInteger(String)=>int askPositiveInteger(String) METHOD +CompilationAction 1444299871497 GameOfLife.java +CompilationAction 1444299871498 GameOfLife.java +CompilationAction 1444299871499 GameOfLife.java +CompilationAction 1444299871499 GameOfLife.java +CompilationAction 1444299871627 GameOfLife.java +CompilationAction 1444299871638 GameOfLife.java +CompilationAction 1444299871639 GameOfLife.java +CompilationAction 1444299871640 GameOfLife.java +RefactoringAction 1444299901728 GameOfLife.java RENAME println(String)/2=>void print(String) METHOD +CompilationAction 1444299954466 GameOfLife.java +CompilationAction 1444299954467 GameOfLife.java +CompilationAction 1444299954467 GameOfLife.java +CompilationAction 1444299954468 GameOfLife.java +CompilationAction 1444299954673 GameOfLife.java +CompilationAction 1444299954674 GameOfLife.java +CompilationAction 1444299954675 GameOfLife.java +RefactoringAction 1444300002428 GameOfLife.java ADD import java.util.Scanner IMPORT +CompilationAction 1444300069937 GameOfLife.java +CompilationAction 1444300069938 GameOfLife.java +CompilationAction 1444300069939 GameOfLife.java +CompilationAction 1444300070074 GameOfLife.java +EditAction 1444300075528 GameOfLife.java 923 4 7 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 200162d..9289ffd 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,17 +1,47 @@ package org.unioulu.tol.sqatlab.gameoflife; +import java.util.Scanner; + public class GameOfLife { private static Boolean running = true; - private static gameGrid = new Grid(10,10); + private static Grid gameGrid = new Grid(10,10); public void main () { while (running) { + int w,h; + w=askPositiveInteger("grid width"); + h=askPositiveInteger("grid height"); + running = false; } } + + public int askPositiveInteger (String message) { + int num = -1; + Scanner scan = new Scanner(System.in); + do { + println("Please enter " + message + " (positive integer)."); + print("> "); + if (scan.hasNextInt()) { + num = scan.nextInt(); + } else { + println("Your input was not a positive integer. Try again."); + } + } while (num <= 0); + + return num; + } + + public void println(String str) { + System.out.println(str); + } + + public void print(String str) { + System.out.print(str); + } } From 7bbc6a4eb635beb6fde8087442a872aad691135a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:29:05 +0300 Subject: [PATCH 62/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 534762f..9acab4b 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -377,3 +377,6 @@ CompilationAction 1444300069938 GameOfLife.java CompilationAction 1444300069939 GameOfLife.java CompilationAction 1444300070074 GameOfLife.java EditAction 1444300075528 GameOfLife.java 923 4 7 0 +CompilationAction 1444300098311 GameOfLife.java +CompilationAction 1444300108427 GameOfLife.java +EditAction 1444300143568 GameOfLife.java 961 4 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 9289ffd..b4fbba7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -14,7 +14,7 @@ public void main () { w=askPositiveInteger("grid width"); h=askPositiveInteger("grid height"); - + gameGrid = new Grid(w,h); running = false; } @@ -32,7 +32,7 @@ public int askPositiveInteger (String message) { println("Your input was not a positive integer. Try again."); } } while (num <= 0); - + scan.close(); return num; } From 596d929404d5cbb2e1f9259c26359c147374a933 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:29:40 +0300 Subject: [PATCH 63/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 9acab4b..3ac12a1 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -380,3 +380,6 @@ EditAction 1444300075528 GameOfLife.java 923 4 7 0 CompilationAction 1444300098311 GameOfLife.java CompilationAction 1444300108427 GameOfLife.java EditAction 1444300143568 GameOfLife.java 961 4 8 0 +UnitTestCaseAction 1444300150393 TestGrid.java OK +UnitTestSessionAction 1444300150394 TestGrid OK +EditAction 1444300178946 GameOfLife.java 943 4 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index b4fbba7..6eeb6a7 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -5,7 +5,7 @@ public class GameOfLife { private static Boolean running = true; - private static Grid gameGrid = new Grid(10,10); + private static Grid gameGrid; public void main () { while (running) { From 9b6067800eb404ce7a0da7cf34371159859d5130 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:31:39 +0300 Subject: [PATCH 64/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 5 +++++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 3ac12a1..821598c 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -383,3 +383,8 @@ EditAction 1444300143568 GameOfLife.java 961 4 8 0 UnitTestCaseAction 1444300150393 TestGrid.java OK UnitTestSessionAction 1444300150394 TestGrid OK EditAction 1444300178946 GameOfLife.java 943 4 8 0 +UnitTestCaseAction 1444300200687 TestGrid.java OK +UnitTestSessionAction 1444300200688 TestGrid OK +UnitTestCaseAction 1444300222344 TestGrid.java OK +UnitTestSessionAction 1444300222345 TestGrid OK +EditAction 1444300297338 GameOfLife.java 971 4 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 6eeb6a7..1c51299 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -7,7 +7,7 @@ public class GameOfLife { private static Boolean running = true; private static Grid gameGrid; - public void main () { + public static void main () { while (running) { int w,h; @@ -20,7 +20,7 @@ public void main () { } } - public int askPositiveInteger (String message) { + public static int askPositiveInteger (String message) { int num = -1; Scanner scan = new Scanner(System.in); do { @@ -36,11 +36,11 @@ public int askPositiveInteger (String message) { return num; } - public void println(String str) { + public static void println(String str) { System.out.println(str); } - public void print(String str) { + public static void print(String str) { System.out.print(str); } From d1be3d9aff1ddedf7a1c8d20b2b1163186594e04 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:33:20 +0300 Subject: [PATCH 65/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 4 ++++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 821598c..a1b18f7 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -388,3 +388,7 @@ UnitTestSessionAction 1444300200688 TestGrid OK UnitTestCaseAction 1444300222344 TestGrid.java OK UnitTestSessionAction 1444300222345 TestGrid OK EditAction 1444300297338 GameOfLife.java 971 4 8 0 +UnitTestCaseAction 1444300302615 TestGrid.java OK +UnitTestSessionAction 1444300302616 TestGrid OK +RefactoringAction 1444300396199 GameOfLife.java RENAME main()=>static void main(String METHOD +EditAction 1444300398726 GameOfLife.java 982 4 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 1c51299..17e3140 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -7,7 +7,7 @@ public class GameOfLife { private static Boolean running = true; private static Grid gameGrid; - public static void main () { + public static void main(String [] args) while (running) { int w,h; From 71ca41ca170b4f181f80a22f1a483d2de719a61b Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:33:39 +0300 Subject: [PATCH 66/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index a1b18f7..3b067be 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -392,3 +392,5 @@ UnitTestCaseAction 1444300302615 TestGrid.java OK UnitTestSessionAction 1444300302616 TestGrid OK RefactoringAction 1444300396199 GameOfLife.java RENAME main()=>static void main(String METHOD EditAction 1444300398726 GameOfLife.java 982 4 8 0 +CompilationAction 1444300403082 GameOfLife.java +EditAction 1444300417895 GameOfLife.java 984 4 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 17e3140..fddeb3e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -7,7 +7,7 @@ public class GameOfLife { private static Boolean running = true; private static Grid gameGrid; - public static void main(String [] args) + public static void main(String [] args) { while (running) { int w,h; From 82b86b32267fc9266113477af9a963a51593d2b3 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:35:10 +0300 Subject: [PATCH 67/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 1 + 2 files changed, 2 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 3b067be..108fb76 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -394,3 +394,4 @@ RefactoringAction 1444300396199 GameOfLife.java RENAME main()=>static void main( EditAction 1444300398726 GameOfLife.java 982 4 8 0 CompilationAction 1444300403082 GameOfLife.java EditAction 1444300417895 GameOfLife.java 984 4 8 0 +EditAction 1444300508201 GameOfLife.java 1006 4 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index fddeb3e..79d9dc6 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -30,6 +30,7 @@ public static int askPositiveInteger (String message) { num = scan.nextInt(); } else { println("Your input was not a positive integer. Try again."); + scan.nextLine(); } } while (num <= 0); scan.close(); From 46c9aa56fe9be5ec3507d579777c5c885ac5d061 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:35:47 +0300 Subject: [PATCH 68/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 1 + 2 files changed, 2 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 108fb76..45c3b10 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -395,3 +395,4 @@ EditAction 1444300398726 GameOfLife.java 982 4 8 0 CompilationAction 1444300403082 GameOfLife.java EditAction 1444300417895 GameOfLife.java 984 4 8 0 EditAction 1444300508201 GameOfLife.java 1006 4 8 0 +EditAction 1444300544897 GameOfLife.java 1011 4 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 79d9dc6..2aeeb02 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -26,6 +26,7 @@ public static int askPositiveInteger (String message) { do { println("Please enter " + message + " (positive integer)."); print("> "); + if (scan.hasNextInt()) { num = scan.nextInt(); } else { From 3ad6cf1e1583527fddddc76ab09ceceeb15f68d7 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:36:44 +0300 Subject: [PATCH 69/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 6 ++++++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 45c3b10..fb19478 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -396,3 +396,9 @@ CompilationAction 1444300403082 GameOfLife.java EditAction 1444300417895 GameOfLife.java 984 4 8 0 EditAction 1444300508201 GameOfLife.java 1006 4 8 0 EditAction 1444300544897 GameOfLife.java 1011 4 8 0 +RefactoringAction 1444300599775 GameOfLife.java REMOVE askPositiveInteger(String) METHOD +RefactoringAction 1444300599776 GameOfLife.java REMOVE println(String) METHOD +RefactoringAction 1444300599792 GameOfLife.java REMOVE print(String) METHOD +RefactoringAction 1444300602800 GameOfLife.java ADD static void println(String) METHOD +RefactoringAction 1444300602806 GameOfLife.java ADD static void print(String) METHOD +EditAction 1444300602948 GameOfLife.java 1015 3 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 2aeeb02..f331e12 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -19,7 +19,7 @@ public static void main(String [] args) { running = false; } } - + /* public static int askPositiveInteger (String message) { int num = -1; Scanner scan = new Scanner(System.in); @@ -36,7 +36,7 @@ public static int askPositiveInteger (String message) { } while (num <= 0); scan.close(); return num; - } + }*/ public static void println(String str) { System.out.println(str); From 17b420787504805de77d770f2347ca4adaa85b39 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:36:59 +0300 Subject: [PATCH 70/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index fb19478..6799b7d 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -402,3 +402,6 @@ RefactoringAction 1444300599792 GameOfLife.java REMOVE print(String) METHOD RefactoringAction 1444300602800 GameOfLife.java ADD static void println(String) METHOD RefactoringAction 1444300602806 GameOfLife.java ADD static void print(String) METHOD EditAction 1444300602948 GameOfLife.java 1015 3 3 0 +CompilationAction 1444300607118 GameOfLife.java +RefactoringAction 1444300618335 GameOfLife.java ADD static int askPositiveInteger(String) METHOD +EditAction 1444300618347 GameOfLife.java 1011 4 8 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index f331e12..2aeeb02 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -19,7 +19,7 @@ public static void main(String [] args) { running = false; } } - /* + public static int askPositiveInteger (String message) { int num = -1; Scanner scan = new Scanner(System.in); @@ -36,7 +36,7 @@ public static int askPositiveInteger (String message) { } while (num <= 0); scan.close(); return num; - }*/ + } public static void println(String str) { System.out.println(str); From ae1c540696ca1500ff9206ce6d3853cfc4c738b9 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:37:57 +0300 Subject: [PATCH 71/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 2 ++ .../tol/sqatlab/gameoflife/GameOfLife.java | 22 +------------------ 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 6799b7d..70c566a 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -405,3 +405,5 @@ EditAction 1444300602948 GameOfLife.java 1015 3 3 0 CompilationAction 1444300607118 GameOfLife.java RefactoringAction 1444300618335 GameOfLife.java ADD static int askPositiveInteger(String) METHOD EditAction 1444300618347 GameOfLife.java 1011 4 8 0 +RefactoringAction 1444300664860 GameOfLife.java REMOVE askPositiveInteger(String) METHOD +EditAction 1444300675740 GameOfLife.java 484 3 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 2aeeb02..f0ad8b4 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -10,33 +10,13 @@ public class GameOfLife { public static void main(String [] args) { while (running) { - int w,h; - w=askPositiveInteger("grid width"); - h=askPositiveInteger("grid height"); - gameGrid = new Grid(w,h); + gameGrid = new Grid(50,50); running = false; } } - public static int askPositiveInteger (String message) { - int num = -1; - Scanner scan = new Scanner(System.in); - do { - println("Please enter " + message + " (positive integer)."); - print("> "); - - if (scan.hasNextInt()) { - num = scan.nextInt(); - } else { - println("Your input was not a positive integer. Try again."); - scan.nextLine(); - } - } while (num <= 0); - scan.close(); - return num; - } public static void println(String str) { System.out.println(str); From 8af79048ebe32d5603f3ea54256192fce5015325 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:38:50 +0300 Subject: [PATCH 72/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 70c566a..5d9965f 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -407,3 +407,4 @@ RefactoringAction 1444300618335 GameOfLife.java ADD static int askPositiveIntege EditAction 1444300618347 GameOfLife.java 1011 4 8 0 RefactoringAction 1444300664860 GameOfLife.java REMOVE askPositiveInteger(String) METHOD EditAction 1444300675740 GameOfLife.java 484 3 3 0 +EditAction 1444300728299 TestGrid.java 1077 5 12 2 From 36ad04f66fc7e56b2c1783ae409bf397dc641450 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:39:33 +0300 Subject: [PATCH 73/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 5d9965f..492c8bc 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -408,3 +408,6 @@ EditAction 1444300618347 GameOfLife.java 1011 4 8 0 RefactoringAction 1444300664860 GameOfLife.java REMOVE askPositiveInteger(String) METHOD EditAction 1444300675740 GameOfLife.java 484 3 3 0 EditAction 1444300728299 TestGrid.java 1077 5 12 2 +RefactoringAction 1444300752292 Grid.java ADD int getWidth() METHOD +RefactoringAction 1444300766337 Grid.java ADD int getHeight() METHOD +EditAction 1444300771724 Grid.java 782 7 9 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 68f5646..5935199 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -26,6 +26,14 @@ public String getSize () { return str; } + public int getWidth() { + return gridArray.length; + } + + public int getHeight() { + return gridArray.width; + } + public Cell getCell (int x, int y) { return gridArray[x][y]; } From bf495c23a35165342a3ff2e803a009b55611b0c5 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:40:09 +0300 Subject: [PATCH 74/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 3 +++ src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 2 ++ src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 492c8bc..fcfeb38 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -411,3 +411,6 @@ EditAction 1444300728299 TestGrid.java 1077 5 12 2 RefactoringAction 1444300752292 Grid.java ADD int getWidth() METHOD RefactoringAction 1444300766337 Grid.java ADD int getHeight() METHOD EditAction 1444300771724 Grid.java 782 7 9 0 +CompilationAction 1444300776228 Grid.java +CompilationAction 1444300787386 Grid.java +EditAction 1444300807904 GameOfLife.java 551 3 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index f0ad8b4..7e75634 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -12,6 +12,8 @@ public static void main(String [] args) { gameGrid = new Grid(50,50); + int w = gameGrid.getWidth(); + int h = gameGrid.getHeight(); running = false; } diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 5935199..e0ae557 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -31,7 +31,7 @@ public int getWidth() { } public int getHeight() { - return gridArray.width; + return gridArray[0].length; } public Cell getCell (int x, int y) { From a32573ef33df98001161d0fff1638c7579c593b8 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:41:53 +0300 Subject: [PATCH 75/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index fcfeb38..09c6ad0 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -414,3 +414,4 @@ EditAction 1444300771724 Grid.java 782 7 9 0 CompilationAction 1444300776228 Grid.java CompilationAction 1444300787386 Grid.java EditAction 1444300807904 GameOfLife.java 551 3 3 0 +EditAction 1444300911866 GameOfLife.java 703 3 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 7e75634..4fe0f9e 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -15,6 +15,14 @@ public static void main(String [] args) { int w = gameGrid.getWidth(); int h = gameGrid.getHeight(); + + for (int i = 0; i < w; i++) { + for (int b = 0; b < h; b++) { + print(gameGrid.getCellStatus(i,b)); + } + println(""); + } + running = false; } } From b84a8c2829bf327dbffcf9f56a0c8caec766d169 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:44:42 +0300 Subject: [PATCH 76/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 09c6ad0..572628a 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -415,3 +415,4 @@ CompilationAction 1444300776228 Grid.java CompilationAction 1444300787386 Grid.java EditAction 1444300807904 GameOfLife.java 551 3 3 0 EditAction 1444300911866 GameOfLife.java 703 3 3 0 +EditAction 1444301081180 Grid.java 820 7 10 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index e0ae557..c94d4d5 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -13,9 +13,11 @@ public Grid() { public Grid(int width, int height) { gridArray = new Cell[width][height]; int i = 0; - + int b = 0; while ( i < width) { - Arrays.fill(gridArray[i], new Cell()); + while ( b < height) { + gridArray[i][b] = new Cell(); + } i++; } From 0e21cbaa454438ec0d88f952a8f5a45d857700e1 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:45:48 +0300 Subject: [PATCH 77/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 1 + 2 files changed, 2 insertions(+) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 572628a..5d876ec 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -416,3 +416,4 @@ CompilationAction 1444300787386 Grid.java EditAction 1444300807904 GameOfLife.java 551 3 3 0 EditAction 1444300911866 GameOfLife.java 703 3 3 0 EditAction 1444301081180 Grid.java 820 7 10 0 +EditAction 1444301146870 Grid.java 830 7 10 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index c94d4d5..3e347cf 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -17,6 +17,7 @@ public Grid(int width, int height) { while ( i < width) { while ( b < height) { gridArray[i][b] = new Cell(); + b++; } i++; } From 147cc9974ec08d4ac5305e6867b387f54a2bef70 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:46:17 +0300 Subject: [PATCH 78/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/Grid.java | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 5d876ec..52ea59e 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -417,3 +417,4 @@ EditAction 1444300807904 GameOfLife.java 551 3 3 0 EditAction 1444300911866 GameOfLife.java 703 3 3 0 EditAction 1444301081180 Grid.java 820 7 10 0 EditAction 1444301146870 Grid.java 830 7 10 0 +EditAction 1444301175685 Grid.java 786 7 9 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index 3e347cf..e0ae557 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -13,12 +13,9 @@ public Grid() { public Grid(int width, int height) { gridArray = new Cell[width][height]; int i = 0; - int b = 0; + while ( i < width) { - while ( b < height) { - gridArray[i][b] = new Cell(); - b++; - } + Arrays.fill(gridArray[i], new Cell()); i++; } From d5f0c34780e56f193cb4e715dc9faded2daa784b Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:47:45 +0300 Subject: [PATCH 79/81] besouro automatic message --- .besouro/20151008114825807/actions.txt | 1 + src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20151008114825807/actions.txt b/.besouro/20151008114825807/actions.txt index 52ea59e..da30c41 100644 --- a/.besouro/20151008114825807/actions.txt +++ b/.besouro/20151008114825807/actions.txt @@ -418,3 +418,4 @@ EditAction 1444300911866 GameOfLife.java 703 3 3 0 EditAction 1444301081180 Grid.java 820 7 10 0 EditAction 1444301146870 Grid.java 830 7 10 0 EditAction 1444301175685 Grid.java 786 7 9 0 +EditAction 1444301263953 GameOfLife.java 821 3 3 0 diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 4fe0f9e..0408799 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -15,7 +15,8 @@ public static void main(String [] args) { int w = gameGrid.getWidth(); int h = gameGrid.getHeight(); - + //Turns out all cells in the grid are only * (alive) or - (dead) + //Ran out of time for the excercises, so oh well. for (int i = 0; i < w; i++) { for (int b = 0; b < h; b++) { print(gameGrid.getCellStatus(i,b)); From 5c8fc4585ef6773edd5cba8d36f284ee79b7ea88 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 8 Oct 2015 13:48:29 +0300 Subject: [PATCH 80/81] besouro automatic message From 5f3ce189de0bc1c5c3d76d7d8d2d28919ef78728 Mon Sep 17 00:00:00 2001 From: GhostTree Date: Thu, 8 Oct 2015 13:49:09 +0300 Subject: [PATCH 81/81] Commit Ran out of time, but here's a commit anyway. --- .classpath | 14 +-- .gitattributes | 34 ++--- .gitignore | 88 ++++++------- .project | 34 ++--- .../unioulu/tol/sqatlab/gameoflife/Cell.java | 56 ++++----- .../tol/sqatlab/gameoflife/GameOfLife.java | 80 ++++++------ .../unioulu/tol/sqatlab/gameoflife/Grid.java | 90 +++++++------- .../tol/sqatlab/gameoflife/test/TestCell.java | 116 +++++++++--------- .../tol/sqatlab/gameoflife/test/TestGrid.java | 96 +++++++-------- 9 files changed, 304 insertions(+), 304 deletions(-) diff --git a/.classpath b/.classpath index 2d74975..3e0fb27 100644 --- a/.classpath +++ b/.classpath @@ -1,7 +1,7 @@ - - - - - - - + + + + + + + diff --git a/.gitattributes b/.gitattributes index 7351b55..bdb0cab 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,17 +1,17 @@ -# Auto detect text files and perform LF normalization -* text=auto - -# Custom for Visual Studio -*.cs diff=csharp - -# Standard to msysgit -*.doc diff=astextplain -*.DOC diff=astextplain -*.docx diff=astextplain -*.DOCX diff=astextplain -*.dot diff=astextplain -*.DOT diff=astextplain -*.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore index 4926921..80e4de2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,44 +1,44 @@ -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# ========================= -# Operating System Files -# ========================= - -# OSX -# ========================= - -.DS_Store -.AppleDouble -.LSOverride - -# Thumbnails -._* - -# Files that might appear on external disk -.Spotlight-V100 -.Trashes - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk -/bin/ +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk +/bin/ diff --git a/.project b/.project index 4cbf201..a31ebfd 100644 --- a/.project +++ b/.project @@ -1,17 +1,17 @@ - - - GameOfLife - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - + + + GameOfLife + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java index 5fb4815..f1c899c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Cell.java @@ -1,28 +1,28 @@ -package org.unioulu.tol.sqatlab.gameoflife; - -public class Cell { - - //Initially start with dead status - private static String Life = "-"; - - public Cell () { - if ( Math.random() < 0.5 ) { - Life = "-"; - } else { - Life = "*"; - } - } - - public String getStatus () { - return Life; - } - - public void setToAlive () { - Life = "*"; - } - - public void setToDead () { - Life = "-"; - } - -} +package org.unioulu.tol.sqatlab.gameoflife; + +public class Cell { + + //Initially start with dead status + private static String Life = "-"; + + public Cell () { + if ( Math.random() < 0.5 ) { + Life = "-"; + } else { + Life = "*"; + } + } + + public String getStatus () { + return Life; + } + + public void setToAlive () { + Life = "*"; + } + + public void setToDead () { + Life = "-"; + } + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java index 0408799..d7f1198 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/GameOfLife.java @@ -1,40 +1,40 @@ -package org.unioulu.tol.sqatlab.gameoflife; - -import java.util.Scanner; - -public class GameOfLife { - - private static Boolean running = true; - private static Grid gameGrid; - - public static void main(String [] args) { - while (running) { - - - gameGrid = new Grid(50,50); - int w = gameGrid.getWidth(); - int h = gameGrid.getHeight(); - - //Turns out all cells in the grid are only * (alive) or - (dead) - //Ran out of time for the excercises, so oh well. - for (int i = 0; i < w; i++) { - for (int b = 0; b < h; b++) { - print(gameGrid.getCellStatus(i,b)); - } - println(""); - } - - running = false; - } - } - - - public static void println(String str) { - System.out.println(str); - } - - public static void print(String str) { - System.out.print(str); - } - -} +package org.unioulu.tol.sqatlab.gameoflife; + +import java.util.Scanner; + +public class GameOfLife { + + private static Boolean running = true; + private static Grid gameGrid; + + public static void main(String [] args) { + while (running) { + + + gameGrid = new Grid(50,50); + int w = gameGrid.getWidth(); + int h = gameGrid.getHeight(); + + //Turns out all cells in the grid are only * (alive) or - (dead) + //Ran out of time for the excercises, so oh well. + for (int i = 0; i < w; i++) { + for (int b = 0; b < h; b++) { + print(gameGrid.getCellStatus(i,b)); + } + println(""); + } + + running = false; + } + } + + + public static void println(String str) { + System.out.println(str); + } + + public static void print(String str) { + System.out.print(str); + } + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java index e0ae557..d575638 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/Grid.java @@ -1,45 +1,45 @@ -package org.unioulu.tol.sqatlab.gameoflife; - -import java.util.Arrays; - -public class Grid { - - private static Cell[][] gridArray = new Cell[1][1]; - - public Grid() { - // ... - } - - public Grid(int width, int height) { - gridArray = new Cell[width][height]; - int i = 0; - - while ( i < width) { - Arrays.fill(gridArray[i], new Cell()); - i++; - } - - } - - public String getSize () { - String str = gridArray.length + "x" + gridArray[0].length; - return str; - } - - public int getWidth() { - return gridArray.length; - } - - public int getHeight() { - return gridArray[0].length; - } - - public Cell getCell (int x, int y) { - return gridArray[x][y]; - } - - public String getCellStatus ( int x, int y ) { - return getCell(x,y).getStatus(); - } - -} +package org.unioulu.tol.sqatlab.gameoflife; + +import java.util.Arrays; + +public class Grid { + + private static Cell[][] gridArray = new Cell[1][1]; + + public Grid() { + // ... + } + + public Grid(int width, int height) { + gridArray = new Cell[width][height]; + int i = 0; + + while ( i < width) { + Arrays.fill(gridArray[i], new Cell()); + i++; + } + + } + + public String getSize () { + String str = gridArray.length + "x" + gridArray[0].length; + return str; + } + + public int getWidth() { + return gridArray.length; + } + + public int getHeight() { + return gridArray[0].length; + } + + public Cell getCell (int x, int y) { + return gridArray[x][y]; + } + + public String getCellStatus ( int x, int y ) { + return getCell(x,y).getStatus(); + } + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java index 8d6ba56..6758e43 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java @@ -1,58 +1,58 @@ -package org.unioulu.tol.sqatlab.gameoflife.test; - -import static org.junit.Assert.*; - -import org.junit.Test; -import org.unioulu.tol.sqatlab.gameoflife.Cell; - -public class TestCell { - - private Cell testCell = new Cell(); - - //Initialization function - public void initializeCell() { - testCell = new Cell(); - } - - @Test - public void test_getCellStatus () { - initializeCell(); - String r = testCell.getStatus(); - assertEquals( ((Object)r).getClass().getName(), "java.lang.String" ); - } - - @Test - public void test_setToAliveAndReturnStatus() { - initializeCell(); - testCell.setToAlive(); - String r = testCell.getStatus(); - assertEquals ( r, "*" ); - } - - @Test - public void test_setToAliveAndThenToDeadAndReturnStatus() { - initializeCell(); - testCell.setToAlive(); - testCell.setToDead(); - String r = testCell.getStatus(); - assertEquals ( r, "-" ); - } - - @Test - //Test to make sure that the cell can get both dead and alive - //status when it is created. Essentially, perform a while- - //loop up until both statuses are recognized. - public void test_randomCellStatusInitialization () { - boolean dead = false; - boolean alive = false; - while ( dead == false && alive == false ) { - initializeCell(); - if (testCell.getStatus() == "*") { - alive = true; - } else { - dead = true; - } - } - } - -} +package org.unioulu.tol.sqatlab.gameoflife.test; + +import static org.junit.Assert.*; + +import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.Cell; + +public class TestCell { + + private Cell testCell = new Cell(); + + //Initialization function + public void initializeCell() { + testCell = new Cell(); + } + + @Test + public void test_getCellStatus () { + initializeCell(); + String r = testCell.getStatus(); + assertEquals( ((Object)r).getClass().getName(), "java.lang.String" ); + } + + @Test + public void test_setToAliveAndReturnStatus() { + initializeCell(); + testCell.setToAlive(); + String r = testCell.getStatus(); + assertEquals ( r, "*" ); + } + + @Test + public void test_setToAliveAndThenToDeadAndReturnStatus() { + initializeCell(); + testCell.setToAlive(); + testCell.setToDead(); + String r = testCell.getStatus(); + assertEquals ( r, "-" ); + } + + @Test + //Test to make sure that the cell can get both dead and alive + //status when it is created. Essentially, perform a while- + //loop up until both statuses are recognized. + public void test_randomCellStatusInitialization () { + boolean dead = false; + boolean alive = false; + while ( dead == false && alive == false ) { + initializeCell(); + if (testCell.getStatus() == "*") { + alive = true; + } else { + dead = true; + } + } + } + +} diff --git a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java index 9aef01b..11f7d5c 100644 --- a/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java +++ b/src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java @@ -1,48 +1,48 @@ -package org.unioulu.tol.sqatlab.gameoflife.test; - -import static org.junit.Assert.*; -import org.junit.Test; -import org.unioulu.tol.sqatlab.gameoflife.Cell; -import org.unioulu.tol.sqatlab.gameoflife.Grid; - -public class TestGrid { - - private Grid testGrid = new Grid(); - - //Initialization function - public void initializeGrid ( int w, int h ) { - testGrid = new Grid(w,h); - } - - @Test - public void test_createA10By10Grid () { - initializeGrid ( 10, 10 ); - String size = testGrid.getSize(); - assertEquals(size, "10x10"); - } - - @Test - public void test_createA50By43Grid () { - initializeGrid ( 50, 43 ); - String size = testGrid.getSize(); - assertEquals(size, "50x43"); - } - - @Test - public void test_getCellFromGrid () { - initializeGrid ( 50, 50 ); - testGrid.getCell(10,10); - } - - @Test - public void test_getCellStatusFromGrid () { - initializeGrid ( 50, 50 ); - String str = testGrid.getCellStatus ( 20, 10 ); - if (str == "*" || str == "-") { - assert(true); - } else { - fail("Life of a cell was not * or -."); - } - } - -} +package org.unioulu.tol.sqatlab.gameoflife.test; + +import static org.junit.Assert.*; +import org.junit.Test; +import org.unioulu.tol.sqatlab.gameoflife.Cell; +import org.unioulu.tol.sqatlab.gameoflife.Grid; + +public class TestGrid { + + private Grid testGrid = new Grid(); + + //Initialization function + public void initializeGrid ( int w, int h ) { + testGrid = new Grid(w,h); + } + + @Test + public void test_createA10By10Grid () { + initializeGrid ( 10, 10 ); + String size = testGrid.getSize(); + assertEquals(size, "10x10"); + } + + @Test + public void test_createA50By43Grid () { + initializeGrid ( 50, 43 ); + String size = testGrid.getSize(); + assertEquals(size, "50x43"); + } + + @Test + public void test_getCellFromGrid () { + initializeGrid ( 50, 50 ); + testGrid.getCell(10,10); + } + + @Test + public void test_getCellStatusFromGrid () { + initializeGrid ( 50, 50 ); + String str = testGrid.getCellStatus ( 20, 10 ); + if (str == "*" || str == "-") { + assert(true); + } else { + fail("Life of a cell was not * or -."); + } + } + +}