2 Minutes To Code (β Version)

JUnit 3.10 - 2 minute tutorial

Account.java - Source code of the class used in the examples in this tutorial

Given below is the source code for sample java class Account.java that has been tested in the examples in this junit 3 tutorial.
package com.techfundaes.junit3_8_1;

public class Account
{
	boolean loggedIn = false;
	int balanceAmount = 0;
	
	public Account transact(int creditAmount)
	{
		balanceAmount = balanceAmount + creditAmount; 
		return this;
	}
	
	public Account merge(Account account)
	{
		balanceAmount = balanceAmount + account.balanceAmount; 
		return this;
	}
}