├── README.md ├── target ├── classes │ ├── domainTest.class │ └── domainConfig.class ├── domain-app-1.0-SNAPSHOT.jar └── maven-archiver │ └── pom.properties ├── .gitignore ├── src └── main │ └── java │ ├── domainConfig.java │ ├── domainTest.java │ └── ThaiDomainTest.java ├── pom.xml └── domainapp.iml /README.md: -------------------------------------------------------------------------------- 1 | # JUnit-Validating-a-domain-Maven-Installation- 2 | Validating three domain names according to specific pattern (DOMAIN_NAME_PATTERN) 3 | -------------------------------------------------------------------------------- /target/classes/domainTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markPoramest/JUnit-Validating-a-domain-Maven-Installation-/HEAD/target/classes/domainTest.class -------------------------------------------------------------------------------- /target/classes/domainConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markPoramest/JUnit-Validating-a-domain-Maven-Installation-/HEAD/target/classes/domainConfig.class -------------------------------------------------------------------------------- /target/domain-app-1.0-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markPoramest/JUnit-Validating-a-domain-Maven-Installation-/HEAD/target/domain-app-1.0-SNAPSHOT.jar -------------------------------------------------------------------------------- /target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sat Jul 28 14:10:15 EEST 2018 3 | version=1.0-SNAPSHOT 4 | groupId=domainvalidation 5 | artifactId=domain-app 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | -------------------------------------------------------------------------------- /src/main/java/domainConfig.java: -------------------------------------------------------------------------------- 1 | import java.util.regex.Pattern; 2 | 3 | public class domainConfig { 4 | private static final String DOMAIN_NAME_PATTERN = 5 | "^((?!-)[\\u0E00-\\u0E7FA-Za-z0-9-]{1,63}(? 2 | 5 | 4.0.0 6 | 7 | domainvalidation 8 | domain-app 9 | 1.0-SNAPSHOT 10 | 11 | 12 | junit 13 | junit 14 | 4.8.1 15 | test 16 | 17 | 18 | org.seleniumhq.selenium 19 | selenium-java 20 | 3.4.0 21 | 22 | 23 | org.testng 24 | testng 25 | 6.9.10 26 | compile 27 | 28 | 29 | com.relevantcodes 30 | extentreports 31 | 2.41.1 32 | 33 | 34 | org.junit.jupiter 35 | junit-jupiter-api 36 | 5.3.0-M1 37 | 38 | 39 | jug 40 | jug 41 | 1.1 42 | 43 | 44 | junit 45 | junit 46 | 4.12 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /domainapp.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | --------------------------------------------------------------------------------