Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 59100 invoked from network); 5 Oct 2007 20:57:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2007 20:57:02 -0000 Received: (qmail 61580 invoked by uid 500); 5 Oct 2007 20:56:50 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 61533 invoked by uid 500); 5 Oct 2007 20:56:50 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 61519 invoked by uid 99); 5 Oct 2007 20:56:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 13:56:50 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chris.custine@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 20:56:53 +0000 Received: by an-out-0708.google.com with SMTP id c31so102798ana for ; Fri, 05 Oct 2007 13:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=eon2Czm0kP7ws/b+WdyPjs2RBgu/dq/aoxN+P6xoGkU=; b=Pm5yhWoNkX5+xOIwxuGxi5tjIi0l1HhYbJW4nRdidvfbpgGJmssoC1XW2pyP9FQHbqM1biX+gPKV4e2UkUGw7pzJqXyce7ohLYcUzg0/KODPivTzy2uMfLXtYafopK87CXX9mQslTtjQaV/6cOPphotr9GlmbzmljxTMbUHGBjE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=OQz2GZq0WCKwWwDAUX5hSXIne56qj0gxEDXL+5bTE9MiGXGuJ4ziArZQW1GbhPWqI8bpCLkL7vy53oNsjQ2mOY6ZbqH0iw2RqG21gIn3aDCV+46U5oQU6chrQhF8mIu7Txn5IOigwxvp09eAxh6OZS0fbFWc9YFiM8/pOVoEJVM= Received: by 10.142.222.21 with SMTP id u21mr1797622wfg.1191617791315; Fri, 05 Oct 2007 13:56:31 -0700 (PDT) Received: by 10.142.101.18 with HTTP; Fri, 5 Oct 2007 13:56:31 -0700 (PDT) Message-ID: <43b026c70710051356s40872467kf7565cb45bc5d0bb@mail.gmail.com> Date: Fri, 5 Oct 2007 14:56:31 -0600 From: "Chris Custine" Sender: chris.custine@gmail.com To: "Apache Directory Developers List" Subject: Re: Method signatures in JUnit4 primer In-Reply-To: <568753d90710051227k3364c9ebj7258eee231de8bca@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30401_15680186.1191617791307" References: <568753d90710051227k3364c9ebj7258eee231de8bca@mail.gmail.com> X-Google-Sender-Auth: 7388885f52d6d6fb X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30401_15680186.1191617791307 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes indeed, those methods should be static. Chris On 10/5/07, Enrique Rodriguez wrote: > > Hi, Directory developers, > > I tried out Emm's JUnit4 primer. It looks like the per-class methods > need to be static. If others verify this, I can update the primer. > Correct method signatures: > > @BeforeClass > public static void globalSetUp() > > @AfterClass > public static void globalTearDown() > > This is in the "giant leap for testers" section. > > Primer: > > http://cwiki.apache.org/confluence/display/DIRxDEV/JUnit4+primer > > Enrique > ------=_Part_30401_15680186.1191617791307 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes indeed, those methods should be static.

Chris

On 10/5/07, Enrique Rodriguez <enriquer9@gmail.com> wrote:
Hi, Directory developers,

I tried out Emm's JUnit4 primer.  It looks like the per-class methods
need to be static.  If others verify this, I can update the primer.
Correct method signatures:

@BeforeClass
public static void globalSetUp()

@AfterClass
public static void globalTearDown()

This is in the "giant leap for testers" section.

Primer:

http://cwiki.apache.org/confluence/display/DIRxDEV/JUnit4+primer

Enrique

------=_Part_30401_15680186.1191617791307--