
fitbook.Credit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitlibrary Show documentation
Show all versions of fitlibrary Show documentation
FitLibrary provides general-purpose fixtures (and runners) for storytests with Fit and FitNesse.
The newest version!
/*
* @author Rick Mugridge 6/12/2003
*
* Copyright (c) 2003 Rick Mugridge, University of Auckland, NZ
* Released under the terms of the GNU General Public License version 2 or later.
*
*/
package fitbook;
public class Credit {
public boolean allowsCredit(int months, boolean reliable, double balance) {
return months > 12 && reliable && balance < 6000;
}
public double limit(int months, boolean reliable, double balance) {
if (allowsCredit(months, reliable, balance))
return 1000;
return 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy