kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 29cf6b6eab0352a88ab172a3ff78602ec35fcfeddf240ea2ba27a24732154c5d |
|---|---|
| Author | Olivier Michallat <olim7t@users.noreply.github.com> · 2015-07-03 09:43 +02:00 |
| Committer | Olivier Michallat <olim7t@users.noreply.github.com> · 2015-07-03 09:43 +02:00 |
| Parents | 09fb9cb33178, b03ab8309148 |
1 file changed
modified driver-core/src/test/java/com/datastax/driver/core/CCMBridge.java +0 −9
| @@ -191,33 +191,24 @@ | ||
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | public static CCMBridge create(String name, String... options) { |
| 194 | - // This leads to a confusing CCM error message so check explicitly: | |
| 195 | - checkArgument(!"current".equals(name.toLowerCase()), | |
| 196 | - "cluster can't be called \"current\""); | |
| 197 | 194 | CCMBridge bridge = new CCMBridge(); |
| 198 | 195 | bridge.execute(CCM_COMMAND + " create %s -b -i %s %s " + Joiner.on(" ").join(options), name, IP_PREFIX, CASSANDRA_VERSION); |
| 199 | 196 | return bridge; |
| 200 | 197 | } |
| 201 | 198 | |
| 202 | 199 | public static CCMBridge create(String name, int nbNodes, String... options) { |
| 203 | - checkArgument(!"current".equals(name.toLowerCase()), | |
| 204 | - "cluster can't be called \"current\""); | |
| 205 | 200 | CCMBridge bridge = new CCMBridge(); |
| 206 | 201 | bridge.execute(CCM_COMMAND + " create %s -n %d -s -i %s -b %s " + Joiner.on(" ").join(options), name, nbNodes, IP_PREFIX, CASSANDRA_VERSION); |
| 207 | 202 | return bridge; |
| 208 | 203 | } |
| 209 | 204 | |
| 210 | 205 | public static CCMBridge createWithCustomVersion(String name, int nbNodes, String cassandraVersion) { |
| 211 | - checkArgument(!"current".equals(name.toLowerCase()), | |
| 212 | - "cluster can't be called \"current\""); | |
| 213 | 206 | CCMBridge bridge = new CCMBridge(); |
| 214 | 207 | bridge.execute(CCM_COMMAND + " create %s -n %d -s -i %s -b -v %s ", name, nbNodes, IP_PREFIX, cassandraVersion); |
| 215 | 208 | return bridge; |
| 216 | 209 | } |
| 217 | 210 | |
| 218 | 211 | public static CCMBridge create(String name, int nbNodesDC1, int nbNodesDC2) { |
| 219 | - checkArgument(!"current".equals(name.toLowerCase()), | |
| 220 | - "cluster can't be called \"current\""); | |
| 221 | 212 | CCMBridge bridge = new CCMBridge(); |
| 222 | 213 | bridge.execute(CCM_COMMAND + " create %s -n %d:%d -s -i %s -b %s", name, nbNodesDC1, nbNodesDC2, IP_PREFIX, CASSANDRA_VERSION); |
| 223 | 214 | return bridge; |