Last active
September 29, 2015 01:07
-
-
Save richashworth/1524312 to your computer and use it in GitHub Desktop.
Used in Example to Demonstrate Naive Initialisation of Mock Object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment