You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ce...@apache.org on 2013/06/24 04:28:28 UTC
svn commit: r1495900 - in
/activemq/activemq-apollo/trunk/apollo-util/src/test: resources/META-INF/
resources/META-INF/services/
resources/META-INF/services/org.apache.activemq.apollo/
scala/org/apache/activemq/apollo/util/ scala/org/apache/activemq/ap...
Author: ceposta
Date: Mon Jun 24 02:28:28 2013
New Revision: 1495900
URL: http://svn.apache.org/r1495900
Log:
added simple tests for classloading dto moduels
Added:
activemq/activemq-apollo/trunk/apollo-util/src/test/resources/META-INF/
activemq/activemq-apollo/trunk/apollo-util/src/test/resources/META-INF/services/
activemq/activemq-apollo/trunk/apollo-util/src/test/resources/META-INF/services/org.apache.activemq.apollo/
activemq/activemq-apollo/trunk/apollo-util/src/test/resources/META-INF/services/org.apache.activemq.apollo/dto-module.index
activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/DtoModuleTest.java
activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/
activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule1.java
activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule2.java
activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule3.java
Added: activemq/activemq-apollo/trunk/apollo-util/src/test/resources/META-INF/services/org.apache.activemq.apollo/dto-module.index
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/test/resources/META-INF/services/org.apache.activemq.apollo/dto-module.index?rev=1495900&view=auto
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-util/src/test/resources/META-INF/services/org.apache.activemq.apollo/dto-module.index (added)
+++ activemq/activemq-apollo/trunk/apollo-util/src/test/resources/META-INF/services/org.apache.activemq.apollo/dto-module.index Mon Jun 24 02:28:28 2013
@@ -0,0 +1,3 @@
+org.apache.activemq.apollo.util.test.DtoModule1
+org.apache.activemq.apollo.util.test.DtoModule2
+org.apache.activemq.apollo1.util.test.DtoModule3
\ No newline at end of file
Added: activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/DtoModuleTest.java
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/DtoModuleTest.java?rev=1495900&view=auto
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/DtoModuleTest.java (added)
+++ activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/DtoModuleTest.java Mon Jun 24 02:28:28 2013
@@ -0,0 +1,32 @@
+/**
+ * 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.apollo.util;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
+/**
+ * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>
+ */
+public class DtoModuleTest {
+
+ @Test
+ public void testDtoSingletons() {
+ assertEquals(0, DtoModule$.MODULE$.packages().length);
+ }
+}
Added: activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule1.java
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule1.java?rev=1495900&view=auto
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule1.java (added)
+++ activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule1.java Mon Jun 24 02:28:28 2013
@@ -0,0 +1,36 @@
+/**
+ * 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.apollo.util.test;
+
+import org.apache.activemq.apollo.util.DtoModule;
+
+/**
+ * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>
+ */
+public class DtoModule1 implements DtoModule {
+
+
+ @Override
+ public String dto_package() {
+ return "org.apache.activemq.apollo.util.test";
+ }
+
+ @Override
+ public Class<?>[] extension_classes() {
+ return new Class<?>[0];
+ }
+}
Added: activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule2.java
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule2.java?rev=1495900&view=auto
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule2.java (added)
+++ activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule2.java Mon Jun 24 02:28:28 2013
@@ -0,0 +1,34 @@
+/**
+ * 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.apollo.util.test;
+
+import org.apache.activemq.apollo.util.DtoModule;
+
+/**
+ * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>
+ */
+public class DtoModule2 implements DtoModule {
+ @Override
+ public String dto_package() {
+ return "org.apache.activemq.apollo.util.test";
+ }
+
+ @Override
+ public Class<?>[] extension_classes() {
+ return new Class<?>[0];
+ }
+}
Added: activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule3.java
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule3.java?rev=1495900&view=auto
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule3.java (added)
+++ activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/test/DtoModule3.java Mon Jun 24 02:28:28 2013
@@ -0,0 +1,34 @@
+/**
+ * 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.apollo.util.test;
+
+import org.apache.activemq.apollo.util.DtoModule;
+
+/**
+ * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>
+ */
+public class DtoModule3 implements DtoModule {
+ @Override
+ public String dto_package() {
+ return "org.apache.activemq.apollo.util.test";
+ }
+
+ @Override
+ public Class<?>[] extension_classes() {
+ return new Class<?>[0];
+ }
+}