summaryrefslogtreecommitdiff
path: root/src/cppunit
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-04-14 09:08:37 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-04-14 09:08:37 +0000
commit5f5af41d52c01c8320baffea21cd60ebbb16380b (patch)
tree7e4d2a3072081dfcf43f3be8a06264f09e79cbb4 /src/cppunit
parent70d62c5c20105c982df7379e2e61148fc959ff35 (diff)
downloadcppunit-5f5af41d52c01c8320baffea21cd60ebbb16380b.tar.gz
NEWS: updated.
NEWS: updated. * include/cppunit/TestSucessListener.h: * src/cppunit/TestSucessListener.cpp: renamed TestSuccessListener * doc/cookbook.dox: * src/msvc6/DllPlugInTester/DllPlugInTester.cpp: * examples/cppunittest/TestResultCollectorTest.h: * examples/cppunittest/TestResultCollectorTest.cpp: * examples/cppunittest/XmlOutputterTest.h: * examples/cppunittest/XmlOutputterTest.cpp: * include/cppunit/CompilerOutputter.h: * include/cppunit/TestListener.h: * include/cppunit/XmlOutputter.h: * src/cppunit/XmlOutputter.cpp: * src/cppunit/CompilerOutputter.cpp: fixed 'success' typo (was misspelled 'sucess'). * include/cppunit/TestResultCollector.h: * src/cppunit/TestResultCollector.cpp: updated (renaming of TestSucessListener). * src/cppunit/XmlOutputter.cpp: * examples/cppunittest/XmlOutputterTest.cpp: Changed SucessfulTests tag to SucessfulTests.
Diffstat (limited to 'src/cppunit')
-rw-r--r--src/cppunit/CompilerOutputter.cpp4
-rw-r--r--src/cppunit/TestResultCollector.cpp6
-rw-r--r--src/cppunit/TestSuccessListener.cpp46
-rw-r--r--src/cppunit/TestSucessListener.cpp46
-rw-r--r--src/cppunit/XmlOutputter.cpp10
-rw-r--r--src/cppunit/cppunit.dsp10
-rw-r--r--src/cppunit/cppunit_dll.dsp12
7 files changed, 67 insertions, 67 deletions
diff --git a/src/cppunit/CompilerOutputter.cpp b/src/cppunit/CompilerOutputter.cpp
index a828a40..2722cb3 100644
--- a/src/cppunit/CompilerOutputter.cpp
+++ b/src/cppunit/CompilerOutputter.cpp
@@ -43,14 +43,14 @@ void
CompilerOutputter::write()
{
if ( m_result->wasSuccessful() )
- printSucess();
+ printSuccess();
else
printFailureReport();
}
void
-CompilerOutputter::printSucess()
+CompilerOutputter::printSuccess()
{
m_stream << "OK (" << m_result->runTests() << ")"
<< std::endl;
diff --git a/src/cppunit/TestResultCollector.cpp b/src/cppunit/TestResultCollector.cpp
index 796ffc3..1d6e057 100644
--- a/src/cppunit/TestResultCollector.cpp
+++ b/src/cppunit/TestResultCollector.cpp
@@ -7,7 +7,7 @@ namespace CppUnit
TestResultCollector::TestResultCollector( SynchronizationObject *syncObject )
- : TestSucessListener( syncObject )
+ : TestSuccessListener( syncObject )
{
reset();
}
@@ -24,7 +24,7 @@ TestResultCollector::~TestResultCollector()
void
TestResultCollector::reset()
{
- TestSucessListener::reset();
+ TestSuccessListener::reset();
ExclusiveZone zone( m_syncObject );
m_testErrors = 0;
@@ -44,7 +44,7 @@ TestResultCollector::startTest( Test *test )
void
TestResultCollector::addFailure( const TestFailure &failure )
{
- TestSucessListener::addFailure( failure );
+ TestSuccessListener::addFailure( failure );
ExclusiveZone zone( m_syncObject );
if ( failure.isError() )
diff --git a/src/cppunit/TestSuccessListener.cpp b/src/cppunit/TestSuccessListener.cpp
new file mode 100644
index 0000000..37047ec
--- /dev/null
+++ b/src/cppunit/TestSuccessListener.cpp
@@ -0,0 +1,46 @@
+#include <cppunit/TestSuccessListener.h>
+
+
+
+namespace CppUnit
+{
+
+
+TestSuccessListener::TestSuccessListener( SynchronizationObject *syncObject )
+ : SynchronizedObject( syncObject )
+ , m_success( true )
+{
+}
+
+
+TestSuccessListener::~TestSuccessListener()
+{
+}
+
+
+void
+TestSuccessListener::reset()
+{
+ ExclusiveZone zone( m_syncObject );
+ m_success = true;
+}
+
+
+void
+TestSuccessListener::addFailure( const TestFailure &failure )
+{
+ ExclusiveZone zone( m_syncObject );
+ m_success = false;
+}
+
+
+bool
+TestSuccessListener::wasSuccessful() const
+{
+ ExclusiveZone zone( m_syncObject );
+ return m_success;
+}
+
+
+} // namespace CppUnit
+
diff --git a/src/cppunit/TestSucessListener.cpp b/src/cppunit/TestSucessListener.cpp
deleted file mode 100644
index 7271c6b..0000000
--- a/src/cppunit/TestSucessListener.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-#include <cppunit/TestSucessListener.h>
-
-
-
-namespace CppUnit
-{
-
-
-TestSucessListener::TestSucessListener( SynchronizationObject *syncObject )
- : SynchronizedObject( syncObject )
- , m_sucess( true )
-{
-}
-
-
-TestSucessListener::~TestSucessListener()
-{
-}
-
-
-void
-TestSucessListener::reset()
-{
- ExclusiveZone zone( m_syncObject );
- m_sucess = true;
-}
-
-
-void
-TestSucessListener::addFailure( const TestFailure &failure )
-{
- ExclusiveZone zone( m_syncObject );
- m_sucess = false;
-}
-
-
-bool
-TestSucessListener::wasSuccessful() const
-{
- ExclusiveZone zone( m_syncObject );
- return m_sucess;
-}
-
-
-} // namespace CppUnit
-
diff --git a/src/cppunit/XmlOutputter.cpp b/src/cppunit/XmlOutputter.cpp
index d90513f..93a57dd 100644
--- a/src/cppunit/XmlOutputter.cpp
+++ b/src/cppunit/XmlOutputter.cpp
@@ -235,7 +235,7 @@ XmlOutputter::makeRootNode()
fillFailedTestsMap( failedTests );
addFailedTests( failedTests, rootNode );
- addSucessfulTests( failedTests, rootNode );
+ addSuccessfulTests( failedTests, rootNode );
addStatistics( rootNode );
return rootNode;
@@ -273,10 +273,10 @@ XmlOutputter::addFailedTests( FailedTests &failedTests,
void
-XmlOutputter::addSucessfulTests( FailedTests &failedTests,
+XmlOutputter::addSuccessfulTests( FailedTests &failedTests,
Node *rootNode )
{
- Node *testsNode = new Node( "SucessfulTests" );
+ Node *testsNode = new Node( "SuccessfulTests" );
rootNode->addNode( testsNode );
const TestResultCollector::Tests &tests = m_result->tests();
@@ -284,7 +284,7 @@ XmlOutputter::addSucessfulTests( FailedTests &failedTests,
{
Test *test = tests[testNumber];
if ( failedTests.find( test ) == failedTests.end() )
- addSucessfulTest( test, testNumber+1, testsNode );
+ addSuccessfulTest( test, testNumber+1, testsNode );
}
}
@@ -337,7 +337,7 @@ XmlOutputter::addFailureLocation( TestFailure *failure,
void
-XmlOutputter::addSucessfulTest( Test *test,
+XmlOutputter::addSuccessfulTest( Test *test,
int testNumber,
Node *testsNode )
{
diff --git a/src/cppunit/cppunit.dsp b/src/cppunit/cppunit.dsp
index 3764129..eeb8d24 100644
--- a/src/cppunit/cppunit.dsp
+++ b/src/cppunit/cppunit.dsp
@@ -367,10 +367,6 @@ SOURCE=..\..\include\cppunit\Portability.h
# PROP Default_Filter ""
# Begin Source File
-SOURCE=..\..\include\cppunit\ui\text\TestRunner.h
-# End Source File
-# Begin Source File
-
SOURCE=.\TextTestRunner.cpp
# End Source File
# Begin Source File
@@ -383,11 +379,7 @@ SOURCE=..\..\include\cppunit\TextTestRunner.h
# PROP Default_Filter ""
# Begin Source File
-SOURCE=.\TestSucessListener.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\include\cppunit\TestSucessListener.h
+SOURCE=.\TestSuccessListener.cpp
# End Source File
# Begin Source File
diff --git a/src/cppunit/cppunit_dll.dsp b/src/cppunit/cppunit_dll.dsp
index 17d9708..a28f46d 100644
--- a/src/cppunit/cppunit_dll.dsp
+++ b/src/cppunit/cppunit_dll.dsp
@@ -310,11 +310,11 @@ SOURCE=..\..\include\cppunit\TestResultCollector.h
# End Source File
# Begin Source File
-SOURCE=.\TestSucessListener.cpp
+SOURCE=.\TestSuccessListener.cpp
# End Source File
# Begin Source File
-SOURCE=..\..\include\cppunit\TestSucessListener.h
+SOURCE=..\..\include\cppunit\TestSuccessListener.h
# End Source File
# Begin Source File
@@ -370,6 +370,14 @@ SOURCE=.\TestRunner.cpp
# End Source File
# Begin Source File
+SOURCE=..\..\include\cppunit\ui\text\TestRunner.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\TextTestRunner.cpp
+# End Source File
+# Begin Source File
+
SOURCE=..\..\include\cppunit\TextTestRunner.h
# End Source File
# End Group