Skip to content

Commit 27b312a

Browse files
authored
Update SpringProxyFactoryTest.java
1 parent 8435b92 commit 27b312a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core-java-modules/core-java-lang-oop-patterns-2/src/test/java/com/baeldung/overridemethod/proxy/spring/SpringProxyFactoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class SpringProxyFactoryTest {
1010

1111
@Test
12-
void testSpringProxyFactory() {
12+
void givenACalculator_whenUsingSpringProxyFactory_thenSpringProxyFactoryCanBeUsed() {
1313
SimpleCalculator simpleCalc = new SimpleCalculator();
1414
ProxyFactory factory = new ProxyFactory();
1515

@@ -18,6 +18,7 @@ void testSpringProxyFactory() {
1818

1919
Calculator proxyCalc = (Calculator) factory.getProxy();
2020

21+
assertEquals(60, proxyCalc.add(50, 10));
2122
assertEquals(40, proxyCalc.subtract(50, 10));
2223
}
2324
}

0 commit comments

Comments
 (0)