Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>g1</groupId>
<artifactId>a1</artifactId>
<version>1.0-SNAPSHOT</version>
@PavelCp
PavelCp / excel_ExcelReader.java
Created April 3, 2021 19:46
Package related to .xlsx reading.
package com.read.excel;
import org.apache.poi.ss.usermodel.*;
import java.io.*;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
@PavelCp
PavelCp / FirstExample.java
Created April 3, 2021 19:43
JDBC reading from local DB table.
package exerc;
import java.sql.*;
public class FirstExample {
// JDBC driver name and database URL
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DB_URL = "jdbc:mysql://localhost/EMP";
// Database credentials
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class Screen {
package com.test;
import POMs.PageCanvas;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.Test;
import supp.AbstractTstClass;
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>1</groupId>
<artifactId>1</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
@PavelCp
PavelCp / ucAM4.java
Created May 29, 2018 08:24
Test case verifies ability to sort events present in Actu mandat (Formateur) using "Statut mandat" filter field.
import org.openqa.selenium.Keys;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.PageFactory;
import org.testng.Assert;
import org.testng.annotations.Test;
public class ucAM4 extends AbstractTest {
@Test
@PavelCp
PavelCp / ucAM4.java
Created May 28, 2018 22:00
Test case verifies ability to sort events present in Actu mandat (Formateur) using "Statut mandat" filter field.
import org.openqa.selenium.Keys;
import org.openqa.selenium.support.PageFactory;
import org.testng.Assert;
import org.testng.annotations.Test;
public class ucAM4 extends AbstractTest {
@Test
/**
* Test case verifies ability to sort events present in Actu mandat (Formateur) using "Statut mandat" filter field.
package com.ford;
import java.util.LinkedList;
import java.util.List;
public class Ford {
final static int max = Integer.MAX_VALUE;
private static int[][] matrix = {{0, 5, 3, 5, 6, 8, max},
{max, 0, max, 1, 4, max, max},
package com.ford;
import java.util.LinkedList;
import java.util.List;
public class Ford {
final static int max = Integer.MAX_VALUE;
private static int[][] matrix = {{0, 5, 3, 4, 6, 8, max},
{max, 0, max, 1, 4, max, max},