DATACMNS-158 - Test case failing to reproduce the ticket.

Added test case to show that invalid properties containing numeric digits do not cause a stack overflow.
This commit is contained in:
Oliver Gierke
2012-04-23 18:04:38 +02:00
parent ddea8eda8f
commit 8448573c3e

View File

@@ -205,6 +205,14 @@ public class PropertyUnitTests {
}
}
/**
* @see DATACMNS 158
*/
@Test(expected = IllegalArgumentException.class)
public void rejectsInvalidPathsContainingDigits() {
PropertyPath.from("PropertyThatWillFail4Sure", Foo.class);
}
private class Foo {
String userName;