activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r560259 - in /activemq/activemq-cpp/trunk/src/decaf/src/test: Makefile.am decaf/lang/ShortTest.cpp decaf/lang/ShortTest.h testRegistry.cpp
Date Fri, 27 Jul 2007 14:56:13 GMT
Author: tabish
Date: Fri Jul 27 07:56:12 2007
New Revision: 560259

URL: http://svn.apache.org/viewvc?view=rev&rev=560259
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Implementing the Primitive Wrappers fully

Added:
    activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.cpp
    activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.h
Modified:
    activemq/activemq-cpp/trunk/src/decaf/src/test/Makefile.am
    activemq/activemq-cpp/trunk/src/decaf/src/test/testRegistry.cpp

Modified: activemq/activemq-cpp/trunk/src/decaf/src/test/Makefile.am
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/test/Makefile.am?view=diff&rev=560259&r1=560258&r2=560259
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/test/Makefile.am (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/test/Makefile.am Fri Jul 27 07:56:12 2007
@@ -17,6 +17,7 @@
 
 cc_sources = \
   decaf/lang/BooleanTest.cpp \
+  decaf/lang/ShortTest.cpp \
   decaf/lang/IntegerTest.cpp \
   decaf/lang/LongTest.cpp \
   decaf/lang/ThreadTest.cpp \
@@ -45,6 +46,7 @@
 
 h_sources = \
   decaf/lang/BooleanTest.h \
+  decaf/lang/ShortTest.h \
   decaf/lang/IntegerTest.h \
   decaf/lang/LongTest.h \
   decaf/lang/ThreadTest.h \

Added: activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.cpp?view=auto&rev=560259
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.cpp (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.cpp Fri Jul 27 07:56:12
2007
@@ -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.
+ */
+
+#include "ShortTest.h"
+
+using namespace std;
+using namespace decaf;
+using namespace decaf::lang;
+
+////////////////////////////////////////////////////////////////////////////////
+ShortTest::ShortTest() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void ShortTest::test() {
+
+    Short short1( 65 );
+
+    CPPUNIT_ASSERT( short1.shortValue() == 65 );
+
+}
+

Added: activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.h?view=auto&rev=560259
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/ShortTest.h Fri Jul 27 07:56:12
2007
@@ -0,0 +1,46 @@
+/*
+ * 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 _DECAF_LANG_SHORTTEST_H_
+#define _DECAF_LANG_SHORTTEST_H_
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+#include <decaf/lang/Short.h>
+
+namespace decaf{
+namespace lang{
+
+    class ShortTest : public CppUnit::TestFixture
+    {
+        CPPUNIT_TEST_SUITE( ShortTest );
+        CPPUNIT_TEST( test );
+        CPPUNIT_TEST_SUITE_END();
+
+    public:
+
+        ShortTest();
+        virtual ~ShortTest() {}
+
+        void test();
+
+    };
+
+}}
+
+#endif /*_DECAF_LANG_SHORTTEST_H_*/

Modified: activemq/activemq-cpp/trunk/src/decaf/src/test/testRegistry.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/test/testRegistry.cpp?view=diff&rev=560259&r1=560258&r2=560259
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/test/testRegistry.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/test/testRegistry.cpp Fri Jul 27 07:56:12 2007
@@ -35,6 +35,8 @@
 CPPUNIT_TEST_SUITE_REGISTRATION( decaf::lang::BooleanTest );
 #include <decaf/lang/ExceptionTest.h>
 CPPUNIT_TEST_SUITE_REGISTRATION( decaf::lang::ExceptionTest );
+#include <decaf/lang/ShortTest.h>
+CPPUNIT_TEST_SUITE_REGISTRATION( decaf::lang::ShortTest );
 #include <decaf/lang/IntegerTest.h>
 CPPUNIT_TEST_SUITE_REGISTRATION( decaf::lang::IntegerTest );
 #include <decaf/lang/LongTest.h>



Mime
View raw message