activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1334183 [4/4] - in /activemq/activemq-cpp/trunk/activemq-cpp/src: main/ main/activemq/commands/ main/activemq/core/ main/activemq/core/kernels/ main/activemq/state/ main/activemq/util/ main/cms/ main/decaf/lang/ main/decaf/util/ main/decaf...
Date Fri, 04 May 2012 21:04:54 GMT
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.cpp?rev=1334183&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.cpp
(added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.cpp
Fri May  4 21:04:52 2012
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+
+#include "ActiveMQMessageTransformationTest.h"
+
+using namespace activemq;
+using namespace activemq::util;
+
+////////////////////////////////////////////////////////////////////////////////
+ActiveMQMessageTransformationTest::ActiveMQMessageTransformationTest() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ActiveMQMessageTransformationTest::~ActiveMQMessageTransformationTest() {
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.h?rev=1334183&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.h
(added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.h
Fri May  4 21:04:52 2012
@@ -0,0 +1,44 @@
+/*
+ * 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.
+ */
+
+#ifndef _ACTIVEMQ_UTIL_ACTIVEMQMESSAGETRANSFORMATIONTEST_H_
+#define _ACTIVEMQ_UTIL_ACTIVEMQMESSAGETRANSFORMATIONTEST_H_
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+namespace activemq {
+namespace util {
+
+    class ActiveMQMessageTransformationTest : public CppUnit::TestFixture {
+    private:
+
+        CPPUNIT_TEST_SUITE( ActiveMQMessageTransformationTest );
+        CPPUNIT_TEST( test );
+        CPPUNIT_TEST_SUITE_END();
+
+    public:
+
+        ActiveMQMessageTransformationTest();
+        virtual ~ActiveMQMessageTransformationTest();
+
+        void test() {}
+    };
+
+}}
+
+#endif /* _ACTIVEMQ_UTIL_ACTIVEMQMESSAGETRANSFORMATIONTEST_H_ */

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/ActiveMQMessageTransformationTest.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.cpp?rev=1334183&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.cpp
(added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.cpp
Fri May  4 21:04:52 2012
@@ -0,0 +1,51 @@
+/*
+ * 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.
+ */
+
+#include "AdvisorySupportTest.h"
+
+#include <activemq/util/AdvisorySupport.h>
+#include <activemq/commands/ActiveMQDestination.h>
+
+#include <decaf/lang/Pointer.h>
+
+using namespace activemq;
+using namespace activemq::util;
+using namespace activemq::commands;
+using namespace decaf;
+using namespace decaf::lang;
+
+////////////////////////////////////////////////////////////////////////////////
+AdvisorySupportTest::AdvisorySupportTest() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+AdvisorySupportTest::~AdvisorySupportTest() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void AdvisorySupportTest::testGetTempDestinationCompositeAdvisoryTopic() {
+
+    Pointer<ActiveMQDestination> topic(AdvisorySupport::getTempDestinationCompositeAdvisoryTopic());
+    CPPUNIT_ASSERT(topic != NULL);
+    CPPUNIT_ASSERT(topic->isComposite());
+    CPPUNIT_ASSERT(topic->isTopic());
+    CPPUNIT_ASSERT(topic->isTemporary() == false);
+
+    CPPUNIT_ASSERT(topic->getPhysicalName().find(".TempTopic") != std::string::npos);
+    CPPUNIT_ASSERT(topic->getPhysicalName().find(".TempQueue") != std::string::npos);
+}
+

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.h?rev=1334183&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.h
(added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.h
Fri May  4 21:04:52 2012
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ */
+
+#ifndef _ACTIVEMQ_UTIL_ADVISORYSUPPORTTEST_H_
+#define _ACTIVEMQ_UTIL_ADVISORYSUPPORTTEST_H_
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+namespace activemq {
+namespace util {
+
+    class AdvisorySupportTest : public CppUnit::TestFixture {
+    private:
+
+        CPPUNIT_TEST_SUITE( AdvisorySupportTest );
+        CPPUNIT_TEST( testGetTempDestinationCompositeAdvisoryTopic );
+        CPPUNIT_TEST_SUITE_END();
+
+    public:
+
+        AdvisorySupportTest();
+        virtual ~AdvisorySupportTest();
+
+        void testGetTempDestinationCompositeAdvisoryTopic();
+
+    };
+
+}}
+
+#endif /* _ACTIVEMQ_UTIL_ADVISORYSUPPORTTEST_H_ */

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/AdvisorySupportTest.h
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/testRegistry.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/testRegistry.cpp?rev=1334183&r1=1334182&r2=1334183&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/testRegistry.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/testRegistry.cpp Fri May  4 21:04:52
2012
@@ -115,6 +115,10 @@ CPPUNIT_TEST_SUITE_REGISTRATION( activem
 #include <activemq/exceptions/ActiveMQExceptionTest.h>
 CPPUNIT_TEST_SUITE_REGISTRATION( activemq::exceptions::ActiveMQExceptionTest );
 
+#include <activemq/util/AdvisorySupportTest.h>
+CPPUNIT_TEST_SUITE_REGISTRATION( activemq::util::AdvisorySupportTest );
+#include <activemq/util/ActiveMQMessageTransformationTest.h>
+CPPUNIT_TEST_SUITE_REGISTRATION( activemq::util::ActiveMQMessageTransformationTest );
 #include <activemq/util/IdGeneratorTest.h>
 CPPUNIT_TEST_SUITE_REGISTRATION( activemq::util::IdGeneratorTest );
 #include <activemq/util/LongSequenceGeneratorTest.h>



Mime
View raw message