TestMorfeusz.hpp 1.36 KB
/*
 * File:   TestMorfeusz.hpp
 * Author: lennyn
 *
 * Created on Jun 27, 2014, 1:03:19 PM
 */

#ifndef TESTMORFEUSZ_HPP
#define	TESTMORFEUSZ_HPP

#include <cppunit/extensions/HelperMacros.h>

#include "morfeusz2.h"

class TestMorfeusz : public CPPUNIT_NS::TestFixture {
    CPPUNIT_TEST_SUITE(TestMorfeusz);

    CPPUNIT_TEST(testAnalyzeIterate1);
    CPPUNIT_TEST(testAnalyzeIterateWithWhitespaceHandlingKEEP);
    CPPUNIT_TEST(testAnalyzeIterateWithWhitespaceHandlingAPPEND);
    CPPUNIT_TEST(testAnalyzeVector1);
    CPPUNIT_TEST(testOpenInvalidFile);
    CPPUNIT_TEST(testOpenNonExistentFile);
    CPPUNIT_TEST(testSetInvalidAgglOption);
    CPPUNIT_TEST(testSetInvalidPraetOption);
    CPPUNIT_TEST(testWhitespaceHandlingKEEP);
    CPPUNIT_TEST(testWhitespaceHandlingAPPEND);

    CPPUNIT_TEST_SUITE_END();

public:
    TestMorfeusz();
    virtual ~TestMorfeusz();
    void setUp();
    void tearDown();

private:
    void testAnalyzeIterate1();
    void testAnalyzeIterateWithWhitespaceHandlingKEEP();
    void testAnalyzeIterateWithWhitespaceHandlingAPPEND();
    void testAnalyzeVector1();
    void testOpenInvalidFile();
    void testOpenNonExistentFile();
    void testSetInvalidAgglOption();
    void testSetInvalidPraetOption();
    void testWhitespaceHandlingKEEP();
    void testWhitespaceHandlingAPPEND();
    
    morfeusz::Morfeusz* morfeusz;
};

#endif	/* TESTMORFEUSZ_HPP */