Sign in
apache
/
groovy
/
4ce380cda5b437999726dfd041cb1b0781e91ec9
/
.
/
groovy
/
modules
/
classic
/
src
/
test
/
groovy
/
UnsafeNavigationTest.groovy
blob: b6201f86b328fe79b8923c3b37f0bf44f4c8a102 [
file
] [
log
] [
blame
]
class
UnsafeNavigationTest
extends
GroovyTestCase
{
void
testUnsafePropertyNavigations
()
{
x
=
null
try
{
y
=
x
.
foo
fail
(
"should fail"
)
}
catch
(
NullPointerException
e
)
{
assert
e
!=
null
}
}
}