[BAEL-16669] moved testing-modules/testing modules into relevant folders
This commit is contained in:
		
							parent
							
								
									bfba59a42f
								
							
						
					
					
						commit
						ff871516ee
					
				
							
								
								
									
										81
									
								
								assertion-libraries/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										81
									
								
								assertion-libraries/pom.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,81 @@ | |||||||
|  | <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>com.baeldung</groupId> | ||||||
|  |     <artifactId>assertion-libraries</artifactId> | ||||||
|  |     <version>0.1-SNAPSHOT</version> | ||||||
|  |     <name>assertion-libraries</name> | ||||||
|  | 
 | ||||||
|  |     <parent> | ||||||
|  |         <groupId>com.baeldung</groupId> | ||||||
|  |         <artifactId>parent-java</artifactId> | ||||||
|  |         <version>0.0.1-SNAPSHOT</version> | ||||||
|  |         <relativePath>../parent-java</relativePath> | ||||||
|  |     </parent> | ||||||
|  | 
 | ||||||
|  |     <dependencies> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>com.google.truth</groupId> | ||||||
|  |             <artifactId>truth</artifactId> | ||||||
|  |             <version>${truth.version}</version> | ||||||
|  |         </dependency> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>com.google.truth.extensions</groupId> | ||||||
|  |             <artifactId>truth-java8-extension</artifactId> | ||||||
|  |             <version>${truth.version}</version> | ||||||
|  |             <scope>test</scope> | ||||||
|  |         </dependency> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>org.assertj</groupId> | ||||||
|  |             <artifactId>assertj-guava</artifactId> | ||||||
|  |             <version>${assertj-guava.version}</version> | ||||||
|  |         </dependency> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>org.assertj</groupId> | ||||||
|  |             <artifactId>assertj-core</artifactId> | ||||||
|  |             <version>${assertj-core.version}</version> | ||||||
|  |             <scope>test</scope> | ||||||
|  |         </dependency> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>org.javalite</groupId> | ||||||
|  |             <artifactId>javalite-common</artifactId> | ||||||
|  |             <version>${javalite.version}</version> | ||||||
|  |         </dependency> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>org.jgotesting</groupId> | ||||||
|  |             <artifactId>jgotesting</artifactId> | ||||||
|  |             <version>${jgotesting.version}</version> | ||||||
|  |             <scope>test</scope> | ||||||
|  |         </dependency> | ||||||
|  | 
 | ||||||
|  |     </dependencies> | ||||||
|  | 
 | ||||||
|  |     <build> | ||||||
|  |         <plugins> | ||||||
|  |             <plugin> | ||||||
|  |                 <groupId>org.assertj</groupId> | ||||||
|  |                 <artifactId>assertj-assertions-generator-maven-plugin</artifactId> | ||||||
|  |                 <version>${assertj-generator.version}</version> | ||||||
|  |                 <configuration> | ||||||
|  |                     <classes> | ||||||
|  |                         <param>com.baeldung.testing.assertj.custom.Person</param> | ||||||
|  |                     </classes> | ||||||
|  |                 </configuration> | ||||||
|  |             </plugin> | ||||||
|  |         </plugins> | ||||||
|  |     </build> | ||||||
|  | 
 | ||||||
|  |     <properties> | ||||||
|  |         <truth.version>0.32</truth.version> | ||||||
|  |         <assertj-guava.version>3.1.0</assertj-guava.version> | ||||||
|  |         <assertj-core.version>3.9.0</assertj-core.version> | ||||||
|  |         <assertj-generator.version>2.1.0</assertj-generator.version> | ||||||
|  |         <javalite.version>1.4.13</javalite.version> | ||||||
|  |         <jgotesting.version>0.12</jgotesting.version> | ||||||
|  |     </properties> | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | </project> | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj; | package com.baeldung.assertj; | ||||||
| 
 | 
 | ||||||
