This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rationaleemotions.stackoverflow.qn48792353; | |
import org.testng.annotations.AfterSuite; | |
import org.testng.annotations.BeforeSuite; | |
public class Base { | |
@BeforeSuite | |
public void beforeSuite() { | |
System.err.println("beforeSuite() invoked"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.interactions.Actions; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import org.testng.annotations.AfterClass; | |
import org.testng.annotations.BeforeClass; | |
import org.testng.annotations.Test; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rationaleemotions.stackoverflow.qn55692848; | |
import org.testng.annotations.Test; | |
public class CreateUser { | |
@Test(priority = 1) | |
public void one() {} | |
@Test(priority = 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import org.testng.IReporter; | |
import org.testng.ISuite; | |
import org.testng.ISuiteResult; | |
import org.testng.ITestResult; | |
import org.testng.Reporter; | |
import org.testng.xml.XmlSuite; | |
public class SampleReporter implements IReporter { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This file was generated by the Gradle 'init' task. | |
* | |
* This is a general purpose Gradle build. | |
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/7.2/samples | |
*/ | |
plugins { | |
id 'java' | |
id 'idea' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import org.skyscreamer.jsonassert.JSONCompareMode; | |
import org.skyscreamer.jsonassert.JSONParser; | |
import org.testng.asserts.IAssert; | |
import org.testng.asserts.SoftAssert; | |
public class JSONAwareSoftAssertion extends SoftAssert { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.springpoc.test; | |
import com.springpoc.config.SpringConfig; | |
import com.springpoc.util.WebDriverUtils; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; | |
import org.testng.annotations.AfterMethod; | |
import org.testng.annotations.BeforeClass; |
Install minikube by referring to instructions here
Start a mini kube cluster with a higher resource configuration
➜ minikube start --cpus 6 --memory 8192
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
import java.util.List; | |
import java.util.concurrent.*; | |
//Works | |
public class CompletableFuturePriorityQueueExample { | |
static class Task implements Comparable<Task> { | |
private final String name; |
OlderNewer