summaryrefslogtreecommitdiff
path: root/include/cppunit/NotEqualException.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cppunit/NotEqualException.h')
-rw-r--r--include/cppunit/NotEqualException.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/cppunit/NotEqualException.h b/include/cppunit/NotEqualException.h
new file mode 100644
index 0000000..ba39cd2
--- /dev/null
+++ b/include/cppunit/NotEqualException.h
@@ -0,0 +1,41 @@
+#ifndef NOTEQUALEXCEPTION_H
+#define NOTEQUALEXCEPTION_H
+
+#include <cppunit/Exception.h>
+
+
+namespace CppUnit {
+
+
+ class NotEqualException : public Exception
+ {
+ public:
+ NotEqualException( std::string expected,
+ std::string actual,
+ long lineNumber = UNKNOWNLINENUMBER,
+ std::string fileName = UNKNOWNFILENAME );
+
+ NotEqualException( const NotEqualException &other );
+
+ virtual ~NotEqualException();
+
+ /*! Copy operator.
+ * @param other Object to copy.
+ * @return Reference on this object.
+ */
+ NotEqualException &operator =( const NotEqualException &other );
+
+ Exception *clone() const;
+
+ bool isInstanceOf( const Type &type ) const;
+
+ static Type type();
+
+ private:
+ std::string m_expected;
+ std::string m_actual;
+ };
+
+} // namespace CppUnit
+
+#endif // NOTEQUALEXCEPTION_H