Update MetaprogrammingUnitTest.groovy

This commit is contained in:
Loredana Crusoveanu 2020-01-01 21:25:07 +02:00 committed by GitHub
parent 746a609d3f
commit 8506e4cd44
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class MetaprogrammingUnitTest extends GroovyTestCase {
void testEmployeeExtension() {
Employee emp = new Employee(age: 28)
assert emp.getYearOfBirth() == 1991
assert emp.getYearOfBirth() == 1992
}
void testJavaClassesExtensions() {
@ -115,4 +115,4 @@ class MetaprogrammingUnitTest extends GroovyTestCase {
Employee employee = new Employee(1, "Norman", "Lewis", 28)
employee.logEmp()
}
}
}