Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 137 additions & 0 deletions .besouro/20151008122011486/actions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
FileOpenedAction 1444296011755 Cell.java 68 0 0 0
FileOpenedAction 1444296030153 TestCell.java 200 1 1 0
RefactoringAction 1444296058177 TestCell.java RENAME test()=>void testLiveCellWithNO() METHOD
RefactoringAction 1444296059695 TestCell.java RENAME testLiveCellWithNO()=>void testLiveCellWithNoNei() METHOD
RefactoringAction 1444296060710 TestCell.java RENAME testLiveCellWithNoNei()=>void testLiveCellWithNoNeigbh() METHOD
RefactoringAction 1444296061725 TestCell.java RENAME testLiveCellWithNoNeigbh()=>void testLiveCellWithNoNei() METHOD
RefactoringAction 1444296063239 TestCell.java RENAME testLiveCellWithNoNei()=>void testLiveCellWithNoNeighbours() METHOD
RefactoringAction 1444296066255 TestCell.java RENAME testLiveCellWithNoNeighbours()=>void testLiveCellWithNoNeighbo() METHOD
RefactoringAction 1444296067269 TestCell.java RENAME testLiveCellWithNoNeighbo()=>void testLiveCellWithNoNeighbor() METHOD
RefactoringAction 1444296068782 TestCell.java RENAME testLiveCellWithNoNeighbor()=>void testLiveCellWithNoNeighborDies() METHOD
FileOpenedAction 1444296264689 Grid.java 68 0 0 0
FileOpenedAction 1444296275697 TestGrid.java 199 1 1 0
RefactoringAction 1444296288699 TestGrid.java RENAME test()=>void testIsGrid() METHOD
RefactoringAction 1444296298211 TestGrid.java RENAME testIsGrid()=>void testIsGridSameAmountColumsAndRows() METHOD
RefactoringAction 1444296710412 Grid.java ADD int FIELD
RefactoringAction 1444296712920 Grid.java RENAME grid=>int FIELD
RefactoringAction 1444296718932 Grid.java REMOVE array FIELD
RefactoringAction 1444296719938 Grid.java ADD int FIELD
RefactoringAction 1444296976097 Grid.java ADD int gridSize FIELD
RefactoringAction 1444296987128 Grid.java REMOVE array FIELD
RefactoringAction 1444297139798 Grid.java ADD int FIELD
EditAction 1444297469680 Grid.java 156 0 0 0
RefactoringAction 1444297564276 Grid.java ADD void get FIELD
RefactoringAction 1444297572498 Grid.java REMOVE get FIELD
RefactoringAction 1444297607071 Grid.java RENAME getArray=>int getArray() METHOD
RefactoringAction 1444297724789 TestGrid.java ADD import org.unioulu.tol.sqatlab.gameoflife.Grid IMPORT
RefactoringAction 1444297728989 TestGrid.java REMOVE import org.unioulu.tol.sqatlab.gameoflife.Grid IMPORT
RefactoringAction 1444297835897 TestGrid.java ADD import org.unioulu.tol.sqatlab.gameoflife.Grid IMPORT
EditAction 1444297845996 TestGrid.java 360 1 1 1
CompilationAction 1444297846244 TestGrid.java
RefactoringAction 1444297850076 TestGrid.java REMOVE import org.unioulu.tol.sqatlab.gameoflife.Grid IMPORT
EditAction 1444297881286 Grid.java 225 1 2 0
CompilationAction 1444297881564 TestGrid.java
RefactoringAction 1444298039327 TestGrid.java ADD import org.unioulu.tol.sqatlab.gameoflife.Grid IMPORT
RefactoringAction 1444298075538 TestGrid.java ADD import grid.java IMPORT
RefactoringAction 1444298080052 TestGrid.java RENAME import grid.java=>import Grid.java IMPORT
RefactoringAction 1444298089076 TestGrid.java REMOVE import Grid.java IMPORT
EditAction 1444298132063 TestGrid.java 365 1 1 1
CompilationAction 1444298132269 TestGrid.java
CompilationAction 1444298318452 TestGrid.java
CompilationAction 1444298318613 TestGrid.java
EditAction 1444298326622 TestCell.java 318 1 0 0
EditAction 1444298326702 Grid.java 246 1 2 0
CompilationAction 1444298326845 TestCell.java
CompilationAction 1444298326845 TestCell.java
CompilationAction 1444298326845 TestCell.java
CompilationAction 1444298326846 TestCell.java
CompilationAction 1444298326846 TestCell.java
CompilationAction 1444298326846 TestCell.java
UnitTestCaseAction 1444298329560 TestGrid.java OK
UnitTestSessionAction 1444298329562 TestGrid OK
EditAction 1444298373172 TestGrid.java 362 1 1 1
UnitTestCaseAction 1444298376919 TestGrid.java FAIL
UnitTestSessionAction 1444298376919 TestGrid FAIL
EditAction 1444298384228 TestGrid.java 362 1 1 1
UnitTestCaseAction 1444298384516 TestGrid.java OK
UnitTestSessionAction 1444298384517 TestGrid OK
RefactoringAction 1444298783395 Cell.java ADD string CellStatus FIELD
RefactoringAction 1444299313782 TestGrid.java ADD void testDoesArra FIELD
RefactoringAction 1444299317296 TestGrid.java RENAME testDoesArra=>void testDoesArrayOnlyInclude FIELD
RefactoringAction 1444299324861 TestGrid.java ADD void Marks() METHOD
EditAction 1444299373837 TestGrid.java 446 2 1 1
CompilationAction 1444299374321 TestGrid.java
CompilationAction 1444299374321 TestGrid.java
CompilationAction 1444299374322 TestGrid.java
CompilationAction 1444299374322 TestGrid.java
CompilationAction 1444299374322 TestGrid.java
RefactoringAction 1444299386453 TestGrid.java RENAME testDoesArrayOnlyIncludeorMarks()=>void testDoesArrayOnlyIncludeAliveorMarks() METHOD
RefactoringAction 1444299387966 TestGrid.java RENAME testDoesArrayOnlyIncludeAliveorMarks()=>void testDoesArrayOnlyIncludeAliveorDeadMarks() METHOD
CompilationAction 1444299462935 TestGrid.java
CompilationAction 1444299462936 TestGrid.java
CompilationAction 1444299462936 TestGrid.java
EditAction 1444299462946 Cell.java 108 0 0 0
EditAction 1444299463066 Grid.java 289 1 2 0
CompilationAction 1444299463166 TestCell.java
CompilationAction 1444299463166 TestCell.java
CompilationAction 1444299463166 TestCell.java
CompilationAction 1444299463166 TestCell.java
CompilationAction 1444299463167 TestCell.java
CompilationAction 1444299463167 TestCell.java
UnitTestCaseAction 1444299463999 TestGrid.java OK
UnitTestSessionAction 1444299464000 TestGrid OK
EditAction 1444299477484 TestGrid.java 654 2 1 1
UnitTestCaseAction 1444299477775 TestGrid.java FAIL
UnitTestSessionAction 1444299477775 TestGrid FAIL
RefactoringAction 1444299792444 TestGrid.java ADD Object getMarks() METHOD
EditAction 1444299826265 TestGrid.java 617 3 3 2
UnitTestCaseAction 1444299828851 TestGrid.java OK
UnitTestSessionAction 1444299828852 TestGrid OK
RefactoringAction 1444299900439 Grid.java RENAME getArray()=>static int getArrayLenght() METHOD
RefactoringAction 1444299995960 Grid.java ADD static int getArrayLenght()/2 METHOD
RefactoringAction 1444300003971 Grid.java RENAME getArrayLenght()/2=>static int getArray() METHOD
RefactoringAction 1444300062601 Grid.java RENAME getArray()=>static int getArrayAsList() METHOD
RefactoringAction 1444300213804 TestGrid.java ADD boolean Object FIELD
RefactoringAction 1444300216318 TestGrid.java REMOVE Object FIELD
CompilationAction 1444300272714 TestGrid.java
CompilationAction 1444300272714 TestGrid.java
EditAction 1444300273661 Grid.java 380 2 4 0
UnitTestCaseAction 1444300273992 TestGrid.java FAIL
UnitTestSessionAction 1444300273992 TestGrid FAIL
EditAction 1444300320661 TestGrid.java 718 3 3 2
UnitTestCaseAction 1444300321783 TestGrid.java FAIL
UnitTestSessionAction 1444300321784 TestGrid FAIL
RefactoringAction 1444300383431 Grid.java ADD String setCharacters FIELD
RefactoringAction 1444300384442 Grid.java RENAME setCharacters=>static String setCharacters() METHOD
EditAction 1444300988824 Grid.java 534 3 5 0
EditAction 1444300991514 TestGrid.java 715 3 3 2
UnitTestCaseAction 1444300991910 TestGrid.java FAIL
UnitTestSessionAction 1444300991910 TestGrid FAIL
EditAction 1444301034441 TestGrid.java 739 3 4 2
UnitTestCaseAction 1444301034723 TestGrid.java FAIL
UnitTestSessionAction 1444301034723 TestGrid FAIL
EditAction 1444301117183 TestGrid.java 738 3 4 2
UnitTestCaseAction 1444301140465 TestGrid.java FAIL
UnitTestSessionAction 1444301140465 TestGrid FAIL
EditAction 1444301156919 TestGrid.java 739 3 4 2
UnitTestCaseAction 1444301158557 TestGrid.java OK
UnitTestSessionAction 1444301158557 TestGrid OK
EditAction 1444301166182 TestGrid.java 738 3 4 2
UnitTestCaseAction 1444301167760 TestGrid.java FAIL
UnitTestSessionAction 1444301167761 TestGrid FAIL
EditAction 1444301230590 Grid.java 570 3 5 0
CompilationAction 1444301230783 Grid.java
EditAction 1444301237567 Grid.java 570 3 5 0
UnitTestCaseAction 1444301237887 TestGrid.java FAIL
UnitTestSessionAction 1444301237888 TestGrid FAIL
EditAction 1444301343540 TestGrid.java 738 3 4 2
EditAction 1444301343607 Grid.java 570 3 5 0
UnitTestCaseAction 1444301343902 TestGrid.java FAIL
UnitTestSessionAction 1444301343902 TestGrid FAIL
EditAction 1444301428581 TestGrid.java 783 3 5 2
UnitTestCaseAction 1444301428866 TestGrid.java FAIL
UnitTestSessionAction 1444301428867 TestGrid FAIL
EditAction 1444301462712 TestGrid.java 785 3 4 2
UnitTestCaseAction 1444301463054 TestGrid.java FAIL
UnitTestSessionAction 1444301463055 TestGrid FAIL
EditAction 1444301501973 TestGrid.java 783 3 5 2
56 changes: 56 additions & 0 deletions .besouro/20151008122011486/besouroEpisodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
1444298329562 test-first 2 2317 true
1444298329563 test-first 2 2317 true
1444298329564 test-first 2 2317 true
1444298329565 test-first 2 2317 true
1444298329566 test-first 2 2317 true
1444298329567 test-first 2 2317 true
1444298329568 test-last 1 2317 false
1444298384517 regression 2 11 true
1444299464000 test-first 2 680 true
1444299464001 test-first 2 680 true
1444299464002 test-first 2 680 true
1444299464003 test-first 2 680 true
1444299464004 test-first 2 680 true
1444299464005 test-first 2 680 true
1444299464006 test-first 2 680 true
1444299464007 test-first 2 680 true
1444299464008 test-first 2 680 true
1444299464009 test-first 2 680 true
1444299464010 test-first 2 680 true
1444299464011 test-first 2 680 true
1444299464012 test-first 2 680 true
1444299464013 test-first 2 680 true
1444299464014 test-first 2 680 true
1444299464015 test-first 2 680 true
1444299828852 test-addition 1 351 true
1444299828853 test-addition 1 351 true
1444301158557 refactoring 3 1258 true
1444301158558 refactoring 3 1258 true
1444301158559 refactoring 3 1258 true
1444301158560 refactoring 3 1258 true
1444301158561 refactoring 3 1258 true
1444301158562 refactoring 3 1258 true
1444301158563 refactoring 3 1258 true
1444301158564 refactoring 3 1258 true
1444301158565 refactoring 3 1258 true
1444301158566 refactoring 3 1258 true
1444301158567 refactoring 3 1258 true
1444301158568 refactoring 3 1258 true
1444301158569 refactoring 3 1258 true
1444301158570 refactoring 3 1258 true
1444301158571 refactoring 3 1258 true
1444301158572 refactoring 3 1258 true
1444301158573 refactoring 3 1258 true
1444301158574 refactoring 3 1258 true
1444301158575 refactoring 3 1258 true
1444301158576 refactoring 3 1258 true
1444301158577 refactoring 3 1258 true
1444301158578 refactoring 3 1258 true
1444301158579 refactoring 3 1258 true
1444301158580 refactoring 3 1258 true
1444301158581 refactoring 3 1258 true
1444301158582 refactoring 3 1258 true
1444301158583 refactoring 3 1258 true
1444301158584 refactoring 3 1258 true
1444301158585 refactoring 3 1258 true
1444301158586 refactoring 3 1258 true
Empty file.
5 changes: 5 additions & 0 deletions .besouro/20151008122011486/randomHeuristicEpisodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1444298329562 test-first 2 2317 true
1444298384517 regression 2 11 false
1444299464000 test-first 2 680 true
1444299828852 test-addition 1 351 false
1444301158557 refactoring 3 1258 true
Empty file.
5 changes: 5 additions & 0 deletions .besouro/20151008122011486/zorroEpisodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1444298329562 test-first 2 2317 true
1444298384517 regression 2 54 true
1444299464000 test-first 2 1079 true
1444299828852 test-addition 1 364 true
1444301158557 refactoring 3 1329 true
3 changes: 3 additions & 0 deletions src/org/unioulu/tol/sqatlab/gameoflife/Cell.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package org.unioulu.tol.sqatlab.gameoflife;

