// Path: src/main/java/bv/offa/netbeans/cnd/unittest/api/ManagerAdapter.java
// public interface ManagerAdapter
// {
//     
//     /**
//      * Displays the result report for the test session.
//      * 
//      * @param session       Test session
//      * @param report        Report
//      */
//     public void displayReport(TestSession session, Report report);
//     
//     
//     /**
//      * Finishes the test session.
//      * 
//      * @param session   Test session
//      */
//     public void sessionFinished(TestSession session);
//     
//     
//     /**
//      * Starts the test session.
//      * 
//      * @param session       Test session
//      */
//     public void testStarted(TestSession session);
//     
//     
//     /**
//      * Displays the test suite as running within the session.
//      * 
//      * @param session       Test session
//      * @param suite         Test suite
//      */
//     public void displaySuiteRunning(TestSession session, TestSuite suite);
//     
// }
// 
// Path: src/main/java/bv/offa/netbeans/cnd/unittest/api/TestFramework.java
// public enum TestFramework
// {
//     /** CppUTest. */
//     CPPUTEST("CppUTest"),
//     /** GoogleTest / GoogleMock. */
//     GOOGLETEST("GoogleTest"),
//     /** LibunittestC++. */
//     LIBUNITTESTCPP("LibunittestCpp");
// 
// 
//     private final String name;
// 
// 
//     TestFramework(String name)
//     {
//         this.name = name;
//     }
// 
// 
//     /**
//      * Returns the name of the framework.
//      *
//      * @return  Name
//      */
//     public String getName()
//     {
//         return name;
//     }
// }
// 
// Path: src/test/java/bv/offa/netbeans/cnd/unittest/testhelper/Helper.java
// public static Matcher checkedMatch(CndTestHandler handler, String input)
// {
//     final Matcher m = handler.match(input);
//     assertThat(m.find()).isTrue();
//     return m;
// }
// 
// Path: src/test/java/bv/offa/netbeans/cnd/unittest/testhelper/MockArgumentMatcher.java
// public static ArgumentMatcher<Testcase> isTestOfFramework(String suite, String test, TestFramework framework)
// {
//     return new ArgumentMatcherImpl<Testcase>("isTestframework()", suite + "::" + test + " - " + framework)
//     {
//         @Override
//         public boolean matches(Testcase t)
//         {
//             return isTest(suite, test).matches(t) && isFramework(framework).matches(t);
//         }
//     };
// }


import static org.mockito.Mockito.verify;
import org.netbeans.modules.gsf.testrunner.api.TestSession;
import bv.offa.netbeans.cnd.unittest.api.ManagerAdapter;
import bv.offa.netbeans.cnd.unittest.api.TestFramework;
import static bv.offa.netbeans.cnd.unittest.testhelper.Helper.checkedMatch;
import static bv.offa.netbeans.cnd.unittest.testhelper.MockArgumentMatcher.isTestOfFramework;
import static com.google.common.truth.Truth.assertThat;
import java.util.regex.Matcher;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.Mockito.mock;
/*
 * NBCndUnit - C/C++ unit tests for NetBeans.
 * Copyright (C) 2015-2021  offa
 *
 * This file is part of NBCndUnit.
 *
 * NBCndUnit is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * NBCndUnit is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with NBCndUnit.  If not, see <http://www.gnu.org/licenses/>.
 */
package bv.offa.netbeans.cnd.unittest.googletest;


@Tag("Test-Framework")
@Tag("GoogleTest")
public class GoogleTestTestStartedHandlerTest
{
    private static final TestFramework FRAMEWORK = TestFramework.GOOGLETEST;
    private GoogleTestTestStartedHandler handler;
    private TestSession session;
    private ManagerAdapter manager;

    @BeforeEach
    public void setUp()
    {
        handler = new GoogleTestTestStartedHandler();
        session = mock(TestSession.class);
        manager = mock(ManagerAdapter.class);
    }

