richashworth
12/27/2011 - 4:45 PM

Used in Example to Demonstrate Naive Initialisation of Mock Object

Used in Example to Demonstrate Naive Initialisation of Mock Object

package com.richashworth.testingutils.mocking;

public class Footballer {

    private String name;
    private int age;
    private Double salary;
    private Integer gamesPlayed;
    private Integer goalsScored;
    private Boolean isCaptain;

    public double getAvgGoalsPerGame(){
        return goalsScored / gamesPlayed;
    }

//	<getters and setters>
	
//	<hashcode>
	
//	<equals>

}