Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump whelk-io/maven-settings-xml-action from 20 to 21 #34

2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
path: ~/.m2
key: ${{runner.os}}-m2
- name: Create settings file
uses: whelk-io/maven-settings-xml-action@v20
uses: whelk-io/maven-settings-xml-action@v21
with:
profiles: '[{"id": "gpg", "properties": { "gpg.keyname": "${{secrets.GPG_KEYNAME_ID}}", "gpg.passphrase": "${{secrets.GPG_PASSPHRASE}}" }}]'
servers: '[{"id": "ossrh", "username": "${{secrets.DEPLOY_PACKAGE_USERNAME}}", "password": "${{secrets.DEPLOY_PACKAGE_PASSWORD}}"}]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ private void setUp() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findElementFound() {
// UIFind find = setUp();
WebElement element = find.findElement(automationPageModel.automationNamesLabel);
Assert.assertEquals(element.getText(),"Names");
}
Expand All @@ -53,7 +52,6 @@ public void findElementFound() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findElementNotFound() {
// UIFind find = setUp();
Assert.assertNull(find.findElement(automationPageModel.notInPage, false));
}

Expand All @@ -62,7 +60,6 @@ public void findElementNotFound() {
*/
@Test(groups = TestCategories.SELENIUM, expectedExceptions = NotFoundException.class)
public void findElementCatchException() {
// UIFind find = setUp();
find.findElement(automationPageModel.notInPage, true);
}

Expand All @@ -71,7 +68,6 @@ public void findElementCatchException() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findElementsFound() {
// UIFind find = setUp();
List<WebElement> list = find.findElements(automationPageModel.dropdownToggleClassSelector);
Assert.assertEquals(list.size(),2, "There are 2 elements with dropdown classes");

Expand All @@ -89,7 +85,6 @@ public void findElementsFound() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findElementsNotFound() {
// UIFind find = setUp();
List<WebElement> list = find.findElements(automationPageModel.notInPage, false);
Assert.assertEquals(list.size(), 0);
}
Expand All @@ -99,7 +94,6 @@ public void findElementsNotFound() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findElementsNotFoundThrowException() {
// UIFind find = setUp();
List<WebElement> elements = find.findElements(automationPageModel.notInPage, false);
Assert.assertEquals(elements.size(), 0);
}
Expand All @@ -109,7 +103,6 @@ public void findElementsNotFoundThrowException() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findElementWithTextElementNotFound() {
// UIFind find = setUp();
Assert.assertNull(find.findElementWithText(automationPageModel.notInPage, "notInPage", false),
"Element was not found");
}
Expand All @@ -120,9 +113,8 @@ public void findElementWithTextElementNotFound() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findElementWithText() {
// UIFind find = setUp();
String text = find.findElement(automationPageModel.automationShowDialog1).getText();
Assert.assertNotNull(find.findElementWithText(automationPageModel.automationShowDialog1, text),
String text = find.findElement(automationPageModel.automationPageHeader).getText();
Assert.assertNotNull(find.findElementWithText(automationPageModel.automationPageHeader, text),
"Element was not found");
}

Expand All @@ -143,7 +135,6 @@ public void findElementWithTextNotFound() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findIndexOfElementWithText() {
// UIFind find = setUp();
Assert.assertEquals(find.findIndexOfElementWithText(automationPageModel.flowerTable, "Red"), 3);
}

Expand All @@ -153,7 +144,6 @@ public void findIndexOfElementWithText() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findIndexOfElementWithTextNotFound() {
// UIFind find = setUp();
Assert.assertEquals(find.findIndexOfElementWithText(automationPageModel.flowerTable,
"#notfound", false), -1);
}
Expand All @@ -164,7 +154,6 @@ public void findIndexOfElementWithTextNotFound() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findIndexOfElementWithTextWithNotFoundElement() {
// UIFind find = setUp();
Assert.assertEquals(find.findIndexOfElementWithText(automationPageModel.notInPage,
"#notfound", false), -1);
}
Expand All @@ -175,7 +164,6 @@ public void findIndexOfElementWithTextWithNotFoundElement() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findIndexOfElementInCollection() {
// UIFind find = setUp();
Assert.assertEquals(find.findIndexOfElementWithText(
find.findElements(automationPageModel.flowerTable), "10 in"), 0);
}
Expand All @@ -185,7 +173,6 @@ public void findIndexOfElementInCollection() {
*/
@Test(groups = TestCategories.SELENIUM, expectedExceptions = NotFoundException.class)
public void findIndexOfElementInCollectionThrowException() {
// UIFind find = setUp();
Assert.assertEquals(find.findIndexOfElementWithText(
find.findElements(automationPageModel.notInPage), "not In page"), 0);
}
Expand All @@ -196,7 +183,6 @@ public void findIndexOfElementInCollectionThrowException() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findIndexOfElementInCollectionNotFound() {
// UIFind find = setUp();
Assert.assertEquals(find.findIndexOfElementWithText(find.findElements(automationPageModel.flowerTable),
"#notfound", false), -1);
}
Expand All @@ -207,7 +193,6 @@ public void findIndexOfElementInCollectionNotFound() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findIndexOfElementInCollectionEmptyInputList() {
// UIFind find = UIFindFactory.getFind(this.getWebDriver());
int index = find.findIndexOfElementWithText(
(List<WebElement>) null, "#notfound", false);
Assert.assertEquals(index, -1);
Expand All @@ -219,7 +204,6 @@ public void findIndexOfElementInCollectionEmptyInputList() {
*/
@Test(groups = TestCategories.SELENIUM)
public void findIndexOfElementInCollectionTextNotFoundAssertIsTrue() {
// UIFind find = setUp();
int index = find.findIndexOfElementWithText(find.findElements(automationPageModel.flowerTable),
"#notfound", false);
Assert.assertEquals(index, -1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/**
* The Configuration unit test class.
*/
@Test(singleThreaded = true)
public class ConfigUnitTest {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.testng.Assert;
import org.testng.annotations.Test;

Expand Down