Skip to content

Commit

Permalink
declared valid loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelendik committed Feb 15, 2022
1 parent 625875f commit 81cb630
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
*******************************************************************************/
package com.qaprosoft.carina.core.foundation.cucumber;

import java.lang.invoke.MethodHandles;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.events.EventFiringWebDriver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.qaprosoft.carina.core.foundation.webdriver.CarinaDriver;
import com.qaprosoft.carina.core.foundation.webdriver.Screenshot;
Expand All @@ -30,6 +33,7 @@


public class CucumberBaseTest extends CucumberRunner {
private static final Logger LOGGER = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

/**
* Check is it Cucumber Test or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.io.File;
import java.io.FilenameFilter;
import java.lang.invoke.MethodHandles;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
Expand All @@ -27,7 +28,8 @@
import java.util.stream.Collectors;

import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.ITestContext;
import org.testng.annotations.AfterClass;
import org.testng.annotations.DataProvider;
Expand All @@ -47,6 +49,8 @@
import net.masterthought.cucumber.ReportBuilder;

public abstract class CucumberRunner extends AbstractTest {
private static final Logger LOGGER = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

private TestNGCucumberRunner testNGCucumberRunner;

private final static String STR_FORMAT_TEST_NAME = "%s (%s)";
Expand All @@ -60,8 +64,6 @@ public abstract class CucumberRunner extends AbstractTest {
private final static String ZAFIRA_REPORT_CI = "ZafiraReport";
private final static String CUCUMBER_REPORT_CI = "CucumberReport";

protected static final Logger LOGGER = Logger.getLogger(CucumberRunner.class);

List<String> testNamesList = Collections.synchronizedList(new ArrayList<String>());

public CucumberRunner() {
Expand Down

0 comments on commit 81cb630

Please sign in to comment.