We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c1b371 commit 971ca1eCopy full SHA for 971ca1e
src/test/java/co/stateful/RtLocksITCase.java
@@ -132,4 +132,15 @@ public void locksAndUnlocksInOneThread() throws Exception {
132
}
133
134
135
+ /**
136
+ * RtLocks can reject an incorrect name of a lock.
137
+ * @throws Exception If some problem inside
138
+ */
139
+ @Test(expected = IllegalArgumentException.class)
140
+ public void rejectsIncorrectLockName() throws Exception {
141
+ final Sttc sttc = this.srule.get();
142
+ final Locks locks = sttc.locks();
143
+ locks.get("invalid name with spaces").lock();
144
+ }
145
+
146
0 commit comments