    @Test
    public void parseDataTestCase()
    {
// Path: src/main/java/bv/offa/netbeans/cnd/unittest/api/ManagerAdapter.java
// public interface ManagerAdapter
// {
//     
//     /**
//      * Displays the result report for the test session.
//      * 
//      * @param session       Test session
//      * @param report        Report
//      */
//     public void displayReport(TestSession session, Report report);
//     
//     
//     /**
//      * Finishes the test session.
//      * 
//      * @param session   Test session
//      */
//     public void sessionFinished(TestSession session);
//     
//     
//     /**
//      * Starts the test session.
//      * 
//      * @param session       Test session
//      */
//     public void testStarted(TestSession session);
//     
//     
//     /**
//      * Displays the test suite as running within the session.
//      * 
//      * @param session       Test session
//      * @param suite         Test suite
//      */
//     public void displaySuiteRunning(TestSession session, TestSuite suite);
//     
// }
// 
// Path: src/main/java/bv/offa/netbeans/cnd/unittest/api/TestFramework.java
// public enum TestFramework
// {
//     /** CppUTest. */
//     CPPUTEST("CppUTest"),
//     /** GoogleTest / GoogleMock. */
//     GOOGLETEST("GoogleTest"),
//     /** LibunittestC++. */
//     LIBUNITTESTCPP("LibunittestCpp");
// 
// 
//     private final String name;
// 
// 
//     TestFramework(String name)
//     {
//         this.name = name;
//     }
// 
// 
//     /**
//      * Returns the name of the framework.
//      *
//      * @return  Name
//      */
//     public String getName()
//     {
//         return name;
//     }
// }
// 
// Path: src/test/java/bv/offa/netbeans/cnd/unittest/testhelper/Helper.java
// public static Matcher checkedMatch(CndTestHandler handler, String input)
// {
//     final Matcher m = handler.match(input);
//     assertThat(m.find()).isTrue();
//     return m;
// }
// 
// Path: src/test/java/bv/offa/netbeans/cnd/unittest/testhelper/MockArgumentMatcher.java
// public static ArgumentMatcher<Testcase> isTestOfFramework(String suite, String test, TestFramework framework)
// {
//     return new ArgumentMatcherImpl<Testcase>("isTestframework()", suite + "::" + test + " - " + framework)
//     {
//         @Override
//         public boolean matches(Testcase t)
//         {
//             return isTest(suite, test).matches(t) && isFramework(framework).matches(t);
//         }
//     };
// }


// Path: src/test/java/bv/offa/netbeans/cnd/unittest/googletest/GoogleTestTestStartedHandlerTest.java
import static org.mockito.Mockito.verify;
import org.netbeans.modules.gsf.testrunner.api.TestSession;
import bv.offa.netbeans.cnd.unittest.api.ManagerAdapter;
import bv.offa.netbeans.cnd.unittest.api.TestFramework;
import static bv.offa.netbeans.cnd.unittest.testhelper.Helper.checkedMatch;
import static bv.offa.netbeans.cnd.unittest.testhelper.MockArgumentMatcher.isTestOfFramework;
import static com.google.common.truth.Truth.assertThat;
import java.util.regex.Matcher;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.Mockito.mock;

/*
 * NBCndUnit - C/C++ unit tests for NetBeans.
 * Copyright (C) 2015-2021  offa
 *
 * This file is part of NBCndUnit.
 *
 * NBCndUnit is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * NBCndUnit is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with NBCndUnit.  If not, see <http://www.gnu.org/licenses/>.
 */
package bv.offa.netbeans.cnd.unittest.googletest;


@Tag("Test-Framework")
@Tag("GoogleTest")
public class GoogleTestTestStartedHandlerTest
{
    private static final TestFramework FRAMEWORK = TestFramework.GOOGLETEST;
    private GoogleTestTestStartedHandler handler;
    private TestSession session;
    private ManagerAdapter manager;

    @BeforeEach
    public void setUp()
    {
        handler = new GoogleTestTestStartedHandler();
        session = mock(TestSession.class);
        manager = mock(ManagerAdapter.class);
    }

    @Test
    public void parseDataTestCase()
    {
        Matcher m = checkedMatch(handler, "[ RUN      ] TestSuite.testCase");