Update MetaprogrammingUnitTest.groovy
This commit is contained in:
parent
746a609d3f
commit
8506e4cd44
|
@ -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