ShrinkWrap Resolver 1.0.0-beta-6 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0-beta-6 release of the ShrinkWrap Resolver component!

What is ShrinkWrap Resolver?

The ShrinkWrap Resolvers project provides a Java API to obtain artifacts from a repository system. This is handy to include third party libraries available in any Maven repository in your test archive. ShrinkWrap Resolvers additionally allow you to reuse all the configuration you've already specified in the Maven build file, making packaging of an application archive much easier job.

Release details

Component ShrinkWrap Resolver
Version 1.0.0-beta-6 view tag
Release date 2012-02-09
Released by Andrew Lee Rubinger
Compiled against
  • JUnit – 4.8.2

Published artifacts org.jboss.shrinkwrap.resolver

  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-bom pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api-maven jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-depchain pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-impl-maven jar javadoc pom

Release notes and resolved issues 0

Thanks to the following list of contributors: Andrew Lee Rubinger

Arquillian OSGi 1.0.0 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0 release of the Arquillian OSGi component!

What is Arquillian OSGi?

ShrinkWrap is the simplest way to create archives in Java. Using the fluent and intuitive ShrinkWrap API, developers may assemble JARs, WARs, and EARs to be deployed directly by Arquillian during testing.

Release details

Component Arquillian OSGi
Modules
Version 1.0.0 view tag
Release date 2012-02-06
Released by Thomas Diesler
Compiled against

Published artifacts org.jboss.arquillian.testenricher

  • org.jboss.arquillian.testenricher » arquillian-testenricher-osgi jar javadoc pom
  • org.jboss.arquillian.protocol » arquillian-protocol-osgi jar javadoc pom
  • org.jboss.arquillian.container » arquillian-container-osgi jar javadoc pom
  • org.jboss.arquillian.container » arquillian-container-osgi-embedded jar javadoc pom
  • org.jboss.arquillian.container » arquillian-container-osgi-remote jar javadoc pom

Thanks to the following list of contributors: Thomas Diesler, Aslak Knutsen, Karel Piwko

Arquillian Container - WebLogic Project 1.0.0.Alpha2 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0.Alpha2 release of the Arquillian Container - WebLogic Project component!

Some of the highlights in this release

  • Support for Oracle WebLogic Server 12c (12.1.1).
    With the release, one can now test Java EE 6 applications in a WebLogic 12c container.
  • Support for custom hostname verifiers.
    If your WebLogic Container is requires you to use a custom hostname verifier to accept it’s SSL certificate, then it is now possible to configure Arquillian to use the hostname verifier.
    If you want to configure a hostname verifier, use the hostnameVerifierClass and classPath properties.
  • Improvements in performance. Archives are now deployed faster to a WebLogic container.

What is Arquillian?

Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.

Release details

Component Arquillian Container - WebLogic Project
Modules
Version 1.0.0.Alpha2 view tag
Release date 2012-01-22
Released by Aslak Knutsen
Compiled against

Published artifacts org.jboss.arquillian.container

  • org.jboss.arquillian.container » arquillian-wls-common jar javadoc pom
  • org.jboss.arquillian.container » arquillian-wls-remote-10.3 jar javadoc pom
  • org.jboss.arquillian.container » arquillian-wls-remote-12.1 jar javadoc pom

Release notes and resolved issues 5

WLS Remote 12.1 support

Component Upgrade
  • ARQ-706 - Upgrade to Arquillian core CR7 for WebLogic Containers
Enhancement
  • ARQ-725 - Improve the performance of the WebLogicContainer implementation
Feature Request
  • ARQ-687 - Support for custom hostname verifiers
  • ARQ-707 - Implement a remote container for WebLogic 12c

Thanks to the following list of contributors: Vineet Reynolds, Aslak Knutsen

Arquillian Extension Byteman 1.0.0.Alpha1 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0.Alpha1 release of the Arquillian Extension Byteman component!

We’re happy to announce the first release of the Arquillian Byteman marriage.

Byteman is a tool which simplifies tracing and testing of Java programs. Byteman allows you to insert extra Java code into your application, either as it is loaded during JVM startup or even after it has already started running. The injected code is allowed to access any of your data and call any application methods, including where they are private. You can inject code almost anywhere you want and there is no need to prepare the original source code in advance nor do you have to recompile, repackage or redeploy your application. In fact you can remove injected code and reinstall different code while the application continues to execute.