public class Cell {

public String CellStatus= "Alive";


}
27 changes: 27 additions & 0 deletions src/org/unioulu/tol/sqatlab/gameoflife/Grid.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
package org.unioulu.tol.sqatlab.gameoflife;

public class Grid {
//GRID X * Y
static int gridSize=8;

public static String[][]array = new String [gridSize][gridSize];

public static void setCharacters(){
for(int i =0; i< array.length; i++){//cols
for(int k =0; k< array.length; k++){//rows
array[i][k]="x";
System.out.println(array[i][k]);
}
}

}


public static int getArrayLenght(){
// gets the row count of the array
int a = array.length;
return a;
}

public static String getArrayAsList(){
String a=array.toString();
return a;
}

}

7 changes: 5 additions & 2 deletions src/org/unioulu/tol/sqatlab/gameoflife/test/TestCell.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
public class TestCell {

@Test
public void test() {
fail("Not yet implemented");
public void testLiveCellWithNoNeighborDies() {
Cell cell = new Cell("Alive");
cell.update(0)
assertEquals.("Dead",cell.getState())
//fail("Not yet implemented");
}

}
30 changes: 28 additions & 2 deletions src/org/unioulu/tol/sqatlab/gameoflife/test/TestGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,38 @@

import static org.junit.Assert.*;
import org.junit.Test;
import org.unioulu.tol.sqatlab.gameoflife.Grid;


public class TestGrid {

@Test
public void test() {
fail("Not yet implemented");
public void testIsGridSameAmountColumsAndRows() {
//getRows x GetColumns == getRows x GetRows
//compares 8 to set gridSize in Grid.java
assertEquals(8,Grid.getArrayLenght());


}

@Test
public void testDoesArrayOnlyIncludeAliveorDeadMarks(){
//does array only include * and -

assertEquals(true,getMarks());


}

private Object getMarks() {
//Array to string list
//check if only * and - then return true
Grid.setCharacters();
System.out.println(Grid.getArrayAsList());
if (Grid.getArrayAsList().matches("x")){
return true;
} else return false;

}

}