package net.cloudapp.wcnjenkins;

import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;

public class TestBankAccount {

	@Test
	public void testDebitWithSufficientFunds(){
		BankAccount account = new BankAccount(10);
		double amount = account.debit(5);
		Assert.assertEquals(5.0,amount);
	}

	@Test
	public void testDebitWithInsufficientFunds(){
		BankAccount account = new BankAccount(10);
		double amount = account.debit(11);
		Assert.assertEquals(10.0,amount);
	}

	@Test
	public void testDebitWithNegativeFunds(){
		BankAccount account = new BankAccount(-10);
		double amount = account.debit(5);
		Assert.assertEquals(-10.0,amount);
	}
}

@@ -469,18 +469,18 @@
 tEquals(
+-
 1
-0
 .0,amoun
@@ -642,18 +642,17 @@
 Equals(-
-10
+5
 .0,amoun

Ajuste dos valores de referencia