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