activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject activemq git commit: move test utility to broker module to allow reuse from jdbc module tests
Date Fri, 10 Jun 2016 09:20:49 GMT
Repository: activemq
Updated Branches:
  refs/heads/master 9f5fff795 -> f548aafa8


move test utility to broker module to allow reuse from jdbc module tests


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

Branch: refs/heads/master
Commit: f548aafa81fdb53b5c273bd15705a3d0fe2ef0e2
Parents: 9f5fff7
Author: gtully <gary.tully@gmail.com>
Authored: Fri Jun 10 10:20:33 2016 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Fri Jun 10 10:20:33 2016 +0100

----------------------------------------------------------------------
 .../activemq/util/DefaultTestAppender.java      | 83 ++++++++++++++++++++
 .../activemq/util/DefaultTestAppender.java      | 83 --------------------
 2 files changed, 83 insertions(+), 83 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/f548aafa/activemq-broker/src/test/java/org/apache/activemq/util/DefaultTestAppender.java
----------------------------------------------------------------------
diff --git a/activemq-broker/src/test/java/org/apache/activemq/util/DefaultTestAppender.java
b/activemq-broker/src/test/java/org/apache/activemq/util/DefaultTestAppender.java
new file mode 100644
index 0000000..97ca4b3
--- /dev/null
+++ b/activemq-broker/src/test/java/org/apache/activemq/util/DefaultTestAppender.java
@@ -0,0 +1,83 @@
+/**
+ * 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.activemq.util;
+
+import org.apache.log4j.Appender;
+import org.apache.log4j.Layout;
+import org.apache.log4j.spi.ErrorHandler;
+import org.apache.log4j.spi.Filter;
+
+public abstract class DefaultTestAppender implements Appender {
+    
+    String name = this.getClass().getSimpleName();
+    
+    @Override
+    public void addFilter(Filter newFilter) {
+
+    }
+
+    @Override
+    public Filter getFilter() {
+        return null;
+    }
+
+    @Override
+    public void clearFilters() {
+
+    }
+
+    @Override
+    public void close() {
+
+    }
+
+    @Override
+    public String getName() {
+        return name;
+    }
+
+    @Override
+    public void setErrorHandler(ErrorHandler errorHandler) {
+
+    }
+
+    @Override
+    public ErrorHandler getErrorHandler() {
+        return null;
+    }
+
+    @Override
+    public void setLayout(Layout layout) {
+
+    }
+
+    @Override
+    public Layout getLayout() {
+        return null;
+    }
+
+    @Override
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    @Override
+    public boolean requiresLayout() {
+        return false;
+    }
+}

http://git-wip-us.apache.org/repos/asf/activemq/blob/f548aafa/activemq-unit-tests/src/test/java/org/apache/activemq/util/DefaultTestAppender.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/util/DefaultTestAppender.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/util/DefaultTestAppender.java
deleted file mode 100644
index 97ca4b3..0000000
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/util/DefaultTestAppender.java
+++ /dev/null
@@ -1,83 +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 org.apache.activemq.util;
-
-import org.apache.log4j.Appender;
-import org.apache.log4j.Layout;
-import org.apache.log4j.spi.ErrorHandler;
-import org.apache.log4j.spi.Filter;
-
-public abstract class DefaultTestAppender implements Appender {
-    
-    String name = this.getClass().getSimpleName();
-    
-    @Override
-    public void addFilter(Filter newFilter) {
-
-    }
-
-    @Override
-    public Filter getFilter() {
-        return null;
-    }
-
-    @Override
-    public void clearFilters() {
-
-    }
-
-    @Override
-    public void close() {
-
-    }
-
-    @Override
-    public String getName() {
-        return name;
-    }
-
-    @Override
-    public void setErrorHandler(ErrorHandler errorHandler) {
-
-    }
-
-    @Override
-    public ErrorHandler getErrorHandler() {
-        return null;
-    }
-
-    @Override
-    public void setLayout(Layout layout) {
-
-    }
-
-    @Override
-    public Layout getLayout() {
-        return null;
-    }
-
-    @Override
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    @Override
-    public boolean requiresLayout() {
-        return false;
-    }
-}


Mime
View raw message