accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [01/50] [abbrv] git commit: ACCUMULO-378 Rogue test class not in the right package.
Date Wed, 21 May 2014 01:59:20 GMT
Repository: accumulo
Updated Branches:
  refs/heads/ACCUMULO-378 f2c0c16db -> 417b0b332


ACCUMULO-378 Rogue test class not in the right package.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/18432fe3
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/18432fe3
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/18432fe3

Branch: refs/heads/ACCUMULO-378
Commit: 18432fe36372961a5460d9909b3ca9fcf1f35c1f
Parents: 971c7b7
Author: Josh Elser <elserj@apache.org>
Authored: Thu May 15 19:16:39 2014 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Thu May 15 19:16:39 2014 -0400

----------------------------------------------------------------------
 .../ReplicationWorkAssignerHelperTest.java      | 56 --------------------
 .../ReplicationWorkAssignerHelperTest.java      | 56 ++++++++++++++++++++
 2 files changed, 56 insertions(+), 56 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/18432fe3/server/base/src/test/java/ReplicationWorkAssignerHelper/ReplicationWorkAssignerHelperTest.java
----------------------------------------------------------------------
diff --git a/server/base/src/test/java/ReplicationWorkAssignerHelper/ReplicationWorkAssignerHelperTest.java
b/server/base/src/test/java/ReplicationWorkAssignerHelper/ReplicationWorkAssignerHelperTest.java
deleted file mode 100644
index 2fe71ac..0000000
--- a/server/base/src/test/java/ReplicationWorkAssignerHelper/ReplicationWorkAssignerHelperTest.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package ReplicationWorkAssignerHelper;
-
-import java.util.Map.Entry;
-import java.util.UUID;
-
-import org.apache.accumulo.core.replication.ReplicationTarget;
-import org.apache.accumulo.server.replication.ReplicationWorkAssignerHelper;
-import org.apache.hadoop.fs.Path;
-import org.apache.zookeeper.common.PathUtils;
-import org.junit.Assert;
-import org.junit.Test;
-
-/**
- * 
- */
-public class ReplicationWorkAssignerHelperTest {
-
-  @Test
-  public void createsValidZKNodeName() {
-    Path p = new Path ("/accumulo/wals/tserver+port/" + UUID.randomUUID().toString());
-    ReplicationTarget target = new ReplicationTarget("cluster1", "table1", "1");
-
-    String key = ReplicationWorkAssignerHelper.getQueueKey(p.toString(), target);
-    
-    PathUtils.validatePath(key);
-  }
-
-  @Test
-  public void queueKeySerialization() {
-    Path p = new Path("/accumulo/wals/tserver+port/" + UUID.randomUUID().toString());
-    ReplicationTarget target = new ReplicationTarget("cluster1", "table1", "1");
-
-    String key = ReplicationWorkAssignerHelper.getQueueKey(p.toString(), target);
-
-    Entry<String,ReplicationTarget> result = ReplicationWorkAssignerHelper.fromQueueKey(key);
-    Assert.assertEquals(p.toString(), result.getKey());
-    Assert.assertEquals(target, result.getValue());
-  }
-
-}

http://git-wip-us.apache.org/repos/asf/accumulo/blob/18432fe3/server/base/src/test/java/org/apache/accumulo/server/replication/ReplicationWorkAssignerHelperTest.java
----------------------------------------------------------------------
diff --git a/server/base/src/test/java/org/apache/accumulo/server/replication/ReplicationWorkAssignerHelperTest.java
b/server/base/src/test/java/org/apache/accumulo/server/replication/ReplicationWorkAssignerHelperTest.java
new file mode 100644
index 0000000..47a4a0d
--- /dev/null
+++ b/server/base/src/test/java/org/apache/accumulo/server/replication/ReplicationWorkAssignerHelperTest.java
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.accumulo.server.replication;
+
+import java.util.Map.Entry;
+import java.util.UUID;
+
+import org.apache.accumulo.core.replication.ReplicationTarget;
+import org.apache.accumulo.server.replication.ReplicationWorkAssignerHelper;
+import org.apache.hadoop.fs.Path;
+import org.apache.zookeeper.common.PathUtils;
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ * 
+ */
+public class ReplicationWorkAssignerHelperTest {
+
+  @Test
+  public void createsValidZKNodeName() {
+    Path p = new Path ("/accumulo/wals/tserver+port/" + UUID.randomUUID().toString());
+    ReplicationTarget target = new ReplicationTarget("cluster1", "table1", "1");
+
+    String key = ReplicationWorkAssignerHelper.getQueueKey(p.toString(), target);
+    
+    PathUtils.validatePath(key);
+  }
+
+  @Test
+  public void queueKeySerialization() {
+    Path p = new Path("/accumulo/wals/tserver+port/" + UUID.randomUUID().toString());
+    ReplicationTarget target = new ReplicationTarget("cluster1", "table1", "1");
+
+    String key = ReplicationWorkAssignerHelper.getQueueKey(p.toString(), target);
+
+    Entry<String,ReplicationTarget> result = ReplicationWorkAssignerHelper.fromQueueKey(key);
+    Assert.assertEquals(p.toString(), result.getKey());
+    Assert.assertEquals(target, result.getValue());
+  }
+
+}


Mime
View raw message