AJTest

AJTest is a library for running functional tests with AspectJ Load-Time Weaving and TestNG without a java agent.

License

License

GroupId

GroupId

com.github.bcolyn.ajtest
ArtifactId

ArtifactId

ajtest
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

AJTest
AJTest is a library for running functional tests with AspectJ Load-Time Weaving and TestNG without a java agent.
Project URL

Project URL

https://github.com/bcolyn/ajtest
Source Code Management

Source Code Management

https://github.com/bcolyn/ajtest

Download ajtest

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.bcolyn.ajtest/ajtest/ -->
<dependency>
    <groupId>com.github.bcolyn.ajtest</groupId>
    <artifactId>ajtest</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.bcolyn.ajtest/ajtest/
implementation 'com.github.bcolyn.ajtest:ajtest:1.0'
// https://jarcasting.com/artifacts/com.github.bcolyn.ajtest/ajtest/
implementation ("com.github.bcolyn.ajtest:ajtest:1.0")
'com.github.bcolyn.ajtest:ajtest:jar:1.0'
<dependency org="com.github.bcolyn.ajtest" name="ajtest" rev="1.0">
  <artifact name="ajtest" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.bcolyn.ajtest', module='ajtest', version='1.0')
)
libraryDependencies += "com.github.bcolyn.ajtest" % "ajtest" % "1.0"
[com.github.bcolyn.ajtest/ajtest "1.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.testng : testng jar 6.3.1
org.aspectj : aspectjweaver jar 1.6.12
org.slf4j : slf4j-api jar 1.6.1

test (4)

Group / Artifact Type Version
org.easytesting : fest-assert jar 1.4
org.mule : mule-core jar 3.2.1
org.mule.transports : mule-transport-vm jar 3.2.1
org.mule.modules : mule-module-client jar 3.2.1

Project Modules

There are no modules declared in this project.

AJTest

Description

AJTest is a library for running functional tests with AspectJ Load-Time Weaving and TestNG without a java agent.

Usage

Just extend from AspectJWeavingTest

Alternatively, do the setup manually if you already have a base class:

  • add @AspectJTest annotation to the class

  • add a TestNG test listener: @Listeners(ThreadContextClassloaderListener.class) to the class

  • configure an ObjectFactory:

    @ObjectFactory public AspectJWeavingObjectFactory getFactory(){ return AspectJWeavingObjectFactory.getInstance(); }

Maven

Snapshot binaries are available from Sonatype OSS Snapshot repository:

<dependency>
    <groupId>com.github.bcolyn.ajtest</groupId>
    <artifactId>ajtest</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>
 ...
<repositories>
    <repository>
        <id>sonatype-oss-snapshots</id>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </repository>
</repositories>

Releases will be made available from Central when they are ready.

Roadmap

TODO

Versions

Version
1.0