Merge pull request #8459 from eugenp/lor6-patch-1
Update MetaprogrammingUnitTest.groovy
This commit is contained in:
commit
0846a55404
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue