Skip to content

Instantly share code, notes, and snippets.

View rhusar's full-sized avatar

Radoslav Husar rhusar

View GitHub Profile
public interface ThreadSetupActionFactory<C> {
ThreadSetupAction createThreadSetupAction(C context);
}
public class LazyThreadSetupAction<C> implements ThreadSetupAction {
private static final Handle EMPTY_HANDLE = new Handle() {
@Override
public void tearDown() {
@rhusar
rhusar / CloseCustomContainersOnAfterSuiteExtension.java
Created May 7, 2012 15:59 — forked from aslakknutsen/CloseCustomContainersOnAfterSuiteExtension.java
Arquillian Custom mode containers are not stopped on AfterSuite by default, their lifecyle is left completely up to the user/extensions. Example of a little extension that will stop the custom containers on AfterSuite.
/*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at