From 741a89b63c947aaffe198886a19f1cad1648a4c1 Mon Sep 17 00:00:00 2001 From: andrecupa Date: Sat, 21 Oct 2023 18:43:26 +0200 Subject: [PATCH] changed public -> protected --- Tests/OpenviduTests/src/test/java/Module.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Tests/OpenviduTests/src/test/java/Module.java b/Tests/OpenviduTests/src/test/java/Module.java index 1828bd6d..9b4cd7f3 100644 --- a/Tests/OpenviduTests/src/test/java/Module.java +++ b/Tests/OpenviduTests/src/test/java/Module.java @@ -18,21 +18,20 @@ public class Module{ /** - * public method. + * protected method. * * @author Andrea Acuña * Description: set up two webDrivers (One in Chrome. One in Firefox) with headless mode * Parameters: None * Return: List with 2 browsers configurated. In the first position is Chrome and in the second position is Firefox */ - public List setUpTwoBrowsers(){ + protected List setUpTwoBrowsers(){ WebDriver driverChrome; WebDriver driverFirefox; List browsers = new ArrayList(); - //WebDriverManager.chromedriver().setup(); WebDriverManager.chromedriver().clearDriverCache().setup(); ChromeOptions options = new ChromeOptions(); @@ -43,7 +42,6 @@ public List setUpTwoBrowsers(){ driverChrome = new ChromeDriver(options); browsers.add(driverChrome); - //WebDriverManager.firefoxdriver().setup(); WebDriverManager.firefoxdriver().clearDriverCache().setup(); FirefoxOptions optionsF = new FirefoxOptions(); @@ -57,7 +55,7 @@ public List setUpTwoBrowsers(){ } /** - * public method. + * protected method. * * @author Andrea Acuña * Description: close both drivers passed by parameter @@ -65,7 +63,7 @@ public List setUpTwoBrowsers(){ * driverFirefox: driver of firefox * Return: None */ - public void quitTwoBrowsers(WebDriver driverChrome, WebDriver driverFirefox) { + protected void quitTwoBrowsers(WebDriver driverChrome, WebDriver driverFirefox) { if (driverChrome != null){ driverChrome.quit(); } @@ -75,7 +73,7 @@ public void quitTwoBrowsers(WebDriver driverChrome, WebDriver driverFirefox) { } /** - * public static method. + * protected static method. * * @author Andrea Acuña * Description: open the excel file and read the value specified @@ -84,7 +82,7 @@ public void quitTwoBrowsers(WebDriver driverChrome, WebDriver driverFirefox) { * ColValue: name of the col in the excel * Return: Value of the intersection between testName (Row) and ColValue (Col) */ - public static String readVariablesFromExcel(String filePath, String testName, String ColValue) { + protected static String readVariablesFromExcel(String filePath, String testName, String ColValue) { try (FileInputStream fileInputStream = new FileInputStream(filePath); Workbook workbook = WorkbookFactory.create(fileInputStream)) {