Merge pull request #8459 from eugenp/lor6-patch-1

Update MetaprogrammingUnitTest.groovy
This commit is contained in:
Loredana Crusoveanu 2020-01-01 21:27:59 +02:00 committed by GitHub
commit 0846a55404
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()
}
}
}