--- /dev/null
+Makefile
+libptascommon.so*
--- /dev/null
+#include "kkj.h"
+
+KKJ::KKJ(unsigned int northing, unsigned int easting) :
+ mNorthing(northing),
+ mEasting(easting)
+{
+}
+
+KKJ::~KKJ()
+{
+}
+
+unsigned int KKJ::northing() const
+{
+ return mNorthing;
+}
+
+unsigned int KKJ::easting() const
+{
+ return mEasting;
+}
--- /dev/null
+#ifndef KKJ_H
+#define KKJ_H
+
+/**
+ * A class representing the Finnish KKJ coordinate.
+ */
+class KKJ
+{
+public:
+ /**
+ * Constructs a new KKJ coordinate with the given values.
+ * @param northing the northing coordinate.
+ * @param easting the easting coordinate.
+ */
+ KKJ(unsigned int northing, unsigned int easting);
+
+ /**
+ * Destructor.
+ */
+ virtual ~KKJ();
+
+ /**
+ * Returns the northing of the coordinate.
+ * @return the northing.
+ */
+ unsigned int northing() const;
+
+ /**
+ * Returns the easting of the coordinate.
+ * @return the easting.
+ */
+ unsigned int easting() const;
+
+private:
+ unsigned int mNorthing;
+ unsigned int mEasting;
+};
+
+#endif // KKJ_H
--- /dev/null
+TEMPLATE = lib
+TARGET = ptascommon
+
+INSTALL_HEADERS += \
+ kkj.h
+HEADERS += \
+ $$INSTALL_HEADERS
+SOURCES += \
+ kkj.cpp
TEMPLATE = subdirs
-SUBDIRS = ut_coord_trans
+SUBDIRS = \
+ ut_kkj
check.target = check
check.CONFIG = recursive
--- /dev/null
+Makefile
+ut_kkj
--- /dev/null
+#include "kkj.h"
+
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+TEST(KKJ, ConstructorValuesReceivedViaGetters)
+{
+ unsigned int northing = 6682815;
+ unsigned int easting = 2556686;
+ KKJ kkj(northing , easting);
+ ASSERT_EQ(northing, kkj.northing());
+ ASSERT_EQ(easting, kkj.easting());
+}
+
+int main(int argc, char *argv[])
+{
+ ::testing::InitGoogleMock(&argc, argv);
+ return RUN_ALL_TESTS();
+}
--- /dev/null
+include(../ut_common.pri)
+
+TARGET = ut_kkj
+QT += testlib
+QT -= gui
+CONFIG += console
+CONFIG -= app_bundle
+TEMPLATE = app
+OBJECTS_DIR = .obj
+MOC_DIR = .moc
+SOURCES += ut_kkj.cpp \
+ $$SRCDIR/kkj.cpp
+HEADERS += \
+ $$SRCDIR/kkj.h
+
+include(../gmock.pri)
+include(../check.pri)