When testing your application you can use Byteman to inject faults or synchronization code, causing your application to perform unusual or unexpected operations required to exercise a test scenario.

In this release we added support the @BMRule(s) annotation on Class and Method level.

@RunWith(Arquillian.class)
@BMRules(
        @BMRule(
                name = "Throw exception on success",
                targetClass = "StatelessManagerBean",
                targetMethod = "success",
                action = "throw new java.lang.RuntimeException()")
)
public class BytemanFaultInjectionTestCase {

    @Deployment
    public static Archive<?> createDeployment() {
        return ShrinkWrap.create(WebArchive.class)
                .addClasses(StatelessManager.class, StatelessManagerBean.class);
    }
...
}
@Test(expected = EJBException.class)
@BMRule(
        name = "Throw exception on success",
        targetClass = "StatelessManagerBean",
        targetMethod = "success",
        action = "throw new java.lang.RuntimeException()")
public void shouldBeAbleToInjectMethodLevelThrowRule()
{
    Assert.assertNotNull("Verify bean was injected", bean);
    bean.success();
}

See the Byteman Website for more on how to write rules.

Before we reach the final release we are planning to bring @BMScript annotation and manual installment of rules during test execution.

What is Arquillian?

Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.

Release details

Component Arquillian Extension Byteman
Version 1.0.0.Alpha1 view tag
Release date 2012-01-19
Released by Aslak Knutsen
Compiled against

Published artifacts org.jboss.arquillian.extension

  • org.jboss.arquillian.extension » arquillian-extension-byteman jar javadoc pom

Release notes and resolved issues 2

Simple support for Rules annotations

Feature Request
  • ARQ-348 - Create a Byteman integration

Thanks to the following list of contributors: Aslak Knutsen

Arquillian TestRunner Spock 1.0.0.Alpha1 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0.Alpha1 release of the Arquillian TestRunner Spock component!

Some of the highlights in this release

This is the very first release of Arquillian Spock Test Runner. To quote creators of this great framework “Spock is a testing and specification framework for Java and Groovy applications. What makes it stand out from the crowd is its beautiful and highly expressive specification language.” And we totally agree with them! Writing tests in behavior-driven development manner help developers to focus on features which they need to deliver instead of diving into technical details while writing tests. Those details might change over the time anyway.

Now you can run your spock tests powered by Arquillian (both embedded and remote containers are supported)!

Here’s a tiny little piece of code where you can see yourself how cool Spock and Arquillian are!

class AccountServiceSpecification extends Specification {
  
  @Deployment
  def static JavaArchive "create deployment"() {
    return ShrinkWrap.create(JavaArchive.class)
             .addClasses(AccountService.class, Account.class, SecureAccountService.class)
             .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
  }
 
  @Inject 
  AccountService service
        
  def "Transferring between accounts should result in account withdrawal and deposit"() {
      
    when: "Money has been transfered from one account to another"
      service.transfer(from, to, amount)
        
    then: "Balance must be updated"
      from.balance == fromBalance
      to.balance == toBalance
        
    where:
      from <<         [new Account(100),  new Account(10)]
      to <<           [new Account(50),   new Account(90)]
      amount <<       [50,                10]
      fromBalance <<  [50,                0]
      toBalance <<    [100,               100]
  }
}

What is Arquillian?

Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.

Release details

Component Arquillian TestRunner Spock
Version 1.0.0.Alpha1 view tag
Release date 2012-01-13
Released by Aslak Knutsen
Compiled against

Published artifacts org.jboss.arquillian.spock

  • org.jboss.arquillian.spock » arquillian-spock-core jar javadoc pom
  • org.jboss.arquillian.spock » arquillian-spock-standalone jar javadoc pom
  • org.jboss.arquillian.spock » arquillian-spock-container jar javadoc pom

Release notes and resolved issues 3

First preview release of Arquillian integration with Spock

Feature Request
  • ARQ-636 - Add Remote support to the Spock TestRunner
  • ARQ-675 - Update Spock Test Runner pom setup to match other extensions

Thanks to the following list of contributors: Bartosz Majsak, Aslak Knutsen, Antony Blakey