mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 08:59:01 +00:00
Java 11 migrate remaining q-r (#1121)
* Moves queue-load-leveling to Java 11 * Moves reactor to Java 11 * Moves reader-writer-lock to Java 11 * Moves repository to Java 11 * Moves resource-acquisition-is-initialization to Java 11 * Moves retry to Java 11 * Moves role-object to Java 11
This commit is contained in:
committed by
Ilkka Seppälä
parent
cd2a2e7711
commit
20ea465b7f
@@ -27,12 +27,11 @@ import org.junit.Test;
|
||||
|
||||
public class InvestorRoleTest {
|
||||
|
||||
@Test
|
||||
public void investTest() {
|
||||
InvestorRole investorRole = new InvestorRole();
|
||||
investorRole.setName("test");
|
||||
investorRole.setAmountToInvest(10);
|
||||
String res = "Investor test has invested 10 dollars";
|
||||
Assert.assertEquals(investorRole.invest(), res);
|
||||
}
|
||||
@Test
|
||||
public void investTest() {
|
||||
var investorRole = new InvestorRole();
|
||||
investorRole.setName("test");
|
||||
investorRole.setAmountToInvest(10);
|
||||
Assert.assertEquals(investorRole.invest(), "Investor test has invested 10 dollars");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user