| public class Dog { | public class Dog { | ||||||
|     private String name; |     private String name; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj; | package com.baeldung.assertj; | ||||||
| 
 | 
 | ||||||
| public class Member { | public class Member { | ||||||
|     private String name; |     private String name; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj; | package com.baeldung.assertj; | ||||||
| 
 | 
 | ||||||
| public class Person { | public class Person { | ||||||
|     private String name; |     private String name; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj.custom; | package com.baeldung.assertj.custom; | ||||||
| 
 | 
 | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.truth; | package com.baeldung.truth; | ||||||
| 
 | 
 | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.truth; | package com.baeldung.truth; | ||||||
| 
 | 
 | ||||||
| import com.google.common.truth.ComparableSubject; | import com.google.common.truth.ComparableSubject; | ||||||
| import com.google.common.truth.FailureStrategy; | import com.google.common.truth.FailureStrategy; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj; | package com.baeldung.assertj; | ||||||
| 
 | 
 | ||||||
| import static org.assertj.core.api.Assertions.allOf; | import static org.assertj.core.api.Assertions.allOf; | ||||||
| import static org.assertj.core.api.Assertions.anyOf; | import static org.assertj.core.api.Assertions.anyOf; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj; | package com.baeldung.assertj; | ||||||
| 
 | 
 | ||||||
| import org.assertj.core.util.Maps; | import org.assertj.core.util.Maps; | ||||||
| import org.junit.Ignore; | import org.junit.Ignore; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj; | package com.baeldung.assertj; | ||||||
| 
 | 
 | ||||||
| import com.google.common.base.Optional; | import com.google.common.base.Optional; | ||||||
| import com.google.common.collect.ArrayListMultimap; | import com.google.common.collect.ArrayListMultimap; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj; | package com.baeldung.assertj; | ||||||
| 
 | 
 | ||||||
| import org.junit.Test; | import org.junit.Test; | ||||||
| 
 | 
 | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package com.baeldung.testing.assertj.custom; | package com.baeldung.assertj.custom; | ||||||
| 
 | 
 | ||||||
| import static com.baeldung.testing.assertj.custom.Assertions.assertThat; | import static com.baeldung.assertj.custom.Assertions.assertThat; | ||||||
| import static org.junit.Assert.fail; | import static org.junit.Assert.fail; | ||||||
| 
 | 
 | ||||||
| import org.junit.Rule; | import org.junit.Rule; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj.custom; | package com.baeldung.assertj.custom; | ||||||
| 
 | 
 | ||||||
| public class Assertions { | public class Assertions { | ||||||
|     public static PersonAssert assertThat(Person actual) { |     public static PersonAssert assertThat(Person actual) { | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj.custom; | package com.baeldung.assertj.custom; | ||||||
| 
 | 
 | ||||||
| import org.assertj.core.api.AbstractAssert; | import org.assertj.core.api.AbstractAssert; | ||||||
| 
 | 
 | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj.exceptions; | package com.baeldung.assertj.exceptions; | ||||||
| 
 | 
 | ||||||
| import static org.assertj.core.api.Assertions.assertThat; | import static org.assertj.core.api.Assertions.assertThat; | ||||||
| import static org.assertj.core.api.Assertions.fail; | import static org.assertj.core.api.Assertions.fail; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.assertj.exceptions; | package com.baeldung.assertj.exceptions; | ||||||
| 
 | 
 | ||||||
| import static org.assertj.core.api.Assertions.assertThatThrownBy; | import static org.assertj.core.api.Assertions.assertThatThrownBy; | ||||||
| import static org.assertj.core.api.Assertions.assertThat; | import static org.assertj.core.api.Assertions.assertThat; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.truth; | package com.baeldung.truth; | ||||||
| 
 | 
 | ||||||
| import com.google.common.collect.ArrayListMultimap; | import com.google.common.collect.ArrayListMultimap; | ||||||
| import com.google.common.collect.Multimap; | import com.google.common.collect.Multimap; | ||||||
| @ -6,7 +6,7 @@ import com.google.common.collect.Range; | |||||||
| import com.google.common.collect.Table; | import com.google.common.collect.Table; | ||||||
| import com.google.common.collect.TreeBasedTable; | import com.google.common.collect.TreeBasedTable; | ||||||
| import com.google.common.collect.TreeMultiset; | import com.google.common.collect.TreeMultiset; | ||||||
| import static com.baeldung.testing.truth.UserSubject.*; | import static com.baeldung.truth.UserSubject.*; | ||||||
| import static com.google.common.truth.Truth.*; | import static com.google.common.truth.Truth.*; | ||||||
| import static com.google.common.truth.Truth8.*; | import static com.google.common.truth.Truth8.*; | ||||||
| import java.math.BigDecimal; | import java.math.BigDecimal; | ||||||
							
								
								
									
										8
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								pom.xml
									
									
									
									
									
								
							| @ -780,7 +780,9 @@ | |||||||
| 				<module>structurizr</module> | 				<module>structurizr</module> | ||||||
| 				<module>struts-2</module> | 				<module>struts-2</module> | ||||||
| 
 | 
 | ||||||
| 				<module>testing-modules</module> | 				<module>assertion-libraries</module> | ||||||
|  | 				<module>testing-libraries</module> | ||||||
|  | 				<module>testing-libraries-2</module> | ||||||
| 
 | 
 | ||||||
| 				<module>twilio</module> | 				<module>twilio</module> | ||||||
| 				<module>twitter4j</module> | 				<module>twitter4j</module> | ||||||
| @ -1458,7 +1460,9 @@ | |||||||
| 				<module>structurizr</module> | 				<module>structurizr</module> | ||||||
| 				<module>struts-2</module> | 				<module>struts-2</module> | ||||||
| 
 | 
 | ||||||
| 				<module>testing-modules</module> | 				<module>assertion-libraries</module> | ||||||
|  | 				<module>testing-libraries</module> | ||||||
|  | 				<module>testing-libraries-2</module> | ||||||
| 
 | 
 | ||||||
| 				<module>twilio</module> | 				<module>twilio</module> | ||||||
| 				<module>twitter4j</module> | 				<module>twitter4j</module> | ||||||
|  | |||||||
							
								
								
									
										5
									
								
								testing-libraries-2/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								testing-libraries-2/README.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | |||||||
|  | 
 | ||||||
|  | ## Testing Modules | ||||||
|  | 
 | ||||||
|  | This is a aggregator module containing several modules focused on testing libraries 2.  | ||||||
|  | 
 | ||||||
							
								
								
									
										41
									
								
								testing-libraries-2/cucumber/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								testing-libraries-2/cucumber/pom.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,41 @@ | |||||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||||
|  | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||||||
|  |          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> | ||||||
|  |     <artifactId>cucumber</artifactId> | ||||||
|  |     <name>cucumber</name> | ||||||
|  |     <packaging>pom</packaging> | ||||||
|  | 
 | ||||||
|  |     <parent> | ||||||
|  |         <groupId>com.baeldung</groupId> | ||||||
|  |         <artifactId>parent-modules</artifactId> | ||||||
|  |         <version>1.0.0-SNAPSHOT</version> | ||||||
|  |         <relativePath>../..</relativePath> | ||||||
|  |     </parent> | ||||||
|  | 
 | ||||||
|  |     <dependencies> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>info.cukes</groupId> | ||||||
|  |             <artifactId>cucumber-junit</artifactId> | ||||||
|  |             <version>${cucumber.version}</version> | ||||||
|  |             <scope>test</scope> | ||||||
|  |         </dependency> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>info.cukes</groupId> | ||||||
|  |             <artifactId>cucumber-java</artifactId> | ||||||
|  |             <version>${cucumber.version}</version> | ||||||
|  |             <scope>test</scope> | ||||||
|  |         </dependency> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>info.cukes</groupId> | ||||||
|  |             <artifactId>cucumber-java8</artifactId> | ||||||
|  |             <version>${cucumber.version}</version> | ||||||
|  |             <scope>test</scope> | ||||||
|  |         </dependency> | ||||||
|  |     </dependencies> | ||||||
|  | 
 | ||||||
|  |     <properties> | ||||||
|  |         <cucumber.version>1.2.5</cucumber.version> | ||||||
|  |     </properties> | ||||||
|  | 
 | ||||||
|  | </project> | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.calculator; | package com.baeldung.calculator; | ||||||
| 
 | 
 | ||||||
| import cucumber.api.CucumberOptions; | import cucumber.api.CucumberOptions; | ||||||
| import cucumber.api.junit.Cucumber; | import cucumber.api.junit.Cucumber; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.calculator; | package com.baeldung.calculator; | ||||||
| 
 | 
 | ||||||
| import com.baeldung.cucumber.Calculator; | import com.baeldung.cucumber.Calculator; | ||||||
| import cucumber.api.java.Before; | import cucumber.api.java.Before; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.shopping; | package com.baeldung.shopping; | ||||||
| 
 | 
 | ||||||
| import org.junit.runner.RunWith; | import org.junit.runner.RunWith; | ||||||
| 
 | 
 | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.testing.shopping; | package com.baeldung.shopping; | ||||||
| 
 | 
 | ||||||
| import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||||
| import cucumber.api.java8.En; | import cucumber.api.java8.En; | ||||||
							
								
								
									
										28
									
								
								testing-libraries-2/lambdabehave/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								testing-libraries-2/lambdabehave/pom.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,28 @@ | |||||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||||
|  | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||||||
|  |          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> | ||||||
|  |     <artifactId>lambdabehave</artifactId> | ||||||
|  |     <name>lambdabehave</name> | ||||||
|  |     <packaging>pom</packaging> | ||||||
|  | 
 | ||||||
|  |     <parent> | ||||||
|  |         <groupId>com.baeldung</groupId> | ||||||
|  |         <artifactId>parent-modules</artifactId> | ||||||
|  |         <version>1.0.0-SNAPSHOT</version> | ||||||
|  |         <relativePath>../..</relativePath> | ||||||
|  |     </parent> | ||||||
|  | 
 | ||||||
|  |     <dependencies> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>com.insightfullogic</groupId> | ||||||
|  |             <artifactId>lambda-behave</artifactId> | ||||||
|  |             <version>${lambda-behave.version}</version> | ||||||
|  |         </dependency> | ||||||
|  |     </dependencies> | ||||||
|  | 
 | ||||||
|  |     <properties> | ||||||
|  |         <lambda-behave.version>0.4</lambda-behave.version> | ||||||
|  |     </properties> | ||||||
|  | 
 | ||||||
|  | </project> | ||||||
							
								
								
									
										16
									
								
								testing-libraries-2/mutations/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								testing-libraries-2/mutations/pom.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | |||||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||||
|  | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||||||
|  |          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> | ||||||
|  |     <artifactId>mutations</artifactId> | ||||||
|  |     <name>mutations</name> | ||||||
|  |     <packaging>pom</packaging> | ||||||
|  | 
 | ||||||
|  |     <parent> | ||||||
|  |         <groupId>com.baeldung</groupId> | ||||||
|  |         <artifactId>parent-modules</artifactId> | ||||||
|  |         <version>1.0.0-SNAPSHOT</version> | ||||||
|  |         <relativePath>../..</relativePath> | ||||||
|  |     </parent> | ||||||
|  | 
 | ||||||
|  | </project> | ||||||
| @ -1,11 +1,11 @@ | |||||||
| package com.baeldung.mutation.test; | package com.baeldung.mutation; | ||||||
| 
 | 
 | ||||||
| import static org.junit.Assert.assertFalse; | import static org.junit.Assert.assertFalse; | ||||||
| import static org.junit.Assert.assertTrue; | import static org.junit.Assert.assertTrue; | ||||||
| 
 | 
 | ||||||
| import org.junit.Test; | import org.junit.Test; | ||||||
| 
 | 
 | ||||||
| import com.baeldung.testing.mutation.Palindrome; | import com.baeldung.mutation.Palindrome; | ||||||
| 
 | 
 | ||||||
| public class PalindromeUnitTest { | public class PalindromeUnitTest { | ||||||
|     @Test |     @Test | ||||||
							
								
								
									
										22
									
								
								testing-libraries-2/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								testing-libraries-2/pom.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | |||||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||||
|  | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||||||
|  |     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> | ||||||
|  |     <artifactId>testing-libraries-2</artifactId> | ||||||
|  |     <name>testing-libraries-2</name> | ||||||
|  |     <packaging>pom</packaging> | ||||||
|  | 
 | ||||||
|  |     <parent> | ||||||
|  |         <groupId>com.baeldung</groupId> | ||||||
|  |         <artifactId>parent-modules</artifactId> | ||||||
|  |         <version>1.0.0-SNAPSHOT</version> | ||||||
|  |         <relativePath>..</relativePath> | ||||||
|  |     </parent> | ||||||
|  | 
 | ||||||
|  |     <modules> | ||||||
|  |         <module>mutations</module> | ||||||
|  |         <module>cucumber</module> | ||||||
|  |         <module>lambdabehave</module> | ||||||
|  |     </modules> | ||||||
|  | 
 | ||||||
|  | </project> | ||||||
| @ -1,136 +1,136 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | <project xmlns="http://maven.apache.org/POM/4.0.0" | ||||||
| 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 	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"> | 	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> | 	<modelVersion>4.0.0</modelVersion> | ||||||
| 	<groupId>org.baeldung</groupId> | 	<groupId>org.baeldung</groupId> | ||||||
| 	<artifactId>gatling</artifactId> | 	<artifactId>gatling</artifactId> | ||||||
| 	<version>1.0-SNAPSHOT</version> | 	<version>1.0-SNAPSHOT</version> | ||||||
| 	<name>gatling</name> | 	<name>gatling</name> | ||||||
| 	 | 	 | ||||||
|     <parent> |     <parent> | ||||||
|         <groupId>com.baeldung</groupId> |         <groupId>com.baeldung</groupId> | ||||||
|         <artifactId>parent-modules</artifactId> |         <artifactId>parent-modules</artifactId> | ||||||
|         <version>1.0.0-SNAPSHOT</version> |         <version>1.0.0-SNAPSHOT</version> | ||||||
|         <relativePath>../../</relativePath> |         <relativePath>../../</relativePath> | ||||||
|     </parent> |     </parent> | ||||||
| 
 | 
 | ||||||
| 	<dependencyManagement> | 	<dependencyManagement> | ||||||
| 		<dependencies> | 		<dependencies> | ||||||
| 			<dependency> | 			<dependency> | ||||||
| 				<groupId>io.gatling</groupId> | 				<groupId>io.gatling</groupId> | ||||||
| 				<artifactId>gatling-app</artifactId> | 				<artifactId>gatling-app</artifactId> | ||||||
| 				<version>${gatling.version}</version> | 				<version>${gatling.version}</version> | ||||||
| 			</dependency> | 			</dependency> | ||||||
| 			<dependency> | 			<dependency> | ||||||
| 				<groupId>io.gatling</groupId> | 				<groupId>io.gatling</groupId> | ||||||
| 				<artifactId>gatling-recorder</artifactId> | 				<artifactId>gatling-recorder</artifactId> | ||||||
| 				<version>${gatling.version}</version> | 				<version>${gatling.version}</version> | ||||||
| 			</dependency> | 			</dependency> | ||||||
| 			<dependency> | 			<dependency> | ||||||
| 				<groupId>io.gatling.highcharts</groupId> | 				<groupId>io.gatling.highcharts</groupId> | ||||||
| 				<artifactId>gatling-charts-highcharts</artifactId> | 				<artifactId>gatling-charts-highcharts</artifactId> | ||||||
| 				<version>${gatling.version}</version> | 				<version>${gatling.version}</version> | ||||||
| 			</dependency> | 			</dependency> | ||||||
| 			<dependency> | 			<dependency> | ||||||
| 				<groupId>org.scala-lang</groupId> | 				<groupId>org.scala-lang</groupId> | ||||||
| 				<artifactId>scala-library</artifactId> | 				<artifactId>scala-library</artifactId> | ||||||
| 				<version>${scala.version}</version> | 				<version>${scala.version}</version> | ||||||
| 			</dependency> | 			</dependency> | ||||||
| 		</dependencies> | 		</dependencies> | ||||||
| 	</dependencyManagement> | 	</dependencyManagement> | ||||||
|      |      | ||||||
| 	<dependencies> | 	<dependencies> | ||||||
| 		<dependency> | 		<dependency> | ||||||
| 			<groupId>io.gatling.highcharts</groupId> | 			<groupId>io.gatling.highcharts</groupId> | ||||||
| 			<artifactId>gatling-charts-highcharts</artifactId> | 			<artifactId>gatling-charts-highcharts</artifactId> | ||||||
| 		</dependency> | 		</dependency> | ||||||
| 		<dependency> | 		<dependency> | ||||||
| 			<groupId>io.gatling</groupId> | 			<groupId>io.gatling</groupId> | ||||||
| 			<artifactId>gatling-app</artifactId> | 			<artifactId>gatling-app</artifactId> | ||||||
| 		</dependency> | 		</dependency> | ||||||
| 		<dependency> | 		<dependency> | ||||||
| 			<groupId>io.gatling</groupId> | 			<groupId>io.gatling</groupId> | ||||||
| 			<artifactId>gatling-recorder</artifactId> | 			<artifactId>gatling-recorder</artifactId> | ||||||
| 		</dependency> | 		</dependency> | ||||||
| 		<dependency> | 		<dependency> | ||||||
| 			<groupId>org.scala-lang</groupId> | 			<groupId>org.scala-lang</groupId> | ||||||
| 			<artifactId>scala-library</artifactId> | 			<artifactId>scala-library</artifactId> | ||||||
| 		</dependency> | 		</dependency> | ||||||
| 	</dependencies> | 	</dependencies> | ||||||
| 
 | 
 | ||||||
| 	<build> | 	<build> | ||||||
| 		<testSourceDirectory>src/test/scala</testSourceDirectory> | 		<testSourceDirectory>src/test/scala</testSourceDirectory> | ||||||
| 		<pluginManagement> | 		<pluginManagement> | ||||||
| 			<plugins> | 			<plugins> | ||||||
| 				<plugin> | 				<plugin> | ||||||
| 					<groupId>net.alchim31.maven</groupId> | 					<groupId>net.alchim31.maven</groupId> | ||||||
| 					<artifactId>scala-maven-plugin</artifactId> | 					<artifactId>scala-maven-plugin</artifactId> | ||||||
| 					<version>${scala-maven-plugin.version}</version> | 					<version>${scala-maven-plugin.version}</version> | ||||||
| 				</plugin> | 				</plugin> | ||||||
| 			</plugins> | 			</plugins> | ||||||
| 		</pluginManagement> | 		</pluginManagement> | ||||||
| 		<plugins> | 		<plugins> | ||||||
| 			<plugin> | 			<plugin> | ||||||
| 				<groupId>net.alchim31.maven</groupId> | 				<groupId>net.alchim31.maven</groupId> | ||||||
| 				<artifactId>scala-maven-plugin</artifactId> | 				<artifactId>scala-maven-plugin</artifactId> | ||||||
| 				<executions> | 				<executions> | ||||||
| 					<execution> | 					<execution> | ||||||
| 						<goals> | 						<goals> | ||||||
| 							<goal>testCompile</goal> | 							<goal>testCompile</goal> | ||||||
| 						</goals> | 						</goals> | ||||||
| 						<configuration> | 						<configuration> | ||||||
| 							<args> | 							<args> | ||||||
| 								<!--<arg>-Ybackend:GenBCode</arg> --> | 								<!--<arg>-Ybackend:GenBCode</arg> --> | ||||||
| 								<arg>-Ydelambdafy:method</arg> | 								<arg>-Ydelambdafy:method</arg> | ||||||
| 								<arg>-target:jvm-1.8</arg> | 								<arg>-target:jvm-1.8</arg> | ||||||
| 								<arg>-deprecation</arg> | 								<arg>-deprecation</arg> | ||||||
| 								<arg>-feature</arg> | 								<arg>-feature</arg> | ||||||
| 								<arg>-unchecked</arg> | 								<arg>-unchecked</arg> | ||||||
| 								<arg>-language:implicitConversions</arg> | 								<arg>-language:implicitConversions</arg> | ||||||
| 								<arg>-language:postfixOps</arg> | 								<arg>-language:postfixOps</arg> | ||||||
| 							</args> | 							</args> | ||||||
| 						</configuration> | 						</configuration> | ||||||
| 					</execution> | 					</execution> | ||||||
| 				</executions> | 				</executions> | ||||||
| 			</plugin> | 			</plugin> | ||||||
| 		</plugins> | 		</plugins> | ||||||
| 	</build> | 	</build> | ||||||
| 	 | 	 | ||||||
| 	<profiles> | 	<profiles> | ||||||
| 		<profile> | 		<profile> | ||||||
| 			<id>simulation</id> | 			<id>simulation</id> | ||||||
| 			<build> | 			<build> | ||||||
| 				<plugins> | 				<plugins> | ||||||
| 					<plugin> | 					<plugin> | ||||||
| 						<groupId>io.gatling</groupId> | 						<groupId>io.gatling</groupId> | ||||||
| 						<artifactId>gatling-maven-plugin</artifactId> | 						<artifactId>gatling-maven-plugin</artifactId> | ||||||
| 						<version>${gatling-maven-plugin.version}</version> | 						<version>${gatling-maven-plugin.version}</version> | ||||||
| 						<executions> | 						<executions> | ||||||
| 							<execution> | 							<execution> | ||||||
| 								<phase>test</phase> | 								<phase>test</phase> | ||||||
| 								<goals> | 								<goals> | ||||||
| 									<goal>execute</goal> | 									<goal>execute</goal> | ||||||
| 								</goals> | 								</goals> | ||||||
| 								<configuration> | 								<configuration> | ||||||
| 									<disableCompiler>true</disableCompiler> | 									<disableCompiler>true</disableCompiler> | ||||||
| 								</configuration> | 								</configuration> | ||||||
| 							</execution> | 							</execution> | ||||||
| 						</executions> | 						</executions> | ||||||
| 					</plugin> | 					</plugin> | ||||||
| 				</plugins> | 				</plugins> | ||||||
| 			</build> | 			</build> | ||||||
| 		</profile> | 		</profile> | ||||||
| 	</profiles> | 	</profiles> | ||||||
| 
 | 
 | ||||||
| 	<properties> | 	<properties> | ||||||
| 		<maven.compiler.source>1.8</maven.compiler.source> | 		<maven.compiler.source>1.8</maven.compiler.source> | ||||||
| 		<maven.compiler.target>1.8</maven.compiler.target> | 		<maven.compiler.target>1.8</maven.compiler.target> | ||||||
| 		<encoding>UTF-8</encoding> | 		<encoding>UTF-8</encoding> | ||||||
| 		<scala.version>2.12.6</scala.version> <!--2.11.12 --> <!--2.12.6 --> | 		<scala.version>2.12.6</scala.version> <!--2.11.12 --> <!--2.12.6 --> | ||||||
| 		<gatling.version>2.3.1</gatling.version> <!--2.2.5 --> <!--2.3.1 --> | 		<gatling.version>2.3.1</gatling.version> <!--2.2.5 --> <!--2.3.1 --> | ||||||
| 		<scala-maven-plugin.version>3.2.2</scala-maven-plugin.version> <!--3.2.2 --> <!--3.3.2 --> | 		<scala-maven-plugin.version>3.2.2</scala-maven-plugin.version> <!--3.2.2 --> <!--3.3.2 --> | ||||||
| 		<gatling-maven-plugin.version>2.2.4</gatling-maven-plugin.version> <!--2.2.1 --> <!--2.2.4 --> | 		<gatling-maven-plugin.version>2.2.4</gatling-maven-plugin.version> <!--2.2.1 --> <!--2.2.4 --> | ||||||
| 	</properties> | 	</properties> | ||||||
| 
 | 
 | ||||||
| </project> | </project> | ||||||
| @ -1,13 +1,13 @@ | |||||||
| import io.gatling.app.Gatling | import io.gatling.app.Gatling | ||||||
| import io.gatling.core.config.GatlingPropertiesBuilder | import io.gatling.core.config.GatlingPropertiesBuilder | ||||||
| 
 | 
 | ||||||
| object Engine extends App { | object Engine extends App { | ||||||
| 
 | 
 | ||||||
|     val props = new GatlingPropertiesBuilder |     val props = new GatlingPropertiesBuilder | ||||||
|     props.dataDirectory(IDEPathHelper.dataDirectory.toString) |     props.dataDirectory(IDEPathHelper.dataDirectory.toString) | ||||||
|     props.resultsDirectory(IDEPathHelper.resultsDirectory.toString) |     props.resultsDirectory(IDEPathHelper.resultsDirectory.toString) | ||||||
|     props.bodiesDirectory(IDEPathHelper.bodiesDirectory.toString) |     props.bodiesDirectory(IDEPathHelper.bodiesDirectory.toString) | ||||||
|     props.binariesDirectory(IDEPathHelper.mavenBinariesDirectory.toString) |     props.binariesDirectory(IDEPathHelper.mavenBinariesDirectory.toString) | ||||||
| 
 | 
 | ||||||
|     Gatling.fromMap(props.build) |     Gatling.fromMap(props.build) | ||||||
| } | } | ||||||
| @ -1,22 +1,22 @@ | |||||||
| import java.nio.file.Path | import java.nio.file.Path | ||||||
| 
 | 
 | ||||||
| import io.gatling.commons.util.PathHelper._ | import io.gatling.commons.util.PathHelper._ | ||||||
| 
 | 
 | ||||||
| object IDEPathHelper { | object IDEPathHelper { | ||||||
| 
 | 
 | ||||||
|     val gatlingConfUrl: Path = getClass.getClassLoader.getResource("gatling.conf").toURI |     val gatlingConfUrl: Path = getClass.getClassLoader.getResource("gatling.conf").toURI | ||||||
|     val projectRootDir = gatlingConfUrl.ancestor(3) |     val projectRootDir = gatlingConfUrl.ancestor(3) | ||||||
| 
 | 
 | ||||||
|     val mavenSourcesDirectory = projectRootDir / "src" / "test" / "scala" |     val mavenSourcesDirectory = projectRootDir / "src" / "test" / "scala" | ||||||
|     val mavenResourcesDirectory = projectRootDir / "src" / "test" / "resources" |     val mavenResourcesDirectory = projectRootDir / "src" / "test" / "resources" | ||||||
|     val mavenTargetDirectory = projectRootDir / "target" |     val mavenTargetDirectory = projectRootDir / "target" | ||||||
|     val mavenBinariesDirectory = mavenTargetDirectory / "test-classes" |     val mavenBinariesDirectory = mavenTargetDirectory / "test-classes" | ||||||
| 
 | 
 | ||||||
|     val dataDirectory = mavenResourcesDirectory / "data" |     val dataDirectory = mavenResourcesDirectory / "data" | ||||||
|     val bodiesDirectory = mavenResourcesDirectory / "bodies" |     val bodiesDirectory = mavenResourcesDirectory / "bodies" | ||||||
| 
 | 
 | ||||||
|     val recorderOutputDirectory = mavenSourcesDirectory |     val recorderOutputDirectory = mavenSourcesDirectory | ||||||
|     val resultsDirectory = mavenTargetDirectory / "gatling" |     val resultsDirectory = mavenTargetDirectory / "gatling" | ||||||
| 
 | 
 | ||||||
|     val recorderConfigFile = mavenResourcesDirectory / "recorder.conf" |     val recorderConfigFile = mavenResourcesDirectory / "recorder.conf" | ||||||
| } | } | ||||||
| @ -1,12 +1,12 @@ | |||||||
| import io.gatling.recorder.GatlingRecorder | import io.gatling.recorder.GatlingRecorder | ||||||
| import io.gatling.recorder.config.RecorderPropertiesBuilder | import io.gatling.recorder.config.RecorderPropertiesBuilder | ||||||
| 
 | 
 | ||||||
| object Recorder extends App { | object Recorder extends App { | ||||||
| 
 | 
 | ||||||
|     val props = new RecorderPropertiesBuilder |     val props = new RecorderPropertiesBuilder | ||||||
|     props.simulationOutputFolder(IDEPathHelper.recorderOutputDirectory.toString) |     props.simulationOutputFolder(IDEPathHelper.recorderOutputDirectory.toString) | ||||||
|     props.simulationPackage("org.baeldung") |     props.simulationPackage("org.baeldung") | ||||||
|     props.bodiesFolder(IDEPathHelper.bodiesDirectory.toString) |     props.bodiesFolder(IDEPathHelper.bodiesDirectory.toString) | ||||||
| 
 | 
 | ||||||
|     GatlingRecorder.fromMap(props.build, Some(IDEPathHelper.recorderConfigFile)) |     GatlingRecorder.fromMap(props.build, Some(IDEPathHelper.recorderConfigFile)) | ||||||
| } | } | ||||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user