BAEL-19967: Migrate spring-aop module to the com.baeldung package

This commit is contained in:
Krzysiek
2019-12-17 21:23:11 +01:00
parent b714494edc
commit f910c16f11
29 changed files with 159 additions and 159 deletions

View File

@@ -0,0 +1,26 @@
package com.baeldung.aspectj;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class AccountUnitTest {
private Account account;
@Before
public void before() {
account = new Account();
}
@Test
public void givenBalance20AndMinBalance10_whenWithdraw5_thenSuccess() {
assertTrue(account.withdraw(5));
}
@Test
public void givenBalance20AndMinBalance10_whenWithdraw100_thenFail() {
assertFalse(account.withdraw(100));
}
}