Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
302 commits
Select commit Hold shift + click to select a range
05d9867
Parses for int and long
Mar 17, 2014
8d46e11
1. running process methods fixed (non zero VS exactly one)
Mar 17, 2014
f988f0a
plaintext style when sending REST requests
Mar 17, 2014
d3cb31b
being more informative and less verbose
Mar 17, 2014
c4065f7
LinuxCommandLineModule
Mar 19, 2014
2d6ff8e
typo
Mar 19, 2014
80439ae
casting exception in misuse
Mar 19, 2014
34df186
ignore target folder
Mar 19, 2014
4d64e3c
silentlyPostLater
Mar 20, 2014
3f244fa
wget is linux command
Mar 20, 2014
725701b
debug system output when key file is not good
Mar 24, 2014
07666f0
reportng version
Apr 1, 2014
c93bd3f
cleanup code
Apr 1, 2014
0e0bd63
1. only one DateFormat object is needed.
Apr 1, 2014
faad547
removed style from timestamp
Apr 1, 2014
9c5bd8c
testing styles
Apr 1, 2014
936ebb2
using span in colors
Apr 1, 2014
543587b
new meaningful screenshot
Apr 1, 2014
1af42f6
tests are now running in "test" goal
Apr 1, 2014
8d961b2
getActual() cleanup + JDOC + use of java.lang.Class.cast() instead of
Apr 8, 2014
8118411
CollectionAssertion is now constructed from a Collection<E> rather than
Apr 8, 2014
3fc6d4a
refactoring CommandLineModule execute() --> executer()
Apr 10, 2014
7830efb
directory items expected condition
Apr 23, 2014
802b2d7
using java 7 in maven compiler configuration
Apr 23, 2014
78ec31c
Default timeout is now 1 minute
Apr 24, 2014
831387c
unused items remarked
Apr 24, 2014
5d70222
added filename pattern for "directory has" expected condition
Apr 29, 2014
20698e3
ensure capacity of string builders as soon as i know the amount of
May 7, 2014
2e9812a
Silance means silance
May 8, 2014
7de62bd
unformat resultset in html printer (pre)
May 8, 2014
fcd841a
seal some methods
May 12, 2014
f333e57
added setter & getter for printers
May 12, 2014
7568e23
new CSVResultSetPrinter
May 12, 2014
0cb6834
defaults
May 12, 2014
178fb51
1. header line
May 12, 2014
d927a67
error-result is set to the execution
May 26, 2014
5ae0be0
throw runtime exceptions as they are
May 26, 2014
2e6e737
the result
May 26, 2014
b04fd25
getLastSuppressedThrowable
May 26, 2014
a08df27
wget response is now accessible
May 26, 2014
2cd9cc9
Idle monitor thread name
Jun 1, 2014
d6249dc
added synchronization on linux get/put files
Jun 1, 2014
259546f
new feature: useThreads on init (default is not to use threads)
Jun 1, 2014
d172e17
LogToFile
Jun 17, 2014
38d5033
new logs for throwables
Jun 17, 2014
4444232
getStackTrace with filtered packages
Jun 17, 2014
2cf112f
testFilterException
Jun 17, 2014
0476409
setting filter for packages when logging throwables
Jun 19, 2014
a2afcaf
log to file
Jun 19, 2014
d9da075
1. log throwables to file easily
Jun 19, 2014
bcffe25
<br> element moved to the right location
Jun 19, 2014
0883422
oops, BR tag should not be ommited
Jun 22, 2014
6195b1e
few more log methods, JDocing them
Jun 22, 2014
dc33fab
fixed some BRs
Jun 22, 2014
f3f531f
1. using random-utils for randomizing
Jun 22, 2014
80c91cb
lightweight reports: cont.
Jun 22, 2014
53b789f
close the dix (not inline)
Jun 22, 2014
896d236
test is now informative
Jun 22, 2014
b3885b0
limit items to report
Jun 23, 2014
07fe48d
oops invert logic
Jun 23, 2014
b828f8e
new feature: known issues
Jun 25, 2014
78e3851
fix AssertionListener reports
Jun 25, 2014
6ee867d
test all tests
Jun 25, 2014
18fa0fa
dependency for com.google.inject:guice scope test changed to default
Jun 25, 2014
ee08d26
new feature: get
Jun 26, 2014
70d017a
fileToggle cleanup and reuse
Jun 30, 2014
d105720
new asseriton: AllItemsAre (all actual items returns true to a
Jun 30, 2014
11e5590
support ports in SSH connections
Jul 13, 2014
6155fbd
random items from a collection with limited range (e.g. Lists)
Jul 13, 2014
fff0884
if password authentication is enabled, but no password given- try public
Jul 13, 2014
891c31e
set port to ssh/ssh+rsa connections when possible
Jul 13, 2014
1cdaac2
change port only if is not the same as the default (of telnet, WHY???)
Jul 13, 2014
7f8560d
CompareMethos is now also a predicate
Jul 15, 2014
abaf679
Before and after
Jul 24, 2014
99b5109
delete on exit seems to be not enough. delete on report
Jul 27, 2014
dba7270
new parsers
Jul 28, 2014
42ebaed
less verbose
Jul 31, 2014
c78188d
new method: execute statement
Aug 6, 2014
c50cb32
Either string!
Aug 6, 2014
0ae7297
cleanup code.
Aug 6, 2014
6c8358b
default is not to keep matches!
Aug 7, 2014
e08fa39
when failing, use either message or title of the logic for the assertion
Aug 7, 2014
00c0081
two new predicates
Aug 10, 2014
0778e92
Collect items and their counters (total)
Aug 10, 2014
8470d3b
fix NPEx when exception has no cause
Aug 12, 2014
ece76ce
support HTTP headers
Aug 12, 2014
6c487c9
first draft of testng-maven project archetype
Aug 12, 2014
e8ad399
fix $ stuff
Aug 12, 2014
9623e16
To execute just run 'mvn clean integration-test -Dsuite=debug.xml
Aug 12, 2014
38d89d6
fix parent
Aug 12, 2014
9ad5777
fixed hadoop provided version (missing version 2.5.0 on maven central
Aug 13, 2014
1ef4b01
either better code
Aug 13, 2014
dc4160f
clear code
Aug 26, 2014
92836c9
deactivateIdleMonitor
Sep 15, 2014
7ec9a64
1. IldeMonitor is a daemon thread
Sep 15, 2014
7c7f524
delegate IdleMonitor methods to CliConnection
Sep 15, 2014
e0b5d51
create idleMonitor only if this connection has none
Sep 15, 2014
3e0e028
do not set lastCommandTime for IdleMonitor
Sep 15, 2014
b092d43
set module name to be the client's info
Sep 15, 2014
67c685d
less verbose to log, using name for that
Sep 15, 2014
ae3b6e7
if idleMonitor was stopped - restart it!
Sep 15, 2014
8035426
fix NPEx
Sep 15, 2014
b6a0054
synchronization scope was too large
Sep 15, 2014
09ed39a
Assertion should not throw an exception on a condition, it should
Sep 15, 2014
614a023
IdleMonitor name fix
Sep 15, 2014
cfe8b94
Parsers throws only ParseException now (not NumberFormatException -
Sep 16, 2014
717a262
when parse fails return null
Sep 16, 2014
76b065e
silent successful keepalive printouts
Sep 16, 2014
c6717d7
silence!
Sep 17, 2014
05cd05a
fix privilages issues
Sep 18, 2014
d375f76
compliance changed from 1.6 to 1.7
Sep 21, 2014
7fed438
delegate create file
Sep 21, 2014
5dae302
delegate mkdir file
Sep 21, 2014
c93aacd
whitespaces
Sep 21, 2014
ad48d9e
Merge remote-tracking branch 'origin/master'
Sep 21, 2014
d392808
post now reports both path and body
Sep 22, 2014
b7cdc25
delegate open file
Sep 22, 2014
a305045
yellow is gold (for better reading)
Sep 22, 2014
4abc41c
fix known issues listener
Sep 22, 2014
dd1b415
added dependency to cli project
Sep 23, 2014
6f9bcb4
new feature: load configuration from a gateway machine
Sep 23, 2014
031c6e0
1. HDFSSystemModule is now a module
Sep 23, 2014
29fa71b
uncomment set properties (until code is verified)
Sep 23, 2014
fdf3490
1.fixed bug: input stream already closed
Sep 23, 2014
8ba9eea
cleanup code
Oct 1, 2014
3e4967a
RandomLong
Oct 5, 2014
615968f
queryTimeout
Oct 5, 2014
6b7138d
+rmdir method
Oct 7, 2014
5cda679
new predicates for startsWith (single and multiple strings)
Oct 7, 2014
a65bfe5
Timeout waiting for prompt is more informative
Oct 14, 2014
052dcb1
Exceptions are now more informative
Oct 14, 2014
8dda128
java 7 feature (auto closeable)
Oct 14, 2014
976f935
Predicate Assertion logic
Oct 14, 2014
5ed8630
synchronize toggles (for multi-threaded toggles)
Oct 14, 2014
b151664
generate random int and long fixes + tests
Oct 14, 2014
04a04d9
last item was missing from getRandomItemFrom(Collection)
Oct 14, 2014
429777e
report randomized value
Oct 14, 2014
487f316
report randomized value (ints)
Oct 14, 2014
a60a2b1
support FNFEx when deleting HDFS folder
Oct 15, 2014
e4e48d8
fix delete folder method
Oct 15, 2014
8a84b72
Skipped test is also yellow
Oct 19, 2014
bdb7b43
New condition: isDirectory
Oct 19, 2014
c5c8c53
fix delete folder
Oct 19, 2014
340db22
test skip new feature
Oct 19, 2014
c099717
toString the path is directory
Oct 19, 2014
73f06c9
new sortingComparator (delegates to original, fails if duplicates
Oct 20, 2014
e49f12a
Tests for assertions (first draft)
Oct 20, 2014
e9a7951
getRootSuppressedThrowable
Oct 20, 2014
7d806d1
exceptions are expected, not issues
Oct 20, 2014
6629769
fix NPEx
Oct 20, 2014
c0dbf55
cleanup code
Oct 20, 2014
232ae77
synchronize internal connect
Oct 23, 2014
fd42b16
try to reconnect if Idle monitor fails
Oct 23, 2014
4518fd5
delete temp file
Oct 23, 2014
43f36d2
maxIdleTime is long (delegate)
Oct 23, 2014
e4cde06
support empty ip
Oct 23, 2014
59dda0c
typo
Oct 23, 2014
487ba29
get origin WgetModule
Oct 23, 2014
1dee30f
fixed warning
Oct 26, 2014
0d91265
terminal connection flag relates to session connection flag
Oct 26, 2014
d84e91a
1. if keepalive command fails, try to find out if reconnections is
Oct 26, 2014
f0eff72
cleanup code
Oct 26, 2014
975c77c
if actual is null inform NPEx.
Oct 26, 2014
ea275a9
when idle monitor is active, it is the initializer.
Oct 26, 2014
e6fc78c
cleanup
Oct 27, 2014
4c5bef5
cli connect fix
Oct 27, 2014
0e2c6a4
new method idleMonitorIsActive
Oct 28, 2014
548b99b
delegate idleMonitorIsActive to origin module
Oct 28, 2014
4837bd4
fix connection issues
Oct 28, 2014
1a079ec
using interrupt to kill idle monitor + connection issues
Oct 28, 2014
dc2983f
fix title
Oct 28, 2014
b2788b1
New executer service that wait for all executer services to terminate
Oct 30, 2014
cde12a3
Combined comparator can now have a list of sub-object of comparator(s)
Oct 30, 2014
8f459a1
new interface and default implementation:
Oct 30, 2014
4c9732d
compare with the comparator formatter (in order to make reports clear)
Oct 30, 2014
233bfc4
fix possible NPEx
Oct 30, 2014
8131f61
new method: post later callable
Nov 4, 2014
6f20f67
missed using toString by formatter-comparator (rather then native)
Nov 6, 2014
c671ad2
Using formatter instead of hybrid comparator-formatter (What was I
Nov 6, 2014
a1f3b04
post later methods are now delegating equals, hash and toString to the
Nov 12, 2014
bae4789
thread factory that creates one thread per runnable (stored in a weak
Nov 12, 2014
a10e248
step writes to syserr (to be red :-)
Nov 12, 2014
29ac213
fix surefire version
Nov 19, 2014
eadd74d
fixed version of surefire
Nov 19, 2014
0947c1d
gitignores
Nov 19, 2014
a96c159
F this
Nov 19, 2014
03e28e7
skip tests
Nov 27, 2014
2003f78
release 1.0.3
Nov 27, 2014
9fdf553
parent path fix
Nov 27, 2014
d32a352
version 1.0.4-SNAPSHOT
Nov 27, 2014
6534a6c
new project: integ-kinesis
Nov 27, 2014
6fc84dd
added kinesis project to modules
Nov 27, 2014
fb8f1dd
dependency to kinesis + shaded plugin draft
Nov 27, 2014
0c0aace
shard org.apache.http
Nov 27, 2014
85496e7
cleanup code
Dec 1, 2014
a0a1aba
new interfaces: named & namefull
Dec 1, 2014
01b5598
dependencies fixed again
Dec 1, 2014
a82ef63
integ-example is nopt part of the integ project
Dec 1, 2014
4c1a716
new feature: reset accumulator
Dec 4, 2014
d6510af
ignoring /dependency-reduced-pom.xml
Dec 4, 2014
8c2c165
Deprecating Formatting comparator
Dec 4, 2014
09f0d43
Function for Named objects
Dec 4, 2014
450a502
new supplementary utils for guava code
Dec 4, 2014
2183074
new function for Object.getClass().getSimpleClassName()
Dec 4, 2014
0c130f5
JAVA7ing <>
Dec 4, 2014
b5bf698
new functions for Class
Dec 10, 2014
f560aed
IndexedList, List-listener, decorator and their tests
Dec 11, 2014
44f2559
silently now prints to the all mighty /dev/null (singleton!!!!!)
Dec 11, 2014
2970b31
don't play with matches. lastCommandTime is volatile
Dec 11, 2014
1b8cd7c
extern print stream (typically sys.out)
Dec 11, 2014
300a789
externalize silentPrintStream
Dec 11, 2014
f5f2be4
synchronize on cli. carefully lower object
Dec 11, 2014
aa20d49
exceptions are not acceptable
Dec 11, 2014
da58f4c
using explicit exception class
Dec 22, 2014
fbac42f
Post data generator is now cleaner
Dec 22, 2014
a864744
idle monitor now uses its own silentPrintStream
Dec 22, 2014
5c59694
reverse object perspective (time-join <--> join time)
Dec 22, 2014
0ea43f7
fixed synchronization issues (Do not sync on singleton EVER!!!)
Dec 22, 2014
cf73290
print to printstream now by println instead of byte-by byte
Dec 22, 2014
dce1311
+javadoc
Dec 22, 2014
88055c6
dont use exceptions for flow control
Dec 22, 2014
1d2fa2a
fix client
Dec 22, 2014
8a191a5
ws
Dec 22, 2014
4f11290
actual is set before printing out the data
Dec 24, 2014
693043c
reset is now synchronized
Dec 24, 2014
15d818b
wgetClient can send multiple times now
Dec 24, 2014
bab9ef5
printout using named interface
Dec 24, 2014
c4d0b54
Explicitly throwing exceptions
Dec 25, 2014
7f70bd5
cleaner reports
Dec 28, 2014
ba7ce4e
connection failures are now more informative
Dec 29, 2014
07cc9aa
added POST with media type
Jan 5, 2015
831ae20
being more informative on connection
Jan 5, 2015
c6594d2
a. being more informative when connection fails (hostname)
Jan 5, 2015
5359a43
Being more informative when connecting
Jan 7, 2015
027de5b
few more features in testFilterException
Jan 7, 2015
df12dcb
cleaner code
Jan 7, 2015
cf6643d
finally set test result to connection state (not connected --> test
Jan 7, 2015
26a2e59
fixed stacktrace for cause
Jan 8, 2015
a6cf14f
StackTrace cleanup listener
Jan 8, 2015
8604406
testFilterException
Jan 8, 2015
df57232
prompting connection
Jan 8, 2015
d457eed
oopsie
Jan 12, 2015
74bf732
javadocs
May 31, 2015
4bbe33b
fix version
Jun 1, 2015
a6ccc83
hashCode
Jun 2, 2015
cd299ca
Dummy terminal
Jun 4, 2015
608176e
getItem now support "create if absent"
Jun 4, 2015
778e462
dependency of spring jdbc's scope is now provided
Jun 4, 2015
5d6a927
[artifactory-release] Next development version
Jun 8, 2015
70212ff
using new selenium support version
Nov 9, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions integ-archetype/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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>

<artifactId>automation-infra-tests-archetype</artifactId>
<packaging>maven-archetype</packaging>

<name>automation-infra-tests-archetype</name>

<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>2.2</version>
</extension>
</extensions>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>

<parent>
<groupId>il.co.topq.integframework</groupId>
<artifactId>integ-parent</artifactId>
<version>1.0.5-SNAPSHOT</version>
<relativePath>../integ-parent</relativePath>
</parent>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<archetype-descriptor
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
name="automation-infra-tests"
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fileSets>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<directory>src/main/java</directory>
<includes>
<include>**/*.java</include>
</includes>
</fileSet>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<directory>src/test/java</directory>
<includes>
<include>**/*.java</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/test/resources</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8">
<directory>src/test/resources</directory>
<includes>
<include>**/*.</include>
<include>**/*.gitignore</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8">
<directory></directory>
<includes>
<include>.gitignore</include>
<include>.springBeans</include>
</includes>
</fileSet>
</fileSets>
</archetype-descriptor>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/target
/.settings
/.classpath
/.project
/automation-*-tests-*-SNAPSHOT-zipTests.zip
/.springBeans
253 changes: 253 additions & 0 deletions integ-archetype/src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@

#set( $D = '$' )
<?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>
<artifactId>${artifactId}</artifactId>
<name>Automation for ${package}</name>
<groupId>${groupId}</groupId>
<version>${version}</version>
<packaging>jar</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<testng.version>6.8.8</testng.version>
<integ.version>1.0.3-SNAPSHOT</integ.version>
<skipTests>true</skipTests>
<spring.version>3.1.2.RELEASE</spring.version>
</properties>

<repositories>
<repository>
<id>top-q</id>
<url>http://maven.top-q.co.il/content/groups/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>top-q</id>
<url>http://maven.top-q.co.il/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>il.co.topq.integframework</groupId>
<artifactId>integ-testng</artifactId>
<version>${integ.version}</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>il.co.topq.integframework</groupId>
<artifactId>integ-db</artifactId>
<version>${integ.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>15.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>il.co.topq.integframework</groupId>
<artifactId>reportng</artifactId>
<version>1.1.41</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.16</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/suites/${suite}</suiteXmlFile>
</suiteXmlFiles>
<argLine>-Xms256m -Xmx1536m</argLine>
<workingDirectory>target/</workingDirectory>
<properties>
<property>
<name>usedefaultlisteners</name>
<value>false</value>
</property>
<property>
<name>listener</name>
<value>org.uncommons.reportng.HTMLReporter</value>
</property>
</properties>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>auto-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>lib</directory>
<includes>
<include>**/*.*</include>
</includes>
</fileset>
<fileset>
<directory>test-output</directory>
<includes>
<include>**/*.*</include>
</includes>
</fileset>
<fileset>
<directory>target</directory>
<includes>
<include>**/*.*</include>
</includes>
</fileset>
<fileset>
<directory>${project.basedir}</directory>
<includes>
<include>${project.artifactId}-${project.version}-zipTests.zip</include>
</includes>
</fileset>
</filesets>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>To execute just run 'mvn clean integration-test -Dsuite=debug.xml -Dsut=sut.xml'</echo>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>debug</id>
<properties>
<maven.failsafe.debug>true</maven.failsafe.debug>
</properties>
</profile>
<profile>
<activation>
<property>
<name>sut</name>
</property>
</activation>
<properties>
<skipTests>false</skipTests>
</properties>
<id>runtests</id>
<build>
<defaultGoal>integration-test</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<configuration>
<descriptors>
<descriptor>${D}{project.testResources[0].directory}/assembly/zipTests.xml</descriptor>
</descriptors>
<appendAssemblyId>true</appendAssemblyId>
<outputDirectory>${project.basedir}</outputDirectory>
</configuration>
<executions>
<execution>
<id>attach-tests</id> <!-- this is used for inheritance merges -->
<phase>post-integration-test</phase> <!-- append to the packaging phase. -->
<goals>
<goal>single</goal> <!-- goals == mojos -->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.automation.infra;

public class Lab {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.automation_infra_tests;

import il.co.topq.integframework.reporting.Reporter;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;

import com.google.common.collect.Sets;
import ${package}.automation.infra.Lab;

@ContextConfiguration(locations = "classpath:META-INF/context.xml")
public class BaseTestCase extends AbstractTestNGSpringContextTests {

protected final static Set<String> packagesToFilter = Sets.newHashSet("sun.reflect", "java.lang.reflect", "org.testng",
"org.apache.maven", "org.codehaus.plexus.classworlds.launcher", "org.springframework.test.context.testng");
@Autowired
protected Lab lab;

static {
Reporter.filterPackagesOnThrowables(packagesToFilter);

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd" default-lazy-init="true">

<context:annotation-config />
<context:component-scan use-default-filters="true"
resource-pattern="**/*.class" base-package="${package}.automation.infra" />

<import resource="classpath:sut.xml" />

<context:property-placeholder location="classpath:/${symbol_dollar}{sut}" />
</beans>
Loading